xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: "Roger Pau Monné" <roger.pau@citrix.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: PVH cpuid feature flags
Date: Tue, 21 Jan 2014 14:17:27 -0800	[thread overview]
Message-ID: <20140121141727.432b5c96@mantra.us.oracle.com> (raw)
In-Reply-To: <52DECA4E.4080004@citrix.com>

On Tue, 21 Jan 2014 20:28:14 +0100
Roger Pau Monné <roger.pau@citrix.com> wrote:

> Hello,
> 
> While doing some benchmarks on PV/PVH/PVHVM, I've realized that the
> cpuid feature flags exposed to PVH guests are kind of strange, this is
> the output of the feature flags as seen by an HVM domain:
> 
> Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
>  Features2=0x81b82201<SSE3,SSSE3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,HV>
> AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
> AMD Features2=0x1<LAHF>
> 
> And this is what a PVH domain sees when running on the same hardware:
> 
> Features=0x1fc98b75<FPU,DE,TSC,MSR,PAE,CX8,APIC,SEP,CMOV,PAT,CLFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT>
> Features2=0x80982201<SSE3,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,HV>
> AMD Features=0x20100800<SYSCALL,NX,LM>
> AMD Features2=0x1<LAHF>
> 
> I would expect the feature flags to be quite similar between an HVM
> domain and a PV domain (since they both run inside of a HVM
> container). AFAIK, there's no reason to disable PSE, PGE, PSE36 and
> RDTSCP for PVH guests. Also, is there any reason why PVH guests have
> the ACPI, SS and CLFLUSH feature flags but not HVM?
> 
> Most (if not all) of this probably comes from the fact that we are
> reporting the same feature flags as pure PV guests, but I see no

Right, I already said I was working on xen patch to export CR4 and
other features. But, it will take couple days, as I'm debugging somethig
else right now. If you can't wait, go for it.

BTW, if you have time to work on PVH, can you pl help with migration?
Would be very much appreciated.... 

thanks
Mukesh


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

  reply	other threads:[~2014-01-21 22:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-21 19:28 PVH cpuid feature flags Roger Pau Monné
2014-01-21 22:17 ` Mukesh Rathor [this message]
2014-01-24 18:31 ` Konrad Rzeszutek Wilk
2014-01-27 12:06   ` Roger Pau Monné
2014-01-31 15:49     ` Konrad Rzeszutek Wilk

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=20140121141727.432b5c96@mantra.us.oracle.com \
    --to=mukesh.rathor@oracle.com \
    --cc=roger.pau@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).