From: "Jan Beulich" <JBeulich@suse.com>
To: Liang Li <liang.z.li@intel.com>
Cc: tim@xen.org, wei.liu2@citrix.com, ian.campbell@citrix.com,
stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com,
ian.jackson@eu.citrix.com, xen-devel@lists.xen.org,
yang.z.zhang@intel.com
Subject: Re: [v3] libxc: Expose the 1GB pages cpuid flag to guest
Date: Fri, 28 Nov 2014 09:16:18 +0000 [thread overview]
Message-ID: <54784B72020000780004B565@mail.emea.novell.com> (raw)
In-Reply-To: <1417145320-9158-1-git-send-email-liang.z.li@intel.com>
>>> On 28.11.14 at 04:28, <liang.z.li@intel.com> wrote:
> --- a/xen/arch/x86/hvm/hvm.c
> +++ b/xen/arch/x86/hvm/hvm.c
> @@ -4287,7 +4287,7 @@ void hvm_cpuid(unsigned int input, unsigned int *eax, unsigned int *ebx,
> !host_tsc_is_safe() )
> *edx &= ~cpufeat_mask(X86_FEATURE_RDTSCP);
> /* Hide 1GB-superpage feature if we can't emulate it. */
> - if (!hvm_pse1gb_supported(d))
> + if (!hvm_pse1gb_supported(d) || paging_mode_shadow(d))
> *edx &= ~cpufeat_mask(X86_FEATURE_PAGE1GB);
With
#define hvm_pse1gb_supported(d) \
(cpu_has_page1gb && paging_mode_hap(d))
the change above is pointless. While, considering this, comments on
v2 may have been misleading, you should have simply updated the
patch description instead to clarify why the v2 change was okay
even for the shadow mode case.
Jan
next prev parent reply other threads:[~2014-11-28 9:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-28 3:28 [v3] libxc: Expose the 1GB pages cpuid flag to guest Liang Li
2014-11-28 9:16 ` Jan Beulich [this message]
2014-11-28 10:29 ` Li, Liang Z
2014-11-28 10:32 ` Andrew Cooper
2014-11-28 10:38 ` Li, Liang Z
2014-11-28 10:39 ` Jan Beulich
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=54784B72020000780004B565@mail.emea.novell.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.campbell@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.