All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
@ 2012-07-28 19:19 Matt Wilson
  2012-07-30  6:57 ` Jan Beulich
  2012-08-02 10:32 ` Liu, Jinsong
  0 siblings, 2 replies; 11+ messages in thread
From: Matt Wilson @ 2012-07-28 19:19 UTC (permalink / raw)
  To: Liu, Jinsong, Jan Beulich, Keir Fraser; +Cc: xen-devel

Although the "Intel Virtualization Technology FlexMigration
Application Note" (http://www.intel.com/Assets/PDF/manual/323850.pdf)
does not document support for extended model 2H model DH (Intel Xeon
Processor E5 Family), empirical evidence shows that the same MSR
addresses can be used for cpuid masking as exdended model 2H model AH
(Intel Xen Processor E3-1200 Family).

Signed-off-by: Matt Wilson <msw@amazon.com>

diff -r e6266fc76d08 -r bf922651da96 xen/arch/x86/cpu/intel.c
--- a/xen/arch/x86/cpu/intel.c	Fri Jul 27 12:22:13 2012 +0200
+++ b/xen/arch/x86/cpu/intel.c	Sat Jul 28 17:27:30 2012 +0000
@@ -104,7 +104,7 @@ static void __devinit set_cpuidmask(cons
 			return;
 		extra = "xsave ";
 		break;
-	case 0x2a:
+	case 0x2a: case 0x2d:
 		wrmsr(MSR_INTEL_CPUID1_FEATURE_MASK_V2,
 		      opt_cpuid_mask_ecx,
 		      opt_cpuid_mask_edx);

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-07-28 19:19 [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family Matt Wilson
@ 2012-07-30  6:57 ` Jan Beulich
  2012-08-06 20:23   ` Nakajima, Jun
  2012-08-02 10:32 ` Liu, Jinsong
  1 sibling, 1 reply; 11+ messages in thread
From: Jan Beulich @ 2012-07-30  6:57 UTC (permalink / raw)
  To: Matt Wilson, Donald D Dugger, Jun Nakajima
  Cc: Jinsong Liu, Keir Fraser, xen-devel

>>> On 28.07.12 at 21:19, Matt Wilson <msw@amazon.com> wrote:
> Although the "Intel Virtualization Technology FlexMigration
> Application Note" (http://www.intel.com/Assets/PDF/manual/323850.pdf)
> does not document support for extended model 2H model DH (Intel Xeon
> Processor E5 Family), empirical evidence shows that the same MSR
> addresses can be used for cpuid masking as exdended model 2H model AH
> (Intel Xen Processor E3-1200 Family).

Empirical evidence isn't really enough - let's have someone at Intel
confirm this - Jun, Don?

Jan

> Signed-off-by: Matt Wilson <msw@amazon.com>
> 
> diff -r e6266fc76d08 -r bf922651da96 xen/arch/x86/cpu/intel.c
> --- a/xen/arch/x86/cpu/intel.c	Fri Jul 27 12:22:13 2012 +0200
> +++ b/xen/arch/x86/cpu/intel.c	Sat Jul 28 17:27:30 2012 +0000
> @@ -104,7 +104,7 @@ static void __devinit set_cpuidmask(cons
>  			return;
>  		extra = "xsave ";
>  		break;
> -	case 0x2a:
> +	case 0x2a: case 0x2d:
>  		wrmsr(MSR_INTEL_CPUID1_FEATURE_MASK_V2,
>  		      opt_cpuid_mask_ecx,
>  		      opt_cpuid_mask_edx);

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-07-28 19:19 [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family Matt Wilson
  2012-07-30  6:57 ` Jan Beulich
@ 2012-08-02 10:32 ` Liu, Jinsong
  1 sibling, 0 replies; 11+ messages in thread
From: Liu, Jinsong @ 2012-08-02 10:32 UTC (permalink / raw)
  To: Matt Wilson, Jan Beulich, Keir Fraser; +Cc: xen-devel

IMO, it's risky since it's not architecturally committed.
Only processor family 6 w/ 0x17, 0x1d, 0x1a, 0x1e, 0x1f, 0x25, 0x2c, 0x2e, 0x2f, 0x2a are *architecturally* supported.

Thanks,
Jinsong

Matt Wilson wrote:
> Although the "Intel Virtualization Technology FlexMigration
> Application Note" (http://www.intel.com/Assets/PDF/manual/323850.pdf)
> does not document support for extended model 2H model DH (Intel Xeon
> Processor E5 Family), empirical evidence shows that the same MSR
> addresses can be used for cpuid masking as exdended model 2H model AH
> (Intel Xen Processor E3-1200 Family).
> 
> Signed-off-by: Matt Wilson <msw@amazon.com>
> 
> diff -r e6266fc76d08 -r bf922651da96 xen/arch/x86/cpu/intel.c
> --- a/xen/arch/x86/cpu/intel.c	Fri Jul 27 12:22:13 2012 +0200
> +++ b/xen/arch/x86/cpu/intel.c	Sat Jul 28 17:27:30 2012 +0000
> @@ -104,7 +104,7 @@ static void __devinit set_cpuidmask(cons
>  			return;
>  		extra = "xsave ";
>  		break;
> -	case 0x2a:
> +	case 0x2a: case 0x2d:
>  		wrmsr(MSR_INTEL_CPUID1_FEATURE_MASK_V2,
>  		      opt_cpuid_mask_ecx,
>  		      opt_cpuid_mask_edx);

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-07-30  6:57 ` Jan Beulich
@ 2012-08-06 20:23   ` Nakajima, Jun
  2012-08-07  6:49     ` Jan Beulich
  0 siblings, 1 reply; 11+ messages in thread
From: Nakajima, Jun @ 2012-08-06 20:23 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Jinsong Liu, Keir Fraser, Donald D Dugger, Matt Wilson, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1420 bytes --]

On Sun, Jul 29, 2012 at 11:57 PM, Jan Beulich <JBeulich@suse.com> wrote:

> >>> On 28.07.12 at 21:19, Matt Wilson <msw@amazon.com> wrote:
> > Although the "Intel Virtualization Technology FlexMigration
> > Application Note" (http://www.intel.com/Assets/PDF/manual/323850.pdf)
> > does not document support for extended model 2H model DH (Intel Xeon
> > Processor E5 Family), empirical evidence shows that the same MSR
> > addresses can be used for cpuid masking as exdended model 2H model AH
> > (Intel Xen Processor E3-1200 Family).
>
> Empirical evidence isn't really enough - let's have someone at Intel
> confirm this - Jun, Don?
>

Thanks for the patch. The patch looks good, and it should be in.
We'll update the document.



>
> Jan
>
> > Signed-off-by: Matt Wilson <msw@amazon.com>
> >
> > diff -r e6266fc76d08 -r bf922651da96 xen/arch/x86/cpu/intel.c
> > --- a/xen/arch/x86/cpu/intel.c        Fri Jul 27 12:22:13 2012 +0200
> > +++ b/xen/arch/x86/cpu/intel.c        Sat Jul 28 17:27:30 2012 +0000
> > @@ -104,7 +104,7 @@ static void __devinit set_cpuidmask(cons
> >                       return;
> >               extra = "xsave ";
> >               break;
> > -     case 0x2a:
> > +     case 0x2a: case 0x2d:
> >               wrmsr(MSR_INTEL_CPUID1_FEATURE_MASK_V2,
> >                     opt_cpuid_mask_ecx,
> >                     opt_cpuid_mask_edx);
>
>
>
>


-- 
Jun
Intel Open Source Technology Center

[-- Attachment #1.2: Type: text/html, Size: 2382 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-08-06 20:23   ` Nakajima, Jun
@ 2012-08-07  6:49     ` Jan Beulich
  2012-08-07 17:47       ` Matt Wilson
  0 siblings, 1 reply; 11+ messages in thread
From: Jan Beulich @ 2012-08-07  6:49 UTC (permalink / raw)
  To: Jun Nakajima
  Cc: Jinsong Liu, Keir Fraser, Donald D Dugger, Matt Wilson, xen-devel

>>> On 06.08.12 at 22:23, "Nakajima, Jun" <jun.nakajima@intel.com> wrote:
> On Sun, Jul 29, 2012 at 11:57 PM, Jan Beulich <JBeulich@suse.com> wrote:
> 
>> >>> On 28.07.12 at 21:19, Matt Wilson <msw@amazon.com> wrote:
>> > Although the "Intel Virtualization Technology FlexMigration
>> > Application Note" (http://www.intel.com/Assets/PDF/manual/323850.pdf)
>> > does not document support for extended model 2H model DH (Intel Xeon
>> > Processor E5 Family), empirical evidence shows that the same MSR
>> > addresses can be used for cpuid masking as exdended model 2H model AH
>> > (Intel Xen Processor E3-1200 Family).
>>
>> Empirical evidence isn't really enough - let's have someone at Intel
>> confirm this - Jun, Don?
>>
> 
> Thanks for the patch. The patch looks good, and it should be in.
> We'll update the document.

I take this as an ack then, and will commit it that way.

Jan

>> > Signed-off-by: Matt Wilson <msw@amazon.com>
>> >
>> > diff -r e6266fc76d08 -r bf922651da96 xen/arch/x86/cpu/intel.c
>> > --- a/xen/arch/x86/cpu/intel.c        Fri Jul 27 12:22:13 2012 +0200
>> > +++ b/xen/arch/x86/cpu/intel.c        Sat Jul 28 17:27:30 2012 +0000
>> > @@ -104,7 +104,7 @@ static void __devinit set_cpuidmask(cons
>> >                       return;
>> >               extra = "xsave ";
>> >               break;
>> > -     case 0x2a:
>> > +     case 0x2a: case 0x2d:
>> >               wrmsr(MSR_INTEL_CPUID1_FEATURE_MASK_V2,
>> >                     opt_cpuid_mask_ecx,
>> >                     opt_cpuid_mask_edx);
>>
>>
>>
>>
> 
> 
> -- 
> Jun
> Intel Open Source Technology Center

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-08-07  6:49     ` Jan Beulich
@ 2012-08-07 17:47       ` Matt Wilson
  2012-08-08  7:08         ` Jan Beulich
  0 siblings, 1 reply; 11+ messages in thread
From: Matt Wilson @ 2012-08-07 17:47 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Jinsong Liu, Keir Fraser, Donald D Dugger, Jun Nakajima, xen-devel

On Mon, Aug 06, 2012 at 11:49:12PM -0700, Jan Beulich wrote:
> >>> On 06.08.12 at 22:23, "Nakajima, Jun" <jun.nakajima@intel.com> wrote:
> > On Sun, Jul 29, 2012 at 11:57 PM, Jan Beulich <JBeulich@suse.com> wrote:
> > 
> >> >>> On 28.07.12 at 21:19, Matt Wilson <msw@amazon.com> wrote:
> >> > Although the "Intel Virtualization Technology FlexMigration
> >> > Application Note" (http://www.intel.com/Assets/PDF/manual/323850.pdf)
> >> > does not document support for extended model 2H model DH (Intel Xeon
> >> > Processor E5 Family), empirical evidence shows that the same MSR
> >> > addresses can be used for cpuid masking as exdended model 2H model AH
> >> > (Intel Xen Processor E3-1200 Family).
> >>
> >> Empirical evidence isn't really enough - let's have someone at Intel
> >> confirm this - Jun, Don?
> >>
> > 
> > Thanks for the patch. The patch looks good, and it should be in.
> > We'll update the document.
> 
> I take this as an ack then, and will commit it that way.

Thanks for committing, Jan.

For what it's worth, I think that the first line of the commit log got
dropped, which makes for a strange short log message of:

  Although the "Intel Virtualization Technology FlexMigration

Matt

> >> > Signed-off-by: Matt Wilson <msw@amazon.com>
> >> >
> >> > diff -r e6266fc76d08 -r bf922651da96 xen/arch/x86/cpu/intel.c
> >> > --- a/xen/arch/x86/cpu/intel.c        Fri Jul 27 12:22:13 2012 +0200
> >> > +++ b/xen/arch/x86/cpu/intel.c        Sat Jul 28 17:27:30 2012 +0000
> >> > @@ -104,7 +104,7 @@ static void __devinit set_cpuidmask(cons
> >> >                       return;
> >> >               extra = "xsave ";
> >> >               break;
> >> > -     case 0x2a:
> >> > +     case 0x2a: case 0x2d:
> >> >               wrmsr(MSR_INTEL_CPUID1_FEATURE_MASK_V2,
> >> >                     opt_cpuid_mask_ecx,
> >> >                     opt_cpuid_mask_edx);
> >>
> >>
> >>
> >>
> > 
> > 
> 
> 

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-08-07 17:47       ` Matt Wilson
@ 2012-08-08  7:08         ` Jan Beulich
  2012-08-08  8:02           ` Ian Campbell
  0 siblings, 1 reply; 11+ messages in thread
From: Jan Beulich @ 2012-08-08  7:08 UTC (permalink / raw)
  To: Matt Wilson
  Cc: Jinsong Liu, Keir Fraser, Jun Nakajima, Donald D Dugger, xen-devel

>>> On 07.08.12 at 19:47, Matt Wilson <msw@amazon.com> wrote:
> For what it's worth, I think that the first line of the commit log got
> dropped, which makes for a strange short log message of:
> 
>   Although the "Intel Virtualization Technology FlexMigration

Yes, I'm sorry for that, but I realized this only after pushing, and
I'm unaware of ways to adjust the commit message of an existing
c/s.

Jan

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-08-08  7:08         ` Jan Beulich
@ 2012-08-08  8:02           ` Ian Campbell
  2012-08-08  8:48             ` Jan Beulich
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Campbell @ 2012-08-08  8:02 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Jinsong Liu, Keir (Xen.org),
	Matt Wilson, Donald D Dugger, xen-devel, Jun Nakajima

On Wed, 2012-08-08 at 08:08 +0100, Jan Beulich wrote:
> >>> On 07.08.12 at 19:47, Matt Wilson <msw@amazon.com> wrote:
> > For what it's worth, I think that the first line of the commit log got
> > dropped, which makes for a strange short log message of:
> > 
> >   Although the "Intel Virtualization Technology FlexMigration
> 
> Yes, I'm sorry for that, but I realized this only after pushing, and
> I'm unaware of ways to adjust the commit message of an existing
> c/s.

There is an hg rebase extension something like git's rebase -i but I
find the easiest way is to use the mq extension's function which pulls
the tip commit into a patch in the queue.

Actually, that's not quite true, I find the real easiest way is to hg
strip the wrong commit and try again.

Actually, that's not true either, the real easiest way IMHO is to use a
git mirror for all the leg work and Ian J's git2hgapply script to
actually "apply" it. YMMV depending on your feelings about git
though ;-)

Ian.

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-08-08  8:02           ` Ian Campbell
@ 2012-08-08  8:48             ` Jan Beulich
  2012-08-08  9:04               ` Ian Campbell
  2012-08-08 16:24               ` Dugger, Donald D
  0 siblings, 2 replies; 11+ messages in thread
From: Jan Beulich @ 2012-08-08  8:48 UTC (permalink / raw)
  To: Ian Campbell
  Cc: Jinsong Liu, Keir(Xen.org),
	Jun Nakajima, Donald DDugger, xen-devel, Matt Wilson

>>> On 08.08.12 at 10:02, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> On Wed, 2012-08-08 at 08:08 +0100, Jan Beulich wrote:
>> >>> On 07.08.12 at 19:47, Matt Wilson <msw@amazon.com> wrote:
>> > For what it's worth, I think that the first line of the commit log got
>> > dropped, which makes for a strange short log message of:
>> > 
>> >   Although the "Intel Virtualization Technology FlexMigration
>> 
>> Yes, I'm sorry for that, but I realized this only after pushing, and
>> I'm unaware of ways to adjust the commit message of an existing
>> c/s.
> 
> There is an hg rebase extension something like git's rebase -i but I
> find the easiest way is to use the mq extension's function which pulls
> the tip commit into a patch in the queue.
> 
> Actually, that's not quite true, I find the real easiest way is to hg
> strip the wrong commit and try again.

But that's only if it didn't get pushed yet?

> Actually, that's not true either, the real easiest way IMHO is to use a
> git mirror for all the leg work and Ian J's git2hgapply script to
> actually "apply" it. YMMV depending on your feelings about git
> though ;-)

Indeed. While I'm slowly getting to know it better, I'm still not
really friends with it.

Jan

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-08-08  8:48             ` Jan Beulich
@ 2012-08-08  9:04               ` Ian Campbell
  2012-08-08 16:24               ` Dugger, Donald D
  1 sibling, 0 replies; 11+ messages in thread
From: Ian Campbell @ 2012-08-08  9:04 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Jinsong Liu, Keir (Xen.org),
	Jun Nakajima, Donald DDugger, xen-devel, Matt Wilson

On Wed, 2012-08-08 at 09:48 +0100, Jan Beulich wrote:
> >>> On 08.08.12 at 10:02, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > On Wed, 2012-08-08 at 08:08 +0100, Jan Beulich wrote:
> >> >>> On 07.08.12 at 19:47, Matt Wilson <msw@amazon.com> wrote:
> >> > For what it's worth, I think that the first line of the commit log got
> >> > dropped, which makes for a strange short log message of:
> >> > 
> >> >   Although the "Intel Virtualization Technology FlexMigration
> >> 
> >> Yes, I'm sorry for that, but I realized this only after pushing, and
> >> I'm unaware of ways to adjust the commit message of an existing
> >> c/s.
> > 
> > There is an hg rebase extension something like git's rebase -i but I
> > find the easiest way is to use the mq extension's function which pulls
> > the tip commit into a patch in the queue.
> > 
> > Actually, that's not quite true, I find the real easiest way is to hg
> > strip the wrong commit and try again.
> 
> But that's only if it didn't get pushed yet?

Yes, it's only if you catch the mistake before pushing. If you've pushed
then in principal you could hg strip on the server but in practice you
don't want to do that on a widely used/shared repo and you just have to
live with the mistake, or I suppose you could hg revert and recommit if
the bad cset was really confusing etc.

> > Actually, that's not true either, the real easiest way IMHO is to use a
> > git mirror for all the leg work and Ian J's git2hgapply script to
> > actually "apply" it. YMMV depending on your feelings about git
> > though ;-)
> 
> Indeed. While I'm slowly getting to know it better, I'm still not
> really friends with it.

I'm not sure any one is ;-)

Ian.

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

* Re: [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family
  2012-08-08  8:48             ` Jan Beulich
  2012-08-08  9:04               ` Ian Campbell
@ 2012-08-08 16:24               ` Dugger, Donald D
  1 sibling, 0 replies; 11+ messages in thread
From: Dugger, Donald D @ 2012-08-08 16:24 UTC (permalink / raw)
  To: Jan Beulich, Ian Campbell
  Cc: Liu, Jinsong, Keir(Xen.org), Nakajima, Jun, Matt Wilson, xen-devel

Jan-

If we're using git doesn't `git -amend' do what you want?  If we're talking `hg' then I have no clue.

--
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
Ph: 303/443-3786


-----Original Message-----
From: Jan Beulich [mailto:JBeulich@suse.com] 
Sent: Wednesday, August 08, 2012 2:48 AM
To: Ian Campbell
Cc: Matt Wilson; Dugger, Donald D; Liu, Jinsong; Nakajima, Jun; xen-devel@lists.xen.org; Keir(Xen.org)
Subject: Re: [Xen-devel] [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family

>>> On 08.08.12 at 10:02, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> On Wed, 2012-08-08 at 08:08 +0100, Jan Beulich wrote:
>> >>> On 07.08.12 at 19:47, Matt Wilson <msw@amazon.com> wrote:
>> > For what it's worth, I think that the first line of the commit log got
>> > dropped, which makes for a strange short log message of:
>> > 
>> >   Although the "Intel Virtualization Technology FlexMigration
>> 
>> Yes, I'm sorry for that, but I realized this only after pushing, and
>> I'm unaware of ways to adjust the commit message of an existing
>> c/s.
> 
> There is an hg rebase extension something like git's rebase -i but I
> find the easiest way is to use the mq extension's function which pulls
> the tip commit into a patch in the queue.
> 
> Actually, that's not quite true, I find the real easiest way is to hg
> strip the wrong commit and try again.

But that's only if it didn't get pushed yet?

> Actually, that's not true either, the real easiest way IMHO is to use a
> git mirror for all the leg work and Ian J's git2hgapply script to
> actually "apply" it. YMMV depending on your feelings about git
> though ;-)

Indeed. While I'm slowly getting to know it better, I'm still not
really friends with it.

Jan

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

end of thread, other threads:[~2012-08-08 16:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-28 19:19 [PATCH] xen/x86: Add support for cpuid masking on Intel Xeon Processor E5 Family Matt Wilson
2012-07-30  6:57 ` Jan Beulich
2012-08-06 20:23   ` Nakajima, Jun
2012-08-07  6:49     ` Jan Beulich
2012-08-07 17:47       ` Matt Wilson
2012-08-08  7:08         ` Jan Beulich
2012-08-08  8:02           ` Ian Campbell
2012-08-08  8:48             ` Jan Beulich
2012-08-08  9:04               ` Ian Campbell
2012-08-08 16:24               ` Dugger, Donald D
2012-08-02 10:32 ` Liu, Jinsong

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.