On 22/04/21 05:04, Sean Christopherson wrote:
Run msr.flat as vendor GenuineIntel so that KVM SVM will intercept
SYSENTER_ESP and SYSENTER_EIP in order to preserve bits 63:32.
Alternatively, this could be handled in the test, but fudging the
config is easier and it also adds coverage for KVM's aforementioned
emulation.
Oops, I actually had a patch for this but forgot to send it. I'll queue
yours instead.
Paolo
Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
x86/unittests.cfg | 3 +++
1 file changed, 3 insertions(+)
diff --git a/x86/unittests.cfg b/x86/unittests.cfg
index 0698d15..c2608bc 100644
--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -167,7 +167,10 @@ extra_params = -cpu max
arch = x86_64
[msr]
+# Use GenuineIntel to ensure SYSENTER MSRs are fully preserved, and to test
+# SVM emulation of Intel CPU behavior.
file = msr.flat
+extra_params = -cpu qemu64,vendor=GenuineIntel
[pmu]
file = pmu.flat