Skip to contentSkip to conversation

x86: suppress SYSCALL feature for 32on64 guests

PATCH New Jan Beulich 1 participant 1 message May 14, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: suppress SYSCALL feature for 32on64 guests

.. since Xen cannot handle it.

xen/arch/x86/traps.c +2 -0
Index: 2007-04-27/xen/arch/x86/traps.c
===================================================================
@@ -594,6 +594,8 @@ static int emulate_forced_invalid_op(str
     else if ( regs->eax == 0x80000001 )
     {
         /* Modify Feature Information. */
+        if ( is_pv_32on64_vcpu(current) )
+            clear_bit(X86_FEATURE_SYSCALL % 32, &d);
         clear_bit(X86_FEATURE_RDTSCP % 32, &d);
     }
     else