From nobody Tue Feb 10 17:08:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=163.com ARC-Seal: i=1; a=rsa-sha256; t=1555772208; cv=none; d=zoho.com; s=zohoarc; b=oTAFN+7e0+F0R7XkVQchLFU3X8Kiv3gG1PoHFWsZsCOWYSA5jYyodzcVr5SMeqIUpQkkF7s6UilLduAs7Yof2wKtwb5BVsB1eb95sdEWEHPTiB629h6ZpG/06+/vM3mT4hmWGIDn3Ow7iVGnaJqTObOdDGolDDoKo+ooKeY0MZ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555772208; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=iRFD+zpf5l7TX1uoBr2sBdhb6Xv5dDZq2CEa09rVSBg=; b=YFJwL1vayudTWjlw0fxuhKGFgDPgdUmslrJ5v9NT87SyU9VVP87Yrd0r3LnpggsE8Ta0ZX2/GG+VoH368K22hEElqHMELNVXXJkdxXC1ByrXk2eoKBGF4ctGIkBquQnIxD9/tlINjHad5h1zC8OnoDGafWev40fxbFRM+9qZ2tU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1555772208491581.2812098993219; Sat, 20 Apr 2019 07:56:48 -0700 (PDT) Received: from localhost ([127.0.0.1]:42200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHrPM-0003Cz-1x for importer@patchew.org; Sat, 20 Apr 2019 10:56:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHrNj-000254-IU for qemu-devel@nongnu.org; Sat, 20 Apr 2019 10:54:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHrL5-00019K-V0 for qemu-devel@nongnu.org; Sat, 20 Apr 2019 10:51:36 -0400 Received: from m12-13.163.com ([220.181.12.13]:58198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHrL5-00015r-AN for qemu-devel@nongnu.org; Sat, 20 Apr 2019 10:51:35 -0400 Received: from localhost.localdomain (unknown [183.159.69.175]) by smtp9 (Coremail) with SMTP id DcCowABXKKbvMbtc5Pi_Ag--.9861S3; Sat, 20 Apr 2019 22:51:29 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=iRFD+zpf5l7TX1uoBr 2sBdhb6Xv5dDZq2CEa09rVSBg=; b=Yug5j48Kud/PNejOT9DYHAUVTrdjhp8Tiz 6+s+L/qNUJPFrDdUIyv0IfpcW85bWQwI+lq08XM+ALeG9dwi4c96TpFibpMi5xkt za2Dq6c6wyfHQZgYcgC6PT3qJ0AhyNE/qEIcHV1CeVJ86cTdscmkwci12bnORr5m hAnSlX6Rk= From: Li Qiang To: jslaby@suse.cz, pbonzini@redhat.com Date: Sat, 20 Apr 2019 07:51:18 -0700 Message-Id: <20190420145120.122847-2-liq3ea@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190420145120.122847-1-liq3ea@163.com> References: <20190420145120.122847-1-liq3ea@163.com> X-CM-TRANSID: DcCowABXKKbvMbtc5Pi_Ag--.9861S3 X-Coremail-Antispam: 1Uf129KBjvdXoWruFyfZF15Wr4kKr43AF18Zrb_yoW3tFX_Xw 1xKFZ7GrW5XFyayF90q3W5uryxW3yrAF1rCrs3Gr43Ja4fGr98Z3s2qrnxXr47Gw47Kwn5 AaykZFy5trnFgjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjsqXJUUUUU== X-Originating-IP: [183.159.69.175] X-CM-SenderInfo: 5oltjvrd6rljoofrz/1tbiKRGcbVXlqu9vFQAAsG X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.12.13 Subject: [Qemu-devel] [PATCH 1/3] edu: mmio: set 'max_access_size' to 8 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Li Qiang , liq3ea@gmail.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The edu spec said, the MMIO area can be accessed by 8 bytes. However currently the 'max_access_size' is not so the MMIO access dispatch can only access 4 bytes one time. This patch fixes this to respect the spec. Notice: here the 'min_access_size' is not a must, I set this for completement. Signed-off-by: Li Qiang --- hw/misc/edu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/misc/edu.c b/hw/misc/edu.c index 91af452c9e..65fc32b928 100644 --- a/hw/misc/edu.c +++ b/hw/misc/edu.c @@ -289,6 +289,15 @@ static const MemoryRegionOps edu_mmio_ops =3D { .read =3D edu_mmio_read, .write =3D edu_mmio_write, .endianness =3D DEVICE_NATIVE_ENDIAN, + .valid =3D { + .min_access_size =3D 4, + .max_access_size =3D 8, + }, + .impl =3D { + .min_access_size =3D 4, + .max_access_size =3D 8, + }, + }; =20 /* --=20 2.17.1