From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 8/18 V2]: PVH xen: domain creation code changes
Date: Mon, 25 Mar 2013 18:29:03 -0700 [thread overview]
Message-ID: <20130325182903.18e6af3e@mantra.us.oracle.com> (raw)
In-Reply-To: <51470F4702000078000C652D@nat28.tlf.novell.com>
On Mon, 18 Mar 2013 11:57:43 +0000
"Jan Beulich" <JBeulich@suse.com> wrote:
> >>> On 16.03.13 at 01:36, Mukesh Rathor <mukesh.rathor@oracle.com>
> >>> wrote:
> > --- a/xen/include/asm-x86/system.h
> > +++ b/xen/include/asm-x86/system.h
> > @@ -4,9 +4,15 @@
> > #include <xen/lib.h>
> > #include <asm/bitops.h>
> >
> > +/* We need vcpu because during context switch, going from pure PV
> > to PVH,
> > + * in save_segments(), current has been updated to next, and no
> > longer pointing
> > + * to the pure PV. Note: for PVH, we update regs->selectors on
> > each vmexit */ #define read_segment_register(vcpu, regs,
> > name) \ ({ u16
> > __sel; \
> > - asm volatile ( "movw %%" STR(name) ",%0" : "=r" (__sel) ); \
> > + if (is_pvh_vcpu(vcpu))
> > \
> > + __sel = regs->name; \
> > + else \
> > + asm volatile ( "movw %%" STR(name) ",%0" :
> > "=r" (__sel) ); \
> > __sel; \ })
>
> In a generic macro like this, please make sure you evaluate each
> argument exactly once, and you properly parenthesize all uses of
> macro arguments.
Hmm... at a loss. The only think I'm able to come up with here is
paranthesis around regs, and spaces in the if statement. Both vcpu and
regs are used only once.
next prev parent reply other threads:[~2013-03-26 1:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 0:36 [PATCH 8/18 V2]: PVH xen: domain creation code changes Mukesh Rathor
2013-03-18 11:57 ` Jan Beulich
2013-03-21 16:16 ` Tim Deegan
2013-03-26 1:29 ` Mukesh Rathor [this message]
2013-03-26 7:39 ` Jan Beulich
2013-03-26 21:04 ` Mukesh Rathor
2013-03-27 7:30 ` Jan Beulich
2013-03-18 15:54 ` Konrad Rzeszutek Wilk
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=20130325182903.18e6af3e@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).