| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Re: [Xen-devel] [RFC v3 2/6] xen/arm: Add save/restore support for	ARM GIC V2
 
To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxFrom: Wei Huang <w1.huang@xxxxxxxxxxx>Date: Tue, 13 May 2014 09:53:28 -0500Cc: keir@xxxxxxx, ian.campbell@xxxxxxxxxx, stefano.stabellini@xxxxxxxxxxxxx,	ian.jackson@xxxxxxxxxxxxx, julien.grall@xxxxxxxxxx, tim@xxxxxxx,	jaeyong.yoo@xxxxxxxxxxx, jbeulich@xxxxxxxx, yjhyun.yoo@xxxxxxxxxxxDelivery-date: Tue, 13 May 2014 14:56:56 +0000List-id: Xen developer discussion <xen-devel.lists.xen.org> 
 I will add a padding field to make all structures 64-bit aligned. Let me 
know if this isn't what you want.
+
+/* Info for hypervisor to manage guests (per-vcpu)
+ *   - Based on GICv2
+ *   - Mainly store registers of GICH_*
+ */
+struct hvm_arm_gich_v2
+{
+    uint32_t gic_hcr;
+    uint32_t gic_vmcr;
+    uint32_t gic_apr;
+    uint32_t gic_lr[64];
+    uint64_t event_mask;
+    uint64_t lr_mask;
 
This has an odd number of uint32_t.  I suspect it will end up with a
different structure size between a 32 and 64 bit build of Xen.
 
-Wei
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
 
 |