All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf 0xb
@ 2009-05-06 22:11 Nitin A Kamble
  2009-05-07  7:05 ` Keir Fraser
  0 siblings, 1 reply; 5+ messages in thread
From: Nitin A Kamble @ 2009-05-06 22:11 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

Keir,

Just like the apicid, x2apicid is also unique to each cpu. x2apicid is
coming from edx register of the cpuid leaf 0xb. 

Please Apply/comment.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>


diff -r 08618cd10522 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c	Mon May 04 14:13:49 2009 -0700
+++ b/xen/arch/x86/hvm/hvm.c	Mon May 04 14:19:05 2009 -0700
@@ -1687,6 +1687,10 @@
         *ebx |= (v->vcpu_id * 2) << 24;
         if ( vlapic_hw_disabled(vcpu_vlapic(v)) )
             __clear_bit(X86_FEATURE_APIC & 31, edx);
+    } else if ( input == 0x0000000b )
+    {
+        /* fix the x2apicid */
+	*edx = v->vcpu_id * 2;
     }
 }

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf 0xb
  2009-05-06 22:11 [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf 0xb Nitin A Kamble
@ 2009-05-07  7:05 ` Keir Fraser
  2009-05-07 16:48   ` Kamble, Nitin A
  0 siblings, 1 reply; 5+ messages in thread
From: Keir Fraser @ 2009-05-07  7:05 UTC (permalink / raw)
  To: Nitin A Kamble; +Cc: xen-devel

What's the point of emulating an x2apicid when we don't emulate an x2apic?

 -- Keir

On 06/05/2009 23:11, "Nitin A Kamble" <nitin.a.kamble@intel.com> wrote:

> Keir,
> 
> Just like the apicid, x2apicid is also unique to each cpu. x2apicid is
> coming from edx register of the cpuid leaf 0xb.
> 
> Please Apply/comment.
> 
> Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
> 
> 
> diff -r 08618cd10522 xen/arch/x86/hvm/hvm.c
> --- a/xen/arch/x86/hvm/hvm.c Mon May 04 14:13:49 2009 -0700
> +++ b/xen/arch/x86/hvm/hvm.c Mon May 04 14:19:05 2009 -0700
> @@ -1687,6 +1687,10 @@
>          *ebx |= (v->vcpu_id * 2) << 24;
>          if ( vlapic_hw_disabled(vcpu_vlapic(v)) )
>              __clear_bit(X86_FEATURE_APIC & 31, edx);
> +    } else if ( input == 0x0000000b )
> +    {
> +        /* fix the x2apicid */
> + *edx = v->vcpu_id * 2;
>      }
>  }
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf 0xb
  2009-05-07  7:05 ` Keir Fraser
@ 2009-05-07 16:48   ` Kamble, Nitin A
  2009-05-07 18:14     ` Keir Fraser
  0 siblings, 1 reply; 5+ messages in thread
From: Kamble, Nitin A @ 2009-05-07 16:48 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

Keir,
   It is be used to find out the extended cpu topology of specified in the leaf 0xb.

Thanks & Regards,
Nitin
Linux Open Source Technology Center, Intel Corporation
----------------------------------------------------------------------------
The Mind is like a parachute; it works much better when it's open.

