All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: wei.liu2@citrix.com, stefano.stabellini@eu.citrix.com,
	ian.jackson@eu.citrix.com, Liang Li <liang.z.li@intel.com>,
	tim@xen.org, xen-devel@lists.xen.org, JBeulich@suse.com,
	andrew.cooper3@citrix.com, yang.z.zhang@intel.com
Subject: Re: [v4] libxc: Expose the 1GB pages cpuid flag to guest
Date: Tue, 2 Dec 2014 16:09:41 -0500	[thread overview]
Message-ID: <20141202210941.GA1593@laptop.dumpdata.com> (raw)
In-Reply-To: <1417175443.23604.18.camel@citrix.com>

On Fri, Nov 28, 2014 at 11:50:43AM +0000, Ian Campbell wrote:
> On Fri, 2014-11-28 at 18:52 +0800, Liang Li wrote:
> > If hardware support the 1GB pages, expose the feature to guest by
> > default. Users don't have to use a 'cpuid= ' option in config fil
> > e to turn it on.
> > 
> > If guest use shadow mode, the 1GB pages feature will be hidden from
> > guest, this is done in the function hvm_cpuid(). So the change is
> > okay for shadow mode case.
> > 
> > Signed-off-by: Liang Li <liang.z.li@intel.com>
> > Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
> 
> FTR although this is strictly speaking a toolstack patch I think the
> main ack required should be from the x86 hypervisor guys...

Jan acked it.
> 
> > ---
> >  tools/libxc/xc_cpuid_x86.c | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c
> > index a18b1ff..c97f91a 100644
> > --- a/tools/libxc/xc_cpuid_x86.c
> > +++ b/tools/libxc/xc_cpuid_x86.c
> > @@ -109,6 +109,7 @@ static void amd_xc_cpuid_policy(
> >          regs[3] &= (0x0183f3ff | /* features shared with 0x00000001:EDX */
> >                      bitmaskof(X86_FEATURE_NX) |
> >                      bitmaskof(X86_FEATURE_LM) |
> > +                    bitmaskof(X86_FEATURE_PAGE1GB) |
> >                      bitmaskof(X86_FEATURE_SYSCALL) |
> >                      bitmaskof(X86_FEATURE_MP) |
> >                      bitmaskof(X86_FEATURE_MMXEXT) |
> > @@ -192,6 +193,7 @@ static void intel_xc_cpuid_policy(
> >                      bitmaskof(X86_FEATURE_ABM));
> >          regs[3] &= (bitmaskof(X86_FEATURE_NX) |
> >                      bitmaskof(X86_FEATURE_LM) |
> > +                    bitmaskof(X86_FEATURE_PAGE1GB) |
> >                      bitmaskof(X86_FEATURE_SYSCALL) |
> >                      bitmaskof(X86_FEATURE_RDTSCP));
> >          break;
> > @@ -386,6 +388,7 @@ static void xc_cpuid_hvm_policy(
> >              clear_bit(X86_FEATURE_LM, regs[3]);
> >              clear_bit(X86_FEATURE_NX, regs[3]);
> >              clear_bit(X86_FEATURE_PSE36, regs[3]);
> > +            clear_bit(X86_FEATURE_PAGE1GB, regs[3]);
> >          }
> >          break;
> >  
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2014-12-02 21:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28 10:52 [v4] libxc: Expose the 1GB pages cpuid flag to guest Liang Li
2014-11-28 11:31 ` Jan Beulich
2015-01-08 14:58   ` Ian Campbell
2014-11-28 11:50 ` Ian Campbell
2014-12-02 21:09   ` Konrad Rzeszutek Wilk [this message]
2014-12-03  9:38     ` Ian Campbell
2014-12-03 15:57       ` Konrad Rzeszutek Wilk
2014-12-04  1:50         ` Zhang, Yang Z
2014-12-04 10:21           ` Andrew Cooper
2014-12-08  2:11             ` Zhang, Yang Z

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=20141202210941.GA1593@laptop.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=liang.z.li@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@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.