xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Paul Durrant <Paul.Durrant@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Andrew Cooper <Andrew.Cooper3@citrix.com>,
	Stefano Stabellini <Stefano.Stabellini@citrix.com>,
	Ian Jackson <Ian.Jackson@citrix.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"Keir (Xen.org)" <keir@xen.org>
Subject: Re: [PATCH 2/2] x86/hvm/viridian: Enable APIC assist enlightenment
Date: Wed, 16 Mar 2016 17:23:26 +0000	[thread overview]
Message-ID: <9778e6d31c454e09adda577a595b2bdf@AMSPEX02CL03.citrite.net> (raw)
In-Reply-To: <56E997A702000078000DD4BC@prv-mh.provo.novell.com>

> -----Original Message-----
> From: Jan Beulich [mailto:JBeulich@suse.com]
> Sent: 16 March 2016 16:28
> To: Paul Durrant
> Cc: Andrew Cooper; Ian Jackson; Stefano Stabellini; Wei Liu; xen-
> devel@lists.xenproject.org; Konrad Rzeszutek Wilk; Keir (Xen.org)
> Subject: RE: [Xen-devel] [PATCH 2/2] x86/hvm/viridian: Enable APIC assist
> enlightenment
> 
> >>> On 16.03.16 at 16:02, <Paul.Durrant@citrix.com> wrote:
> >> From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@oracle.com]
> >> Sent: 15 March 2016 23:18
> >> On Tue, Mar 15, 2016 at 04:14:16PM +0000, Paul Durrant wrote:
> >> > +        domain_crash(v->domain);
> >> > +
> >> > +    v->arch.hvm_vcpu.viridian.apic_assist.vector = vector;
> >> > +    *(uint32_t *)va |= 1u;
> >>
> >> Oh my. What does that do? Why not 0xBADF00D
> >> Is that prescriped in the spec?
> >
> > The LSB is the only bit that has defined functionality. The next 31 bits are
> > reserved and the rest of the page is undefined.
> >
> >>
> >> That looks quite unhealthy to do.
> >>
> >
> > Reading the spec. again I do see that the reserved bits are defined to be
> > zero, so it looks like I can use = rather than |=.
> 
> Wouldn't that put at risk forward compatibility?
> 

The spec just says "Reserved to Zero" so it's hard to know what the right thing to do is until further bits are defined.

  Paul

> Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-03-16 18:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15 16:14 [PATCH 0/2] x86/hvm/viridian: APIC assist Paul Durrant
2016-03-15 16:14 ` [PATCH 1/2] x86/hvm/viridian: keep APIC assist page mapped Paul Durrant
2016-03-15 23:20   ` Konrad Rzeszutek Wilk
2016-03-16 14:46     ` Paul Durrant
2016-03-15 16:14 ` [PATCH 2/2] x86/hvm/viridian: Enable APIC assist enlightenment Paul Durrant
2016-03-15 23:18   ` Konrad Rzeszutek Wilk
2016-03-16 15:02     ` Paul Durrant
2016-03-16 16:28       ` Jan Beulich
2016-03-16 17:23         ` Paul Durrant [this message]
2016-03-17  8:12           ` 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=9778e6d31c454e09adda577a595b2bdf@AMSPEX02CL03.citrite.net \
    --to=paul.durrant@citrix.com \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=Ian.Jackson@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=Stefano.Stabellini@citrix.com \
    --cc=keir@xen.org \
    --cc=wei.liu2@citrix.com \
    --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).