SMSW does not cause a VMEXIT and therefore emulated UMIP fails. Comment out the test. Suggested-by: Liran Alon <liran.alon@xxxxxxxxxx> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- x86/umip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x86/umip.c b/x86/umip.c index cda1971..4566852 100644 --- a/x86/umip.c +++ b/x86/umip.c @@ -95,8 +95,11 @@ static void test_umip_gp(const char *msg) { puts(msg); +#if 0 + /* Skip this, because it cannot be emulated correctly. */ do_smsw(); report("exception from smsw", gp_count == 1); +#endif do_sgdt(); report("exception from sgdt", gp_count == 1); do_sidt(); -- 2.17.1