From nobody Tue Feb 10 06:24:59 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1559583116; cv=none; d=zoho.com; s=zohoarc; b=P2GOhIRXO0IXpWn6lP3FkEuflkUJ3ejo8Ga3kgrXiyF+3GTqv7uby0n3st4uyhOkMPTDatoAAVGcUchVzwTXHmzY6FwLSghHd55sZnLvn7oamCgJBiQorJJAATPzUEx3Uwmf5/foDYMc28Uij1hEwpdbkJJZL/BRzBy7dAdFteo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559583116; 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=eVwMFZ+KWBK7cXllizTF1Ac4hocoCZRu5KoL6VrLxIY=; b=Ub+5kSyH33JbMvnFqw8QNVlw6DKbOgsgHbCVvqJ+SGOer04Ht+X5d42NOEvDS0NEK0gnlLSMT+sBvCDA45husRjiEl5ekoNdeobKIlp+u8ck/3V/H5VuTRnL4cBPhck/2pGnkXhg5Cy5EzTfJ9vlGX8DUkzrwVzTacSPjv5jb9U= 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 1559583116219227.88082920380157; Mon, 3 Jun 2019 10:31:56 -0700 (PDT) Received: from localhost ([127.0.0.1]:38556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXqoJ-0006sZ-22 for importer@patchew.org; Mon, 03 Jun 2019 13:31:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXqUV-0007Vj-6T for qemu-devel@nongnu.org; Mon, 03 Jun 2019 13:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXqUU-0004dg-0p for qemu-devel@nongnu.org; Mon, 03 Jun 2019 13:11:23 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:35497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXqUQ-0003rY-91 for qemu-devel@nongnu.org; Mon, 03 Jun 2019 13:11:20 -0400 Received: by mail-wm1-x341.google.com with SMTP id c6so8963890wml.0 for ; Mon, 03 Jun 2019 10:10:53 -0700 (PDT) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id r131sm3325045wmf.4.2019.06.03.10.10.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 10:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=eVwMFZ+KWBK7cXllizTF1Ac4hocoCZRu5KoL6VrLxIY=; b=czZ7N9K412S+tYUzSeq0tihlWPMfLRhw4kcNsjd4OMM06MFBw09rXuvOAFJw1XTFIy jq5GTDjVobTiN79g0AVaLituZ60V0TLZC8SxqtT5SJJ5xtCN8t1IlMX9PWnp4LjfbQzc LCboTW6o1md9ltJTq64WE78Qi/V8EL58NIAKipetuSxteJt9UgHZuzKE+PdoSs1XMc6v KqSl/GB2n6wPl+Hih70ZMgn0JcsXDaVVWd2ATfaM1TSRyvrW6IidGM8+medwFx/0S8Pm bhDkbuKaPg5fb2DLvULdv1loug0s12/W7AoBP9KjkTdMsFxl5QKfOnNifcSCFrbIlSWO p15g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=eVwMFZ+KWBK7cXllizTF1Ac4hocoCZRu5KoL6VrLxIY=; b=n0cW/dHdspaYZiasGVUk0VCxOApNfvec1hwCqEkDhebbofHIv2b3Rge2Skv03Qobvu 00d7nmr1Wv/XtcXWUNPe9OvNrnTQdYm+0d127HZeRdB4Rv3efzCQ6KK6hgzgy/DSfhnO Juxyw24McVhZdWq0Qcu7AWmauRxck1TctRaz7DQtSluh8+9Ugk5AwlYWulSNC2rXRPLM RDaB9ELixznXMZ1SI/taBbttPRK99m+7zsV4ULi4errMmo6kZUT5ukCiE5oWb9bbVqBf gR+c2anvdTIH7Qew5MxxIx9hEL8Y+4i2s99zen7XLbYcrsbNcQY1ziFWI2oHrcnw2Fp9 0Y1w== X-Gm-Message-State: APjAAAWN6EFlydFFZm9qRnPFlLchkM0cXw0Yjz3fdvXciAPN7owWt6uf C29RSt1z1/6GwqknuLbd42rnzNGp X-Google-Smtp-Source: APXvYqxmDEZBu22I9MgJWfCEM6yTIN70ysy5Z0tfpDZAXENTKxLQYi8Shhod3UfHbtmDpkWvfBkcMA== X-Received: by 2002:a05:600c:2182:: with SMTP id e2mr10999857wme.55.1559581852547; Mon, 03 Jun 2019 10:10:52 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 3 Jun 2019 19:10:25 +0200 Message-Id: <1559581843-3968-7-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1559581843-3968-1-git-send-email-pbonzini@redhat.com> References: <1559581843-3968-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PULL 06/24] edu: mmio: allow 64-bit access 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 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" From: Li Qiang The edu spec says the MMIO area can be accessed by 64-bit. However currently the 'max_access_size' is not so the MMIO access dispatch can only access 32-bit one time. This patch fixes this to respect the spec. Signed-off-by: Li Qiang Reviewed-by: Philippe Mathieu-Daude Message-Id: <20190510164349.81507-2-liq3ea@163.com> Signed-off-by: Paolo Bonzini --- hw/misc/edu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/misc/edu.c b/hw/misc/edu.c index 91af452..65fc32b 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 1.8.3.1