From nobody Wed Nov 19 04:36:58 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1614314108; cv=none; d=zohomail.com; s=zohoarc; b=dap2hdnK8USx6ZRm6ncCOR2K6nlZ/0p0SOHrfzboLuBs1sH2kb6TB0YbUt/2L47wlIBWaGQ+Tr8bllCHxrvqunQUKd4oCDTJRt7xYfCdXiyqf8lLBIuUBnk4oJWp/xXLU4nLQIr5rleiP5/lvG6aVpONoD3caUqu6OPumCiFo24= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614314108; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kynR1KaxSdL4O3pE8DSX9s2z2JfYuiF0JlHhgBFbn2I=; b=mRlV9ey3uRZu9r2mrtdu13QiTFWyLj50+rlHv8kBX/PXx+Oi+Pew5xBV9wmkky77EKVpncRhkF/zZUwvDnVAdJvgzfIpJaOSZWd9Olpfsp2CTRHMqihWkuIgTlTwLKRYpMER1xakWn4YvpWVJVOnfQae803F95h2nQSIkBP7umU= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1614314108515221.86726461097658; Thu, 25 Feb 2021 20:35:08 -0800 (PST) Received: from localhost ([::1]:53142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFUqJ-0007aL-Gq for importer@patchew.org; Thu, 25 Feb 2021 23:35:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFUDq-0005t7-Cp; Thu, 25 Feb 2021 22:55:22 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:38659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFUDo-0001ME-Rh; Thu, 25 Feb 2021 22:55:22 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8612F5C00D3; Thu, 25 Feb 2021 22:55:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 25 Feb 2021 22:55:19 -0500 Received: from localhost.localdomain (119-18-31-135.77121f.mel.static.aussiebb.net [119.18.31.135]) by mail.messagingengine.com (Postfix) with ESMTPA id 58834108005F; Thu, 25 Feb 2021 22:55:17 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kivikakk.ee; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=kynR1KaxSdL4O 3pE8DSX9s2z2JfYuiF0JlHhgBFbn2I=; b=ZLJ1fEb5XO+9dL+k81jVV8nUxMBsK dUwPt6R67Os0UY2JYn3uaBegzm3Ij01Q25ZRLpvILMe6j6H6dB7kMsQ09kokSZ7Z FDtPoydGbaOi3lTJocwkSmbt0KSoYexfhb0j/w9nDa0gfQb7YPBudECk1Fw5HIZi jxfJnGxEDfm9MqSCX28+SFx4ae2ozgc3e5Y06uQp42D6AxEdcXNlCjYQhYUyOrlH toygi2AJXMsZlBe+jlymjkGyucSXxX39/1KY0Ei49KlUy5jbZFdk3caqSG15gWF/ tLG+7zWoJQEC5I3a/HgnyC+dgysgOuizePqUyoHllXEnSlk7yMK2ps6dw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=kynR1KaxSdL4O3pE8DSX9s2z2JfYuiF0JlHhgBFbn2I=; b=DQF95pLt Xaull7SNf/ntbcysUsE1S74jwcQL1gpZGdKE6M96+IdG6s+y9h3NcL4fYWt5XgRw XlrB7u+W6y5MpBMjgcyr4PKTfiFkYva7SiybyF2UfYKT/MpCE9ugVKwNK5AeG6PD 2rtFsWioEn9BCZsoCxDh361xmD58TV5w/HjucwqIzQpG5BZubyoY3N3HqoRNqsmj I9iaFeZRMfblbMDKbyuly7WYO69yZIMFQ/mk6SAQkVB3a8vEa0RLZ7yh0uYwJj1O VwKPP+xR62USi+S2+d6ypVe2Y5K0aqnH1kM/Tj0zaTDrJySp6TWMdp+OZxwGgHhF ls4F7hja4lzeOg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrledtgdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomheptehshhgvrhgr hhcuvehonhhnohhruceorghshhgvsehkihhvihhkrghkkhdrvggvqeenucggtffrrghtth gvrhhnpeduffekffefveetfeefjeegudeghffgteeiteeltddtkedvgeffudeifeegkeet feenucfkphepudduledrudekrdefuddrudefheenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpegrshhhvgeskhhivhhikhgrkhhkrdgvvg X-ME-Proxy: From: Asherah Connor To: qemu-devel@nongnu.org Subject: [PATCH v2 2/2] hw/riscv: allow ramfb on virt Date: Fri, 26 Feb 2021 14:54:47 +1100 Message-Id: <20210226035447.1252-3-ashe@kivikakk.ee> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20210226035447.1252-1-ashe@kivikakk.ee> References: <20210226035447.1252-1-ashe@kivikakk.ee> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=66.111.4.29; envelope-from=ashe@kivikakk.ee; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-riscv@nongnu.org, Sagar Karandikar , Bastian Koppelmann , Asherah Connor , Alistair Francis , Palmer Dabbelt Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Allow ramfb on virt. This lets `-device ramfb' work. Signed-off-by: Asherah Connor Reviewed-by: Bin Meng --- Changes in v2: * Add DMA interface support. * Add ramfb as allowed on riscv virt machine class. hw/riscv/virt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index a10f218c43..dbd40c41da 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -42,6 +42,7 @@ #include "sysemu/sysemu.h" #include "hw/pci/pci.h" #include "hw/pci-host/gpex.h" +#include "hw/display/ramfb.h" =20 static const struct MemmapEntry { hwaddr base; @@ -740,6 +741,8 @@ static void virt_machine_class_init(ObjectClass *oc, vo= id *data) mc->cpu_index_to_instance_props =3D riscv_numa_cpu_index_to_props; mc->get_default_cpu_node_id =3D riscv_numa_get_default_cpu_node_id; mc->numa_mem_supported =3D true; + + machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE); } =20 static const TypeInfo virt_machine_typeinfo =3D { --=20 2.24.3 (Apple Git-128)