All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: "Tian, Kevin" <kevin.tian@intel.com>,
	"Liu, Jinsong" <jinsong.liu@intel.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Cc: "Shan, Haitao" <haitao.shan@intel.com>, "Li, Xin" <xin.li@intel.com>
Subject: Re: [PATCH] X86: cpuid faulting feature enable
Date: Sat, 02 Jul 2011 08:49:57 +0100	[thread overview]
Message-ID: <CA348C35.1D60C%keir.xen@gmail.com> (raw)
In-Reply-To: <625BA99ED14B2D499DC4E29D8138F150626EF795D9@shsmsx502.ccr.corp.intel.com>

On 02/07/2011 04:15, "Tian, Kevin" <kevin.tian@intel.com> wrote:

>> From: Keir Fraser [mailto:keir.xen@gmail.com] On Behalf Of Keir Fraser
>> Sent: Saturday, July 02, 2011 5:31 AM
>> 
>> On 01/07/2011 15:32, "Liu, Jinsong" <jinsong.liu@intel.com> wrote:
>> 
>>> X86: cpuid faulting feature enable
>>> 
>>> Latest Intel processor add cpuid faulting feature. This patch is used to
>>> support cpuid faulting in Xen.
>>> Like cpuid spoofing, cpuid faulting mainly used to support live migration.
>>> When cpl>0, cpuid instruction will produce GP, vmm then emulate execution
>> of
>>> the cpuid instruction. Hence will appear to guest software the value chosen
>> by
>>> the vmm.
>> 
>> I fixed this up quite a bit and applied as c/s 23653. Please take a look and
>> give it a test. In particular note the changes I made in intel_init(), to
>> make sure that APs are at least as featureful as the BSP w.r.t. cpuid
>> faulting.
>> 
> 
> 2.42 + } else if (boot_cpu_has(X86_FEATURE_CPUID_FAULTING)) {
>     2.43 +  BUG_ON(!probe_intel_cpuid_faulting());
>     2.44 +  set_bit(X86_FEATURE_CPUID_FAULTING, c->x86_capability);
>     2.45 + }
>     2.46 +
>     2.47 + if (!cpu_has_cpuid_faulting)
>     2.48 +  set_cpuidmask(c);
>     2.49 +
>     2.50 + BUG_ON(cpu_has(c, X86_FEATURE_CPUID_FAULTING) !=
>     2.51 +        boot_cpu_has(X86_FEATURE_CPUID_FAULTING));
> 
> the latter BUG_ON is useless since if AP is inconsistent with BSP we already
> get bug triggered in earlier BUG_ON.

Oops, I forgot to remove the redundant second BUG_ON. I'll do that now.
Thanks!

 -- Keir

> Thanks
> Kevin

  reply	other threads:[~2011-07-02  7:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-01 14:32 [PATCH] X86: cpuid faulting feature enable Liu, Jinsong
2011-07-01 15:48 ` Jan Beulich
2011-07-01 16:07   ` Keir Fraser
2011-07-02  3:04     ` Tian, Kevin
2011-07-01 17:48   ` Liu, Jinsong
2011-07-01 18:02     ` Keir Fraser
2011-07-01 18:12       ` Liu, Jinsong
2011-07-01 18:14       ` Liu, Jinsong
2011-07-01 21:31 ` Keir Fraser
2011-07-02  3:15   ` Tian, Kevin
2011-07-02  7:49     ` Keir Fraser [this message]
2011-07-04  1:06       ` Shan, Haitao
2011-07-04  6:58         ` Keir Fraser
2011-07-03  9:40   ` Liu, Jinsong
2011-07-04  3:19   ` Liu, Jinsong
2011-07-04  6:59     ` Keir Fraser
2011-07-04  8:10       ` Liu, Jinsong
  -- strict thread matches above, loose matches on Subject: below --
2011-07-01 19:41 Liu, Jinsong
2011-07-01 21:32 ` Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA348C35.1D60C%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=haitao.shan@intel.com \
    --cc=jinsong.liu@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xin.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.