From: Feng Wu Subject: [RFC v2 04/15] vmx: Extend struct pi_desc to support VT-d Posted-Interrupts Date: Fri, 8 May 2015 17:07:07 +0800 Message-ID: <1431076038-7497-5-git-send-email-feng.wu@intel.com> References: <1431076038-7497-1-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1431076038-7497-1-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: xen-devel@lists.xen.org Cc: kevin.tian@intel.com, keir@xen.org, george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com, jbeulich@suse.com, yang.z.zhang@intel.com, Feng Wu List-Id: xen-devel@lists.xenproject.org Extend struct pi_desc according to VT-d Posted-Interrupts Spec. Signed-off-by: Feng Wu --- 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 6fce6aa..3707d1c 100644 --- a/xen/include/asm-x86/hvm/vmx/vmcs.h +++ b/xen/include/asm-x86/hvm/vmx/vmcs.h @@ -76,8 +76,19 @@ struct vmx_domain { struct pi_desc { DECLARE_BITMAP(pir, NR_VECTORS); - u32 control; - u32 rsvd[7]; + union { + struct + { + u64 on : 1, /* bit 256 - Outstanding Notification */ + sn : 1, /* bit 257 - Suppress Notification */ + rsvd_1 : 14, /* bit 271:258 - Reserved */ + nv : 8, /* bit 279:272 - Notification Vector */ + rsvd_2 : 8, /* bit 287:280 - Reserved */ + ndst : 32; /* bit 319:288 - Notification Destination */ + }; + u64 control; + }; + u32 rsvd[6]; } __attribute__ ((aligned (64))); #define ept_get_wl(ept) ((ept)->ept_wl) -- 2.1.0