From patchwork Sat Jun 22 06:07:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 253348 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B32EB2C03FE for ; Sat, 22 Jun 2013 16:11:16 +1000 (EST) Received: from localhost ([::1]:43634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqH2Y-0004cR-K9 for incoming@patchwork.ozlabs.org; Sat, 22 Jun 2013 02:11:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqGz9-0007YO-8w for qemu-devel@nongnu.org; Sat, 22 Jun 2013 02:07:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqGz8-0004uD-9x for qemu-devel@nongnu.org; Sat, 22 Jun 2013 02:07:43 -0400 Received: from mout.web.de ([212.227.17.12]:61510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqGz7-0004tz-Ju for qemu-devel@nongnu.org; Sat, 22 Jun 2013 02:07:42 -0400 Received: from localhost.localdomain ([95.157.58.223]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0LcxtU-1UPyih11RQ-00iCHP; Sat, 22 Jun 2013 08:07:23 +0200 From: Jan Kiszka To: qemu-devel Date: Sat, 22 Jun 2013 08:07:03 +0200 Message-Id: X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: X-Provags-ID: V03:K0:zR4eBVj03g7a0EP5q950TSznRkj+cVzFpr5Pg1DbxYk2qnCRxr/ 0hn1TXc0Xmlvb/HqsHXC35SSMYrDdRI5Sonxdy3ZTq3j50Z0aptmrNhBfy42vfJ8QjgysNz YJrlHBivgGZuK1bdNJCVhJ74O6C1lBa95R8rFt38GxFdhm/tcG9dVHa2aSxgMUNKWCi2yBy VBDSCmUJj4dzG8EcnS/dA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.12 Cc: Paolo Bonzini , Liu Ping Fan , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Jan Kiszka Subject: [Qemu-devel] [PATCH v3 10/14] xen: Mark fixed platform I/O as unaligned X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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, };