Skip to contentSkip to conversation

x86/hvm: increase struct hvm_vcpu_io's mmio_large_read[]

PATCH In review Jan Beulich 2 participants 2 messages Jun 27, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/hvm: increase struct hvm_vcpu_io's mmio_large_read[]

Since the emulator now supports a few 256-bit memory operations, this array needs to follow (and the comments should, too).

To limit growth, re-order the mmio_large_write_* fields so that the two mmio_large_*_bytes fields end up adjacent to each other.

xen/include/asm-x86/hvm/vcpu.h +4 -4
@@ -59,13 +59,13 @@ struct hvm_vcpu_io {
     unsigned long       mmio_gva;
     unsigned long       mmio_gpfn;
 
-    /* We may read up to m128 as a number of device-model transactions. */
+    /* We may read up to m256 as a number of device-model transactions. */
     paddr_t mmio_large_read_pa;
-    uint8_t mmio_large_read[16];
+    uint8_t mmio_large_read[32];
     unsigned int mmio_large_read_bytes;
-    /* We may write up to m128 as a number of device-model transactions. */
-    paddr_t mmio_large_write_pa;
+    /* We may write up to m256 as a number of device-model transactions. */
     unsigned int mmio_large_write_bytes;
+    paddr_t mmio_large_write_pa;
 };
 
 #define VMCX_EADDR    (~0ULL)

x86/hvm: increase struct hvm_vcpu_io's mmio_large_read[]

Since the emulator now supports a few 256-bit memory operations, this array needs to follow (and the comments should, too).

To limit growth, re-order the mmio_large_write_* fields so that the two mmio_large_*_bytes fields end up adjacent to each other.

xen/include/asm-x86/hvm/vcpu.h +4 -4
@@ -59,13 +59,13 @@ struct hvm_vcpu_io {
     unsigned long       mmio_gva;
     unsigned long       mmio_gpfn;
 
-    /* We may read up to m128 as a number of device-model transactions. */
+    /* We may read up to m256 as a number of device-model transactions. */
     paddr_t mmio_large_read_pa;
-    uint8_t mmio_large_read[16];
+    uint8_t mmio_large_read[32];
     unsigned int mmio_large_read_bytes;
-    /* We may write up to m128 as a number of device-model transactions. */
-    paddr_t mmio_large_write_pa;
+    /* We may write up to m256 as a number of device-model transactions. */
     unsigned int mmio_large_write_bytes;
+    paddr_t mmio_large_write_pa;
 };
 
 #define VMCX_EADDR    (~0ULL)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Beulich

Since the emulator now supports a few 256-bit memory operations, this array needs to follow (and the comments should, too).

To limit growth, re-order the mmio_large_write_* fields so that the two mmio_large_*_bytes fields end up adjacent to each other.

Quoted 27 lines
xen/include/asm-x86/hvm/vcpu.h +4 -4
@@ -59,13 +59,13 @@ struct hvm_vcpu_io {
     unsigned long       mmio_gva;
     unsigned long       mmio_gpfn;
 
-    /* We may read up to m128 as a number of device-model transactions. */
+    /* We may read up to m256 as a number of device-model transactions. */
     paddr_t mmio_large_read_pa;
-    uint8_t mmio_large_read[16];
+    uint8_t mmio_large_read[32];
     unsigned int mmio_large_read_bytes;
-    /* We may write up to m128 as a number of device-model transactions. */
-    paddr_t mmio_large_write_pa;
+    /* We may write up to m256 as a number of device-model transactions. */
     unsigned int mmio_large_write_bytes;
+    paddr_t mmio_large_write_pa;
 };
 
 #define VMCX_EADDR    (~0ULL)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel