xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
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 1/15]: PVH xen: turn gdb_frames/gdt_ents into union
Date: Mon, 14 Jan 2013 16:45:14 -0800	[thread overview]
Message-ID: <20130114164514.4a11db43@mantra.us.oracle.com> (raw)
In-Reply-To: <50F3F7AF02000078000B53DB@nat28.tlf.novell.com>

On Mon, 14 Jan 2013 11:18:55 +0000
"Jan Beulich" <JBeulich@suse.com> wrote:

> >>> On 12.01.13 at 02:25, Mukesh Rathor <mukesh.rathor@oracle.com>
> >>> wrote:
> > --- a/xen/include/public/arch-x86/xen.h	Tue Oct 30 18:12:11
> > 2012 +0000 +++ b/xen/include/public/arch-x86/xen.h	Fri Jan
> > 11 16:19:40 2013 -0800 @@ -157,7 +157,16 @@ struct
> > vcpu_guest_context { struct cpu_user_regs user_regs;         /*
> > User-level CPU registers     */ struct trap_info
> > trap_ctxt[256];        /* Virtual IDT                  */ unsigned
> > long ldt_base, ldt_ents;       /* LDT (linear address, # ents) */
> > -    unsigned long gdt_frames[16], gdt_ents; /* GDT (machine
> > frames, # ents) */
> > +    union {
> > +        struct {
> > +            /* GDT (machine frames, # ents) */
> > +            unsigned long gdt_frames[16], gdt_ents;
> > +        } pv;
> > +        struct {
> > +            /* PVH: GDTR addr and size */   
> > +            unsigned long gdtaddr, gdtsz;
> > +        } pvh;
> > +    } u;
> 
> This, being a public header, needs a __XEN_INTERFACE_VERSION__
> guard so that consumers updating the header (without updating
> their interface version) would still build.

Done. Thanks.

+#if __XEN_INTERFACE_VERSION__ < 0x00040300
+    unsigned long gdt_frames[16], gdt_ents; /* GDT (machine frames, # ents) */
+#else
     union {
         struct {
             /* GDT (machine frames, # ents) */
@@ -167,6 +170,7 @@ struct vcpu_guest_context {
             unsigned long gdtaddr, gdtsz;
         } pvh;
     } u;
+#endif

  reply	other threads:[~2013-01-15  0:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-12  1:25 [RFC PATCH 1/15]: PVH xen: turn gdb_frames/gdt_ents into union Mukesh Rathor
2013-01-14 11:18 ` Jan Beulich
2013-01-15  0:45   ` Mukesh Rathor [this message]
2013-01-24 14:29 ` Tim Deegan
2013-01-24 15:37   ` Jan Beulich
2013-01-24 15:45     ` Tim Deegan
2013-01-24 15:54       ` Jan Beulich
2013-01-24 16:18         ` Tim Deegan
2013-01-25  2:04   ` Mukesh Rathor
2013-01-25  9:38     ` Tim Deegan
2013-01-25 10:23       ` Jan Beulich

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=20130114164514.4a11db43@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).