From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UulF3-0008Nn-0I for qemu-devel@nongnu.org; Thu, 04 Jul 2013 11:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UulF2-0004wq-2y for qemu-devel@nongnu.org; Thu, 04 Jul 2013 11:14:40 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:60916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UulF1-0004wj-SJ for qemu-devel@nongnu.org; Thu, 04 Jul 2013 11:14:39 -0400 Received: by mail-wg0-f42.google.com with SMTP id z11so6536042wgg.3 for ; Thu, 04 Jul 2013 08:14:39 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 4 Jul 2013 17:13:09 +0200 Message-Id: <1372950842-32422-14-git-send-email-pbonzini@redhat.com> In-Reply-To: <1372950842-32422-1-git-send-email-pbonzini@redhat.com> References: <1372950842-32422-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 13/66] xen: Mark fixed platform I/O as unaligned List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka From: Jan Kiszka 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 Signed-off-by: Paolo Bonzini --- hw/xen/xen_platform.c | 4 ++++ 1 file changed, 4 insertions(+) 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.8.1.4