x86: Fix some bugs with KVM in SE mode on Intel machines.
authorGabe Black <gabeblack@google.com>
Wed, 4 Dec 2019 04:35:22 +0000 (20:35 -0800)
committerGabe Black <gabeblack@google.com>
Wed, 18 Dec 2019 04:38:20 +0000 (04:38 +0000)
commit3723cda9c2baa704602acaa8f941a996a636df49
tree6e4665f4569364ffff451a0a25355115a9f776dd
parentd040db5361603104bfa7a9f74cd571d21be87f89
x86: Fix some bugs with KVM in SE mode on Intel machines.

The granularity bit should be set since the segment limit should be
interpreted as a number of pages, not bytes.

A comment indicates that NX support is enabled, but the bit wasn't
being set. That's now set to be consistent with FS mode.

The SVME bit is now turned off, since Intel CPUs don't have SVME, and
enabling it apparently makes them upset.

Also disable CR4 bits which enable features neither gem5 nor apparently
my workstation support.

Change-Id: I72d5a07871dede8763b0dd188a52fe5eb6bde6ea
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23361
Reviewed-by: Ayaz Akram <yazakram@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/process.cc