From patchwork Thu Jul 4 15:13:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 256913 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 1D8AE2C007E for ; Fri, 5 Jul 2013 01:17:12 +1000 (EST) Received: from localhost ([::1]:45284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UulHR-0003GR-PV for incoming@patchwork.ozlabs.org; Thu, 04 Jul 2013 11:17:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UulF1-0008LH-Ff for qemu-devel@nongnu.org; Thu, 04 Jul 2013 11:14:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UulF0-0004w5-35 for qemu-devel@nongnu.org; Thu, 04 Jul 2013 11:14:39 -0400 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:52617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UulEz-0004v0-TE for qemu-devel@nongnu.org; Thu, 04 Jul 2013 11:14:38 -0400 Received: by mail-we0-f169.google.com with SMTP id n57so1234903wev.28 for ; Thu, 04 Jul 2013 08:14:37 -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=J0VGsXUzYLYVZDrvNstyDDywbRptzJlqTfKRHB+yDpc=; b=JlMsUCQ0D8VRFXbzKcFRVYY+DyGxNmBGh7q86WHBKAsE/8PbnMEpo+a0hL1X7UG+Zx FKK0yi3BYED7XZFjnqAQ8DMwjNwb4m4MEdN0VCUPvFn7tHBFAT2N7XsQqsMW1Wy4FSDJ /P30tMdJghPK8u4N8oFthomz9A5/gX410lRuMADw5ouvoSpyCBHFCLRgmpbFbrjomens PWIa5SUYKxhgLja6ObrZzrsoiglWP+/h5DY0g45PLhMjZEhKppgGTVQRTb7GE8KY5+// c25oVsrIfjBdk77gaprw3PMk2lEpchMZt11wrORUYbKVjPEn0u4EowTsvk8bOKoDcHpS 5K0w== X-Received: by 10.194.109.104 with SMTP id hr8mr3838549wjb.32.1372950877311; Thu, 04 Jul 2013 08:14:37 -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.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Jul 2013 08:14:36 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 4 Jul 2013 17:13:08 +0200 Message-Id: <1372950842-32422-13-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:c03::229 Cc: Jan Kiszka Subject: [Qemu-devel] [PATCH 12/66] vmware-vga: Accept unaligned I/O accesses 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/display/vmware_vga.c | 4 ++++ 1 file changed, 4 insertions(+) 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, }, };