xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Haozhong Zhang <haozhong.zhang@intel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Kevin Tian <kevin.tian@intel.com>, Wei Liu <wei.liu2@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org, Jun Nakajima <jun.nakajima@intel.com>,
	Keir Fraser <keir@xen.org>
Subject: Re: [PATCH v2 2/2] x86/hvm: add support for pcommit instruction
Date: Fri, 8 Jan 2016 15:58:23 +0800	[thread overview]
Message-ID: <20160108075823.GB3828@hz-desktop.sh.intel.com> (raw)
In-Reply-To: <568F795802000078000C4AD3@prv-mh.provo.novell.com>

On 01/08/16 00:54, Jan Beulich wrote:
> >>> On 08.01.16 at 02:15, <haozhong.zhang@intel.com> wrote:
> > On 01/07/16 06:53, Jan Beulich wrote:
> >> >>> On 30.12.15 at 12:48, <haozhong.zhang@intel.com> wrote:
> >> > --- a/xen/arch/x86/hvm/hvm.c
> >> > +++ b/xen/arch/x86/hvm/hvm.c
> >> > @@ -4605,6 +4605,9 @@ void hvm_cpuid(unsigned int input, unsigned int *eax, 
> > unsigned int *ebx,
> >> >  
> >> >              if ( !cpu_has_clwb )
> >> >                  *ebx &= ~cpufeat_mask(X86_FEATURE_CLWB);
> >> > +
> >> > +            if ( !cpu_has_pcommit )
> >> > +                *ebx &= ~cpufeat_mask(X86_FEATURE_PCOMMIT);
> >> 
> >> Other than for patch 1, this not only need to stay, but needs to be
> >> extended along the lines of X86_FEATURE_MPX handling.
> >>
> > 
> > In section "PCOMMIT - Virtualization Support" of Intel Architecture
> > Instruction Set Extensions Programming Reference, it says
> > 
> >     IA32_VMX_PROCBASED_CTLS2[53] (which enumerates support for the
> >     1-setting of “PCOMMIT exiting”) is always the same as
> >     CPUID.07H:EBX.PCOMMIT[bit 22].
> > 
> > so checking cpu_has_pcommit is enough here.
> 
> Even if the documentation says so, I think it is appropriate (as
> indicated at the very least to match with MPX handling) to add
> the check (here or elsewhere), just to make obvious that both
> are a prereq.
> 
> Jan

OK, I'll modify in the next version.

Haozhong

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

  reply	other threads:[~2016-01-08  7:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 11:48 [PATCH v2 0/2] add support for vNVDIMM - Part 1: enable instructions Haozhong Zhang
2015-12-30 11:48 ` [PATCH v2 1/2] x86/hvm: allow guest to use clflushopt and clwb Haozhong Zhang
2015-12-30 11:53   ` Andrew Cooper
2016-01-05  7:02   ` Tian, Kevin
2016-01-07 13:49   ` Jan Beulich
2016-01-07 14:01     ` Andrew Cooper
2016-01-07 14:34       ` Jan Beulich
2016-01-08  8:27         ` Haozhong Zhang
2016-01-08  8:39           ` Jan Beulich
2015-12-30 11:48 ` [PATCH v2 2/2] x86/hvm: add support for pcommit instruction Haozhong Zhang
2015-12-30 11:57   ` Andrew Cooper
2016-01-05  7:08   ` Tian, Kevin
2016-01-05  7:15     ` Zhang, Haozhong
2016-01-05  7:19       ` Tian, Kevin
2016-01-05  7:32         ` Zhang, Haozhong
2016-01-05  7:45           ` Tian, Kevin
2016-01-07 13:53   ` Jan Beulich
2016-01-08  1:15     ` Haozhong Zhang
2016-01-08  7:54       ` Jan Beulich
2016-01-08  7:58         ` Haozhong Zhang [this message]
2016-01-04 11:10 ` [PATCH v2 0/2] add support for vNVDIMM - Part 1: enable instructions Wei Liu

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=20160108075823.GB3828@hz-desktop.sh.intel.com \
    --to=haozhong.zhang@intel.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).