ia64/xen-unstable

changeset 19606:f71c5e3ac252

x86 hvm: Provide x2APIC identifier in CPUID leaf 0xb.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 19 01:25:59 2009 +0100 (2009-05-19)
parents c1340cda65fb
children b5522741f6b5
files xen/arch/x86/hvm/hvm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Tue May 19 01:18:35 2009 +0100
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Tue May 19 01:25:59 2009 +0100
     1.3 @@ -1685,13 +1685,19 @@ void hvm_cpuid(unsigned int input, unsig
     1.4  
     1.5      domain_cpuid(v->domain, input, *ecx, eax, ebx, ecx, edx);
     1.6  
     1.7 -    if ( input == 0x00000001 )
     1.8 +    switch ( input )
     1.9      {
    1.10 +    case 0x1:
    1.11          /* Fix up VLAPIC details. */
    1.12          *ebx &= 0x00FFFFFFu;
    1.13          *ebx |= (v->vcpu_id * 2) << 24;
    1.14          if ( vlapic_hw_disabled(vcpu_vlapic(v)) )
    1.15              __clear_bit(X86_FEATURE_APIC & 31, edx);
    1.16 +        break;
    1.17 +    case 0xb:
    1.18 +        /* Fix the x2APIC identifier. */
    1.19 +        *edx = v->vcpu_id * 2;
    1.20 +        break;
    1.21      }
    1.22  }
    1.23