From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, keir.xen@gmail.com, tim@xen.org
Subject: Re: RFC: PVH set vcpu info context in vmcs....
Date: Mon, 19 Aug 2013 14:46:55 -0700 [thread overview]
Message-ID: <20130819144655.130e1dff@mantra.us.oracle.com> (raw)
In-Reply-To: <5211F4C902000078000A0810@nat28.tlf.novell.com>
On Mon, 19 Aug 2013 10:34:49 +0100
"Jan Beulich" <jbeulich@suse.com> wrote:
> >>> Mukesh Rathor <mukesh.rathor@oracle.com> 08/17/13 3:37 AM >>>
> >/*
> >* Set vmcs fields during boot of a vcpu. Called from
> >arch_set_info_guest. *
> >* Boot vcpu call is from tools via:
> >* do_domctl -> XEN_DOMCTL_setvcpucontext -> arch_set_info_guest
> >*
> >* Secondary vcpu's are brought up by the guest itself via:
> >* do_vcpu_op -> VCPUOP_initialise -> arch_set_info_guest
> >* (In case of linux, the call comes from
> >cpu_initialize_context()).
>
> So here you describe clearly that the function is to be called for
> each vCPU exactly once. No vCPU == 0 special casing needed (also not
> in the caller, as I understood you moved the check there - if not,
> all is fine).
No more check for vcpu==0 needed now.
> >int vmx_pvh_vcpu_boot_set_info(struct vcpu *v,
> >struct vcpu_guest_context *ctxtp)
> >{
> >if ( ctxtp->ldt_base || ctxtp->ldt_ents ||
> >ctxtp->user_regs.cs || ctxtp->user_regs.ss || ctxtp->user_regs.es ||
> >ctxtp->user_regs.ds || ctxtp->user_regs.fs || ctxtp->user_regs.gs ||
> >ctxtp->gdt.pvh.addr || ctxtp->gdt.pvh.limit ||
> >ctxtp->fs_base || ctxtp->gs_base_user )
> >return -EINVAL;
>
> I assume there's be a place where these restrictions are both
> documented and rationalized; otherwise this looks pretty arbitrary.
Yes, I'll document the API.
thanks
mukesh
prev parent reply other threads:[~2013-08-19 21:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 1:45 RFC: PVH set vcpu info context in vmcs Mukesh Rathor
2013-08-13 9:16 ` Tim Deegan
2013-08-13 12:10 ` Jan Beulich
2013-08-13 10:56 ` Jan Beulich
2013-08-14 2:12 ` Mukesh Rathor
2013-08-14 9:12 ` Jan Beulich
2013-08-14 9:57 ` George Dunlap
2013-08-15 0:25 ` Mukesh Rathor
2013-08-15 1:58 ` Mukesh Rathor
2013-08-15 6:34 ` Jan Beulich
2013-08-15 6:31 ` Jan Beulich
2013-08-16 2:26 ` Mukesh Rathor
2013-08-16 7:28 ` Jan Beulich
2013-08-16 22:28 ` Mukesh Rathor
2013-08-17 1:37 ` Mukesh Rathor
2013-08-17 10:22 ` Tim Deegan
2013-08-19 21:45 ` Mukesh Rathor
2013-08-19 9:34 ` Jan Beulich
2013-08-19 21:46 ` 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=20130819144655.130e1dff@mantra.us.oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=jbeulich@suse.com \
--cc=keir.xen@gmail.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).