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 9/16]: PVH xen: create PVH vmcs and initialization
Date: Tue, 15 Jan 2013 16:55:12 -0800 [thread overview]
Message-ID: <20130115165512.08b21ed2@mantra.us.oracle.com> (raw)
In-Reply-To: <50F4008702000078000B5416@nat28.tlf.novell.com>
On Mon, 14 Jan 2013 11:56:39 +0000
"Jan Beulich" <JBeulich@suse.com> wrote:
> >>> On 12.01.13 at 02:59, Mukesh Rathor <mukesh.rathor@oracle.com>
> >>> wrote:
> > --- a/xen/arch/x86/hvm/hvm.c Fri Jan 11 16:31:33 2013 -0800
> > +++ b/xen/arch/x86/hvm/hvm.c Fri Jan 11 16:32:36 2013 -0800
> > @@ -331,6 +331,9 @@ void hvm_do_resume(struct vcpu *v)
> > {
> > ioreq_t *p;
> >
> > + if ( is_pvh_vcpu(v) )
> > + return;
>
> Better avoid the call at the call site?
Done.
> > @@ -697,6 +697,246 @@ void vmx_vmcs_switch(struct vmcs_struct
> > spin_unlock(&vmx->vmcs_lock);
> > }
> >
> > +static noinline int pvh_construct_vmcs(struct vcpu *v)
> > +{
>
> This looks a lot like the "normal" HVM function - can't those be
> folded reasonably, to reduce redundancy?
>
> > @@ -1156,6 +1404,9 @@ void vmx_do_resume(struct vcpu *v)
> > hvm_asid_flush_vcpu(v);
> > }
> >
> > + if ( is_pvh_vcpu(v) )
> > + goto skip_inteLdbgr; /* PVH supports gdbsx and gdb
> > inside PVH */
>
> What do "inte", "L", and "dbgr" stand for here? Also, to me the
> comment doesn't really explain anything.
I understand the code is for some external intel debugger. I meant
intel_dbgr. PVH, btw, is supported at the moment by gdbsx and gdb
running inside the PVH guest. Anyways, got rid of the label:
if ( is_pvh_vcpu(v)
reset_stack_and_jump(vmx_asm_do_vmentry);
debug_state = v->domain->debugger_attached
......
thanks,
Mukesh
prev parent reply other threads:[~2013-01-16 0:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-12 1:59 [RFC PATCH 9/16]: PVH xen: create PVH vmcs and initialization Mukesh Rathor
2013-01-14 11:56 ` Jan Beulich
2013-01-16 0:55 ` Mukesh Rathor [this message]
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=20130115165512.08b21ed2@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).