>-----Original Message-----
>From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
>Sent: Thursday, May 07, 2009 12:05 AM
>To: Kamble, Nitin A
>Cc: xen-devel@lists.xensource.com
>Subject: Re: [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf
>0xb
>
>What's the point of emulating an x2apicid when we don't emulate an x2apic?
>
> -- Keir
>
>On 06/05/2009 23:11, "Nitin A Kamble" <nitin.a.kamble@intel.com> wrote:
>
>> Keir,
>>
>> Just like the apicid, x2apicid is also unique to each cpu. x2apicid is
>> coming from edx register of the cpuid leaf 0xb.
>>
>> Please Apply/comment.
>>
>> Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
>>
>>
>> diff -r 08618cd10522 xen/arch/x86/hvm/hvm.c
>> --- a/xen/arch/x86/hvm/hvm.c Mon May 04 14:13:49 2009 -0700
>> +++ b/xen/arch/x86/hvm/hvm.c Mon May 04 14:19:05 2009 -0700
>> @@ -1687,6 +1687,10 @@
>>          *ebx |= (v->vcpu_id * 2) << 24;
>>          if ( vlapic_hw_disabled(vcpu_vlapic(v)) )
>>              __clear_bit(X86_FEATURE_APIC & 31, edx);
>> +    } else if ( input == 0x0000000b )
>> +    {
>> +        /* fix the x2apicid */
>> + *edx = v->vcpu_id * 2;
>>      }
>>  }
>>
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf 0xb
  2009-05-07 16:48   ` Kamble, Nitin A
@ 2009-05-07 18:14     ` Keir Fraser
  2009-05-07 18:16       ` Kamble, Nitin A
  0 siblings, 1 reply; 5+ messages in thread
From: Keir Fraser @ 2009-05-07 18:14 UTC (permalink / raw)
  To: Kamble, Nitin A; +Cc: xen-devel

Hm, ok, well I think it is a pretty inoffensive patch anyway. I can queue it
for post 3.4.

 - Keir


On 07/05/2009 17:48, "Kamble, Nitin A" <nitin.a.kamble@intel.com> wrote:

> Keir,
>    It is be used to find out the extended cpu topology of specified in the
> leaf 0xb.
> 
> Thanks & Regards,
> Nitin
> Linux Open Source Technology Center, Intel Corporation
> ----------------------------------------------------------------------------
> The Mind is like a parachute; it works much better when it's open.
> 
>> -----Original Message-----
>> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
>> Sent: Thursday, May 07, 2009 12:05 AM
>> To: Kamble, Nitin A
>> Cc: xen-devel@lists.xensource.com
>> Subject: Re: [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf
>> 0xb
>> 
>> What's the point of emulating an x2apicid when we don't emulate an x2apic?
>> 
>> -- Keir
>> 
>> On 06/05/2009 23:11, "Nitin A Kamble" <nitin.a.kamble@intel.com> wrote:
>> 
>>> Keir,
>>> 
>>> Just like the apicid, x2apicid is also unique to each cpu. x2apicid is
>>> coming from edx register of the cpuid leaf 0xb.
>>> 
>>> Please Apply/comment.
>>> 
>>> Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
>>> 
>>> 
>>> diff -r 08618cd10522 xen/arch/x86/hvm/hvm.c
>>> --- a/xen/arch/x86/hvm/hvm.c Mon May 04 14:13:49 2009 -0700
>>> +++ b/xen/arch/x86/hvm/hvm.c Mon May 04 14:19:05 2009 -0700
>>> @@ -1687,6 +1687,10 @@
>>>          *ebx |= (v->vcpu_id * 2) << 24;
>>>          if ( vlapic_hw_disabled(vcpu_vlapic(v)) )
>>>              __clear_bit(X86_FEATURE_APIC & 31, edx);
>>> +    } else if ( input == 0x0000000b )
>>> +    {
>>> +        /* fix the x2apicid */
>>> + *edx = v->vcpu_id * 2;
>>>      }
>>>  }
>>> 
>>> 
>> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf 0xb
  2009-05-07 18:14     ` Keir Fraser
@ 2009-05-07 18:16       ` Kamble, Nitin A
  0 siblings, 0 replies; 5+ messages in thread
From: Kamble, Nitin A @ 2009-05-07 18:16 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

Thank you!

>Hm, ok, well I think it is a pretty inoffensive patch anyway. I can queue
>it
>for post 3.4.
>
> - Keir
>
>
>On 07/05/2009 17:48, "Kamble, Nitin A" <nitin.a.kamble@intel.com> wrote:
>
>> Keir,
>>    It is be used to find out the extended cpu topology specified in
>the
>> leaf 0xb.
>>
>> Thanks & Regards,
>> Nitin
>> Linux Open Source Technology Center, Intel Corporation
>> -------------------------------------------------------------------------
>---
>> The Mind is like a parachute; it works much better when it's open.
>>
>>> -----Original Message-----
>>> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
>>> Sent: Thursday, May 07, 2009 12:05 AM
>>> To: Kamble, Nitin A
>>> Cc: xen-devel@lists.xensource.com
>>> Subject: Re: [patch] provide uniqe x2apicid for each vcpu in the cpuid
>leaf
>>> 0xb
>>>
>>> What's the point of emulating an x2apicid when we don't emulate an
>x2apic?
>>>
>>> -- Keir
>>>
>>> On 06/05/2009 23:11, "Nitin A Kamble" <nitin.a.kamble@intel.com> wrote:
>>>
>>>> Keir,
>>>>
>>>> Just like the apicid, x2apicid is also unique to each cpu. x2apicid is
>>>> coming from edx register of the cpuid leaf 0xb.
>>>>
>>>> Please Apply/comment.
>>>>
>>>> Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
>>>>
>>>>
>>>> diff -r 08618cd10522 xen/arch/x86/hvm/hvm.c
>>>> --- a/xen/arch/x86/hvm/hvm.c Mon May 04 14:13:49 2009 -0700
>>>> +++ b/xen/arch/x86/hvm/hvm.c Mon May 04 14:19:05 2009 -0700
>>>> @@ -1687,6 +1687,10 @@
>>>>          *ebx |= (v->vcpu_id * 2) << 24;
>>>>          if ( vlapic_hw_disabled(vcpu_vlapic(v)) )
>>>>              __clear_bit(X86_FEATURE_APIC & 31, edx);
>>>> +    } else if ( input == 0x0000000b )
>>>> +    {
>>>> +        /* fix the x2apicid */
>>>> + *edx = v->vcpu_id * 2;
>>>>      }
>>>>  }
>>>>
>>>>
>>>
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-07 18:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-06 22:11 [patch] provide uniqe x2apicid for each vcpu in the cpuid leaf 0xb Nitin A Kamble
2009-05-07  7:05 ` Keir Fraser
2009-05-07 16:48   ` Kamble, Nitin A
2009-05-07 18:14     ` Keir Fraser
2009-05-07 18:16       ` Kamble, Nitin A

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.