Patchwork [RFC,12/15] vmware-vga: Accept unaligned I/O accesses

login
register
mail settings
Submitter Jan Kiszka
Date May 6, 2013, 2:26 p.m.
Message ID <2a270b2aed38f019865f66dfa902f31cf7f36276.1367849167.git.jan.kiszka@siemens.com>
Download mbox | patch
Permalink /patch/241738/
State New
Headers show

Comments

Jan Kiszka - May 6, 2013, 2:26 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/display/vmware_vga.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
index fd3569d..ec41681 100644
--- a/hw/display/vmware_vga.c
+++ b/hw/display/vmware_vga.c
@@ -1241,6 +1241,10 @@  static const MemoryRegionOps vmsvga_io_ops = {
     .valid = {
         .min_access_size = 4,
         .max_access_size = 4,
+        .unaligned = true,
+    },
+    .impl = {
+        .unaligned = true,
     },
 };