From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq4PK-0001oT-69 for qemu-devel@nongnu.org; Fri, 21 Jun 2013 12:41:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq4PI-0006wU-9m for qemu-devel@nongnu.org; Fri, 21 Jun 2013 12:41:54 -0400 Received: from david.siemens.de ([192.35.17.14]:34170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq4PI-0006v3-1P for qemu-devel@nongnu.org; Fri, 21 Jun 2013 12:41:52 -0400 From: Jan Kiszka Date: Fri, 21 Jun 2013 18:41:42 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH v2 10/13] xen: Mark fixed platform I/O as unaligned List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Paolo Bonzini , Liu Ping Fan , =?UTF-8?q?Andreas=20F=C3=A4rber?= 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 --- hw/xen/xen_platform.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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, }; -- 1.7.3.4