From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Tim Deegan <tim@xen.org>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
xen-devel@lists.xenproject.org, Keir Fraser <keir@xen.org>,
Jan Beulich <JBeulich@suse.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH RFC] pvh: clearly specify used parameters in vcpu_guest_context
Date: Fri, 15 Nov 2013 15:35:50 -0800 [thread overview]
Message-ID: <20131115153550.3e899e0a@mantra.us.oracle.com> (raw)
In-Reply-To: <20131115165509.GA58145@deinos.phlegethon.org>
On Fri, 15 Nov 2013 17:55:09 +0100
Tim Deegan <tim@xen.org> wrote:
> At 16:32 +0000 on 15 Nov (1384529574), Jan Beulich wrote:
> > >>> On 15.11.13 at 16:50, Roger Pau Monne <roger.pau@citrix.com>
> > >>> wrote:
> > > --- a/xen/arch/x86/domain.c
> > > +++ b/xen/arch/x86/domain.c
> > > @@ -704,9 +704,11 @@ int arch_set_info_guest(
> > > /* PVH 32bitfixme */
> > > ASSERT(!compat);
> > >
> > > - if ( c(ctrlreg[1]) || c(ldt_base) || c(ldt_ents) ||
> > > + if ( c(ctrlreg[0]) || c(ctrlreg[1]) || c(ctrlreg[2]) ||
> > > + c(ctrlreg[4]) || c(ldt_base) || c(ldt_ents) ||
> >
> > I think it should actually be a bug for the guest to request an
> > all blank CR0 or CR4. Minimally CR0.PE, CR0.PG, and CR4.PAE
> > would seem to be a valid requirement to be set.
>
> I think zero is better. Guest CRx are explicitly _not_ loaded from
> these fields so making them look like valid CRx values is just
> confusing.
+1.
> But even better would be to allow all these fields to be set to any
> valid values, and to load the state into the guest vCPU. I think
> that's going to be more sensible once the current restriction that PVH
> vCPUs are always in long more goes away.
Agree, it can be designed much better when the 32bit guest support
is added.
thanks,
mukesh
next prev parent reply other threads:[~2013-11-15 23:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 15:50 [PATCH RFC] pvh: clearly specify used parameters in vcpu_guest_context Roger Pau Monne
2013-11-15 16:32 ` Jan Beulich
2013-11-15 16:40 ` George Dunlap
2013-11-15 16:45 ` Jan Beulich
2013-11-15 21:56 ` Mukesh Rathor
2013-11-15 23:56 ` Mukesh Rathor
2013-11-16 1:12 ` Mukesh Rathor
2013-11-16 1:56 ` Mukesh Rathor
2013-11-16 8:02 ` Roger Pau Monné
2013-11-18 12:15 ` George Dunlap
2013-11-18 16:17 ` Konrad Rzeszutek Wilk
2013-11-18 16:19 ` Konrad Rzeszutek Wilk
2013-11-18 11:50 ` George Dunlap
2013-11-15 16:55 ` Tim Deegan
2013-11-15 23:35 ` Mukesh Rathor [this message]
2013-11-16 8:04 ` Roger Pau Monné
2013-11-15 16:59 ` Roger Pau Monné
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=20131115153550.3e899e0a@mantra.us.oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=JBeulich@suse.com \
--cc=george.dunlap@eu.citrix.com \
--cc=keir@xen.org \
--cc=roger.pau@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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).