direct-io.hg

changeset 8390:6ee4c16bfdec

Hide 64bit-mode feature on i386 hypervisor.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Dec 16 18:58:21 2005 +0100 (2005-12-16)
parents 9f9984af7f40
children 1509521c824e
files xen/arch/x86/vmx.c
line diff
     1.1 --- a/xen/arch/x86/vmx.c	Fri Dec 16 18:54:57 2005 +0100
     1.2 +++ b/xen/arch/x86/vmx.c	Fri Dec 16 18:58:21 2005 +0100
     1.3 @@ -544,6 +544,13 @@ static void vmx_vmexit_do_cpuid(unsigned
     1.4          clear_bit(X86_FEATURE_VMXE & 31, &ecx);
     1.5          clear_bit(X86_FEATURE_MWAIT & 31, &ecx);
     1.6      }
     1.7 +#ifdef __i386__
     1.8 +    else if ( input == 0x80000001 )
     1.9 +    {
    1.10 +        /* Mask feature for Intel ia32e or AMD long mode. */
    1.11 +        clear_bit(X86_FEATURE_LM & 31, &edx);
    1.12 +    }
    1.13 +#endif
    1.14  
    1.15      regs->eax = (unsigned long) eax;
    1.16      regs->ebx = (unsigned long) ebx;