xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [RFC PATCH 5/8]: PVH: smp changes
Date: Tue, 21 Aug 2012 17:23:23 -0700	[thread overview]
Message-ID: <20120821172323.38aec925@mantra.us.oracle.com> (raw)
In-Reply-To: <1345196531.30865.139.camel@zakaz.uk.xensource.com>

On Fri, 17 Aug 2012 10:42:11 +0100
Ian Campbell <Ian.Campbell@citrix.com> wrote:

> > @@ -339,7 +343,20 @@ cpu_initialize_context(unsigned int cpu,
> > struct task_struct *idle) (unsigned long)xen_hypervisor_callback;
> >  		ctxt->failsafe_callback_eip = 
> >  					(unsigned
> > long)xen_failsafe_callback; -
> > +	} else {
> > +		ctxt->user_regs.ds = __KERNEL_DS;
> > +		ctxt->user_regs.es = 0;
> > +		ctxt->user_regs.gs = 0;
> 
> Not __KERNEL_DS for es too?

64bit, es ignored, right?

> Not sure about gs -- shouldn't that point to some per-cpu segment or
> something? Maybe that happens somewhere else? (in which case a
> comment?)

Gets set later. comment good idea.

> > +
> > +		ctxt->gdt_frames[0] = (unsigned long)gdt;
> > +		ctxt->gdt_ents = (unsigned long)(GDT_SIZE - 1);
> > +
> > +		/* Note: PVH is not supported on x86_32. */
> > +#ifdef __x86_64__
> 
> ITYM CONFIG_X86_64?

Yup.

  reply	other threads:[~2012-08-22  0:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16  1:04 [RFC PATCH 5/8]: PVH: smp changes Mukesh Rathor
2012-08-17  9:42 ` Ian Campbell
2012-08-22  0:23   ` Mukesh Rathor [this message]
2012-08-22  6:10     ` Ian Campbell

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=20120821172323.38aec925@mantra.us.oracle.com \
    --to=mukesh.rathor@oracle.com \
    --cc=Ian.Campbell@citrix.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).