xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [RFC PATCH 8/16]: PVH xen: domain creation code changes
Date: Tue, 15 Jan 2013 16:50:11 -0800	[thread overview]
Message-ID: <20130115165011.764c7180@mantra.us.oracle.com> (raw)
In-Reply-To: <50F3FEE602000078000B540B@nat28.tlf.novell.com>

On Mon, 14 Jan 2013 11:49:42 +0000
"Jan Beulich" <JBeulich@suse.com> wrote:

> >>> On 12.01.13 at 02:57, Mukesh Rathor <mukesh.rathor@oracle.com>
> >>> wrote:
> > +#if 0
> > +    /* should we allow PV dom0 to create PVH domU's ???? */
> > +    if ( is_pvh_vcpu(v) && !is_pvh_vcpu(current) )
> > +        return -EINVAL;
> > +#endif
> 
> Any Dom0 ought to be able to construct any kind of guest imo.

Agree. Removed the code.

> So you add these hooks, call them unconditionally, yet neither VMX
> nor SVM implement them? What's the purpose? Series of patches
> are expected to be consistent at each patch boundary.

I'm told to keep patch sizes small, so I try to group together
changes. The functions are small/generic enough I figured it would 
be OK.

> > --- a/xen/include/asm-x86/hvm/vcpu.h	Fri Jan 11 16:29:49
> > 2013 -0800 +++ b/xen/include/asm-x86/hvm/vcpu.h	Fri Jan 11
> > 16:31:33 2013 -0800 @@ -104,6 +104,13 @@ struct nestedvcpu {
> >  
> >  #define vcpu_nestedhvm(v) ((v)->arch.hvm_vcpu.nvcpu)
> >  
> > +/* add any PVH specific fields here */
> > +struct pvh_hvm_vcpu_ext
> > +{
> > +    /* Guest-specified relocation of vcpu_info. */
> > +    unsigned long pvh_vcpu_info_mfn;
> 
> Isn't that a field equivalent to v->arch.pv_vcpu.vcpu_info_mfn?
> Preferably they would be shared then, or if not, having "pvh" in
> the containing structure's field name and the field name here is
> clearly one too much.

No, it's a union, so can't use pv_vcpu.vcpu_info_mfn. I like the
3 char prefix to field name so grep/cscope can find it easily.

Thanks,
Mukesh

  reply	other threads:[~2013-01-16  0:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-12  1:57 [RFC PATCH 8/16]: PVH xen: domain creation code changes Mukesh Rathor
2013-01-14 11:49 ` Jan Beulich
2013-01-16  0:50   ` Mukesh Rathor [this message]
2013-01-16  9:57     ` Jan Beulich
2013-01-24 23:50       ` 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=20130115165011.764c7180@mantra.us.oracle.com \
    --to=mukesh.rathor@oracle.com \
    --cc=JBeulich@suse.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).