Patchwork [v2,10/13] xen: Mark fixed platform I/O as unaligned

login
register
mail settings
Submitter Jan Kiszka
Date June 21, 2013, 4:41 p.m.
Message ID <fda2600b706e9390237d363a9224c7dba86ca7be.1371832904.git.jan.kiszka@siemens.com>
Download mbox | patch
Permalink /patch/253270/
State New
Headers show

Comments

Jan Kiszka - June 21, 2013, 4:41 p.m.
Before switching to the memory core dispatcher, we need to make sure
that this pv-device will continue to receive unaligned portio accesses.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 hw/xen/xen_platform.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/xen/xen_platform.c b/hw/xen/xen_platform.c
index b6c6793..f8f5dd5 100644
--- a/hw/xen/xen_platform.c
+++ b/hw/xen/xen_platform.c
@@ -262,9 +262,13 @@  static void platform_fixed_ioport_write(void *opaque, hwaddr addr,
 static const MemoryRegionOps platform_fixed_io_ops = {
     .read = platform_fixed_ioport_read,
     .write = platform_fixed_ioport_write,
+    .valid = {
+        .unaligned = true,
+    },
     .impl = {
         .min_access_size = 1,
         .max_access_size = 4,
+        .unaligned = true,
     },
     .endianness = DEVICE_LITTLE_ENDIAN,
 };