From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>
Subject: Re: [PATCH 10/18 V2]: PVH xen: introduce vmx_pvh.c and pvh.c
Date: Wed, 3 Apr 2013 18:01:59 -0700 [thread overview]
Message-ID: <20130403180159.4c1bd681@mantra.us.oracle.com> (raw)
In-Reply-To: <20130318163206.GM24560@phenom.dumpdata.com>
On Mon, 18 Mar 2013 12:32:06 -0400
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> On Fri, Mar 15, 2013 at 05:41:45PM -0700, Mukesh Rathor wrote:
> > + return 1;
> > + }
> > +
> > + new_cr0 &= ~HVM_CR0_GUEST_RESERVED_BITS;
> > + /* ET is reserved and should be always be 1. */
> > + new_cr0 |= X86_CR0_ET;
> > +
> > + /* pvh cannot change to real mode */
> > + if ( (new_cr0 & (X86_CR0_PE|X86_CR0_PG)) !=
> > (X86_CR0_PG|X86_CR0_PE) ) {
> > + printk("PVH attempting to turn off PE/PG. CR0:%lx\n",
> > new_cr0);
> > + return 1;
> > + }
> > + /* TS going from 1 to 0 */
> > + if ( (old_cr0 & X86_CR0_TS) && ((new_cr0 &
> > X86_CR0_TS)==0) )
> > + vmx_fpu_enter(vp);
>
> Does this really happen? I thought in the PV mode you would be using
> the hypercalls for the fpu swap? Should it be print out an error
> saying something to the effect:
>
> "PVH guest is using cr0 instead of the paravirt lazy FPU
> switch!" and include the EIP?
Yes. At present in linux PVH, we use native_clts and not xen_clts pv
ops call. But another PVH guest might not want to use hypercalls, right?
thanks,
Mukesh
next prev parent reply other threads:[~2013-04-04 1:01 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 0:41 [PATCH 10/18 V2]: PVH xen: introduce vmx_pvh.c and pvh.c Mukesh Rathor
2013-03-18 12:16 ` Jan Beulich
2013-04-02 0:08 ` Mukesh Rathor
2013-04-02 7:00 ` Jan Beulich
2013-03-18 16:32 ` Konrad Rzeszutek Wilk
2013-04-02 1:26 ` Mukesh Rathor
2013-04-02 14:10 ` Konrad Rzeszutek Wilk
2013-04-03 1:29 ` Mukesh Rathor
2013-04-03 14:40 ` Konrad Rzeszutek Wilk
2013-04-03 1:45 ` Mukesh Rathor
2013-04-03 1:42 ` Mukesh Rathor
2013-04-04 1:01 ` Mukesh Rathor [this message]
2013-04-04 8:23 ` Jan Beulich
2013-03-21 16:49 ` Tim Deegan
2013-03-22 8:32 ` Jan Beulich
2013-03-22 10:06 ` Tim Deegan
2013-04-03 1:37 ` Mukesh Rathor
2013-04-03 8:06 ` Jan Beulich
2013-04-03 23:38 ` Mukesh Rathor
2013-04-04 9:12 ` Tim Deegan
2013-04-04 23:00 ` Mukesh Rathor
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=20130403180159.4c1bd681@mantra.us.oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=Xen-devel@lists.xensource.com \
--cc=konrad.wilk@oracle.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 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).