From patchwork Thu Jul 4 15:13:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 256922 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 517E02C0087 for ; Fri, 5 Jul 2013 01:22:59 +1000 (EST) Received: from localhost ([::1]:33149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UulN3-0003ZO-9I for incoming@patchwork.ozlabs.org; Thu, 04 Jul 2013 11:22:57 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=PzPmwppp+rzLov4/CdYWoxIq1QLE3R9cjrVF5cPmIz8=; b=hn86jm/leSNa0Ni5gElTY52Mu4fcolPEecKwPDnncRsra7H0shvxrqtK6wzZ988uip 0yfwl3icp0Ec+Zj7rjwfjUSrbb7qACjrwk/KkY7zqleyHebFpGyfgtHg875XMdTBRDTL 7lu05qWMhhzERN8yhyP1VuT4aZwFSzWbj2Gigf3oZbS1s7j5z/cin49ESPQMxVUeJ2tQ mB9QSF9kJNTeX8YTQuuHdtn1ApuI1hxn7dRlzWJe9v99qd7k2B5AoNVINE0p8wY255wH XedD3f9ddc09dVuMQ5mky4pLEUy9egxVXLrYAAb0BkjM/2Q+yyeTCO+G8Qrxn0jdFJGI LlKg== X-Received: by 10.194.170.168 with SMTP id an8mr3767983wjc.72.1372950879275; Thu, 04 Jul 2013 08:14:39 -0700 (PDT) Received: from playground.station (net-37-117-148-210.cust.dsl.vodafone.it. [37.117.148.210]) by mx.google.com with ESMTPSA id d8sm4212546wiz.0.2013.07.04.08.14.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Jul 2013 08:14:38 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 4 Jul 2013 17:13:09 +0200 Message-Id: <1372950842-32422-14-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1372950842-32422-1-git-send-email-pbonzini@redhat.com> References: <1372950842-32422-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a Cc: Jan Kiszka Subject: [Qemu-devel] [PATCH 13/66] 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 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, };