From nobody Fri Jan 30 16:34:32 2026 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=1613065379; cv=none; d=zohomail.com; s=zohoarc; b=hJ0XU6grH6SHLMv2dumVc/zkHYEbqcubT+CxJ0i1DTefFOuTa/avkOfcZHcFVUammMTwwx8iYDACpj6FLH41JYwaJYjKMDvCe92PV9HbMjw2ZH0SNYLktW4qHYRaOFjBPYOdanHXq3FA5g6nZaNIqS78ottB/Y3wrxe8uhhTzzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613065379; h=Content-Type:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=1sjEnmjeI9EpEdwwOGj/osrSU+VkX9zD6xHFqv50cDk=; b=nNshNY2XqjVJdv2a5TxXRLfYQn6L5HhOW8bjAtzsr+Sj8j3H/evN06LV6pfbFaTKAWVNJ9Bz4cJLNjxs6G0uasayS+kj3rjvuptURSG4owiOulEUs3Mqfd4F0IM8l6WdEmQXd7N72fq7hEGuMfc3738Aw7Ri33YSPv26H061s9M= 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 1613065378867574.53569759827; Thu, 11 Feb 2021 09:42:58 -0800 (PST) Received: from localhost ([::1]:40942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAE7P-00036Q-09 for importer@patchew.org; Thu, 11 Feb 2021 10:42:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAE2U-0000Ax-By for qemu-devel@nongnu.org; Thu, 11 Feb 2021 10:37:55 -0500 Received: from 13thmonkey.org ([80.100.255.32]:59044 helo=dropje.13thmonkey.org) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAE2R-0002P6-LV for qemu-devel@nongnu.org; Thu, 11 Feb 2021 10:37:53 -0500 Received: by dropje.13thmonkey.org (Postfix, from userid 103) id 5E111C1E998; Thu, 11 Feb 2021 16:37:46 +0100 (CET) Date: Thu, 11 Feb 2021 16:37:46 +0100 From: Reinoud Zandijk To: qemu-devel@nongnu.org Subject: RFC Qemu mipssim patches Message-ID: <20210211153746.GA25676@dropje.13thmonkey.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline 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=80.100.255.32; envelope-from=reinoud@13thmonkey.org; helo=dropje.13thmonkey.org X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-Zoho-Virus-Status: 1 Content-Transfer-Encoding: quoted-printable --nFreZHaLTZJo0R7j Content-Disposition: inline MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGksCgppJ2QgbGlrZSB0byBnZXQgdGhlIGZvbGxvd2luZyBzaW1wbGUgcGF0Y2hlcyB0byB0aGUg TUlQUy9taXBzc2ltIHRhcmdldCBhZGQ9CmluZwp2aXJ0aW8tbW1pbyBkZXZpY2VzIHRvIGl0LiBU aGlzIG1ha2VzIHRoZSB0YXJnZXQgYSBsb3QgbW9yZSB1c2VmdWxsIGFzIG1pY3I9Cm92bQpmb3Ig a2VybmVsIGRldmVsb3BlbWVudC4gSXQgY3VycmVudGx5IGxpdmVzIGluIG91ciBxZW11IGV4dGVu c2lvbnMgcGF0Y2hlcyA9CmFuZAp3ZSBoYXZlIGEgd29ya2luZyBrZXJuZWwgdGhhdCBzdXBwb3J0 cyBhbGwgdmlydGlvIGRldmljZXMgZm9yIGl0LgoKVGhvdWdodHM/CgpSZWlub3VkIFphbmRpamss IE5ldEJTRCBkZXZlbG9wZXIK --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-hw-mips-Kconfig $NetBSD$ --- hw/mips/Kconfig.orig 2020-08-11 19:17:15.000000000 +0000 +++ hw/mips/Kconfig @@ -20,6 +20,7 @@ config MIPSSIM select ISA_BUS select SERIAL_ISA select MIPSNET + select VIRTIO_MMIO config JAZZ bool --nFreZHaLTZJo0R7j Content-Type: text/x-c; charset=us-ascii Content-Disposition: attachment; filename="patch-hw-mips-mipssim.c" $NetBSD$ --- hw/mips/mipssim.c.orig 2020-08-11 19:17:15.000000000 +0000 +++ hw/mips/mipssim.c @@ -45,6 +45,7 @@ #include "qemu/error-report.h" #include "sysemu/qtest.h" #include "sysemu/reset.h" +#include "hw/virtio/virtio-mmio.h" static struct _loaderparams { int ram_size; @@ -229,6 +230,16 @@ mips_mipssim_init(MachineState *machine) if (nd_table[0].used) /* MIPSnet uses the MIPS CPU INT0, which is interrupt 2. */ mipsnet_init(0x4200, env->irq[2], &nd_table[0]); + + /* + * virtio extention; register 32 virtio devices just after the ISA space + * at 0x1fd10000 with strave of 512 bytes as per i386s microvm target. + */ + for (int i = 0; i < 32; i++) { + sysbus_create_simple("virtio-mmio", + 0x1fd10000 + i * 512, + env->irq[3]); + } } static void mips_mipssim_machine_init(MachineClass *mc) --nFreZHaLTZJo0R7j--