From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH v5 05/17] vmx: Extend struct pi_desc to support VT-d Posted-Interrupts Date: Wed, 12 Aug 2015 11:45:05 -0400 Message-ID: <20150812154505.GE17650@l.oracle.com> References: <1439346938-31824-1-git-send-email-feng.wu@intel.com> <1439346938-31824-6-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1439346938-31824-6-git-send-email-feng.wu@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Feng Wu Cc: Andrew Cooper , Kevin Tian , Keir Fraser , Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Aug 12, 2015 at 10:35:26AM +0800, Feng Wu wrote: > Extend struct pi_desc according to VT-d Posted-Interrupts Spec. > > CC: Kevin Tian > CC: Keir Fraser > CC: Jan Beulich > CC: Andrew Cooper > Signed-off-by: Feng Wu > Reviewed-by: Andrew Cooper > Acked-by: Kevin Tian Reviewed-by: Konrad Rzeszutek Wilk > --- > v3: > - Use u32 instead of u64 for the bitfield in 'struct pi_desc' > > xen/include/asm-x86/hvm/vmx/vmcs.h | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/xen/include/asm-x86/hvm/vmx/vmcs.h b/xen/include/asm-x86/hvm/vmx/vmcs.h > index f1126d4..7e81752 100644 > --- a/xen/include/asm-x86/hvm/vmx/vmcs.h > +++ b/xen/include/asm-x86/hvm/vmx/vmcs.h > @@ -80,8 +80,19 @@ struct vmx_domain { > > struct pi_desc { > DECLARE_BITMAP(pir, NR_VECTORS); > - u32 control; > - u32 rsvd[7]; > + union { > + struct > + { > + u16 on : 1, /* bit 256 - Outstanding Notification */ > + sn : 1, /* bit 257 - Suppress Notification */ > + rsvd_1 : 14; /* bit 271:258 - Reserved */ > + u8 nv; /* bit 279:272 - Notification Vector */ > + u8 rsvd_2; /* bit 287:280 - Reserved */ > + u32 ndst; /* bit 319:288 - Notification Destination */ > + }; > + u64 control; > + }; > + u32 rsvd[6]; > } __attribute__ ((aligned (64))); > > #define ept_get_wl(ept) ((ept)->ept_wl) > -- > 2.1.0 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel