xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
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 12/18 V2]:PVH xen: support invalid op, return PVH features etc...
Date: Fri, 5 Apr 2013 15:02:39 -0700	[thread overview]
Message-ID: <20130405150239.4e8f716c@mantra.us.oracle.com> (raw)
In-Reply-To: <20130318174843.GD27433@phenom.dumpdata.com>

On Mon, 18 Mar 2013 13:48:43 -0400
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:

> On Fri, Mar 15, 2013 at 05:48:44PM -0700, Mukesh Rathor wrote:
> >  The biggest change in this patch is in traps.c to allow forced
> > invalid op for PVH guest. Also, enable hypercall page init for PVH
> > guest also. Finally, set guest type to PVH if PV with HAP is
> > created.
> > 
> > index ab54f82..14656c1 100644
> > --- a/xen/arch/x86/traps.c
> > +++ b/xen/arch/x86/traps.c
> > @@ -459,6 +459,10 @@ static void instruction_done(
> >      struct cpu_user_regs *regs, unsigned long eip, unsigned int
> > bpmatch) {
> >      regs->eip = eip;
> > +
> > +    if ( is_pvh_vcpu(current) )
> > +        return;
> 
> Can it be above the 'regs->eip = eip' ?

No it can't.

> > @@ -149,6 +149,8 @@ void getdomaininfo(struct domain *d, struct
> > xen_domctl_getdomaininfo *info) 
> >      if ( is_hvm_domain(d) )
> >          info->flags |= XEN_DOMINF_hvm_guest;
> > +    else if ( is_pvh_domain(d) )
> > +        info->flags |= XEN_DOMINF_pvh_guest;
> >  
> >      xsm_security_domaininfo(d, info);
> >  
> > @@ -400,6 +402,8 @@ long
> > do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl)
> > domcr_flags = 0; if ( op->u.createdomain.flags &
> > XEN_DOMCTL_CDF_hvm_guest ) domcr_flags |= DOMCRF_hvm;
> > +        else if ( op->u.createdomain.flags & XEN_DOMCTL_CDF_hap )
> > +            domcr_flags |= DOMCRF_pvh;     /* PV with HAP is a PVH
> > guest */
> 
> <scratches his head>
> 
> So if the user sets: 'hap' in their guest config we automatically
> set domcr_flags to DOMCRF_hvm | DOMCRF_pvh right?
> 

No. hap doesn't automatically result in setting of DOMCRF_hvm.

  reply	other threads:[~2013-04-05 22:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-16  0:48 [PATCH 12/18 V2]:PVH xen: support invalid op, return PVH features etc Mukesh Rathor
2013-03-18 12:27 ` Jan Beulich
2013-04-05 22:21   ` Mukesh Rathor
2013-03-18 17:48 ` Konrad Rzeszutek Wilk
2013-04-05 22:02   ` Mukesh Rathor [this message]
2013-03-21 16:05 ` Tim Deegan

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=20130405150239.4e8f716c@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).