[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86 hvm: Provide x2APIC identifier in CPUID leaf 0xb.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1242692759 -3600
# Node ID f71c5e3ac2523a96d1b91901e8d5ee16a04dbc7d
# Parent  c1340cda65fb5859acc48e3a9aba55b52adc5347
x86 hvm: Provide x2APIC identifier in CPUID leaf 0xb.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@xxxxxxxxx>
---
 xen/arch/x86/hvm/hvm.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff -r c1340cda65fb -r f71c5e3ac252 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Tue May 19 01:18:35 2009 +0100
+++ b/xen/arch/x86/hvm/hvm.c    Tue May 19 01:25:59 2009 +0100
@@ -1685,13 +1685,19 @@ void hvm_cpuid(unsigned int input, unsig
 
     domain_cpuid(v->domain, input, *ecx, eax, ebx, ecx, edx);
 
-    if ( input == 0x00000001 )
-    {
+    switch ( input )
+    {
+    case 0x1:
         /* Fix up VLAPIC details. */
         *ebx &= 0x00FFFFFFu;
         *ebx |= (v->vcpu_id * 2) << 24;
         if ( vlapic_hw_disabled(vcpu_vlapic(v)) )
             __clear_bit(X86_FEATURE_APIC & 31, edx);
+        break;
+    case 0xb:
+        /* Fix the x2APIC identifier. */
+        *edx = v->vcpu_id * 2;
+        break;
     }
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.