From patchwork Thu Aug 22 08:47:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 11108833 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 923E41398 for ; Thu, 22 Aug 2019 08:47:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6C9B121848 for ; Thu, 22 Aug 2019 08:47:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OPbPem2r"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="kGHW/+ac"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="yjpDBRMX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C9B121848 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NW1MzNLrCDxyWRRr1MnEXIweaR5nYO2828Pn7bZYMTU=; b=OPbPem2rXtBQT9 fnbkN3vks1uIQvsRgxXXBxQIiO1z6nj4JVz4mcuLrtYvxeWx+BV14PgpM9dL07/bMFW8x2uy/+6Q2 Dtl2+F4riWnBeNPl8oQngznojgQWA+6k+NiClCt6PbVQDMuUMqkBKpDixqL5vgak+Sl04GbDxHxgK Th7Lf/9xvbI+izyarb1Rw5ZGKvhLy01oxb/K43vuRzblq7ZBp4WEpyz2BRnrNJLHHUH0/XNFKThCK NKODhWZaQL7G+HtciCC6rC5eoLs32O5ui8kCsqIhoLBP9W6ItlBRg0gUxWjr2Y29t+gZ+dRYgnXXV sOUvewoMbam5maw7hTfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i0ikR-0000dO-Cf; Thu, 22 Aug 2019 08:47:11 +0000 Received: from esa2.hgst.iphmx.com ([68.232.143.124]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i0ikO-0000cz-Vn for linux-riscv@lists.infradead.org; Thu, 22 Aug 2019 08:47:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1566463629; x=1597999629; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=AFobqC0bdIEmM6sFtQmzLt3x6VvFgASxo+AaAyM8jT8=; b=kGHW/+ac63DuONWU1x6nQ7iOUffgZXqd5o+gxl7/yeUWE6fREtwonTjU jhQq4Qu75hsJdKDqRM34nxeQkcLCJBXcg1cpbUj820flzzbfdo3Lwt/2t FmXbvB8vti/UWIips5WZ2EjRaWDprkJr0rStoqk25bAJ2Rczl/NKXzjsv xnoWR1idjuYKImBrxalzLSqoTm6fRx1XrUzUfyjZ//vBaQkeSUc/B+ZG0 C1VIFVgkrbZTyJ/lI3zDMrnEMcEUVoStRmp6Pw2A7GrMNPsfb1GuuggkL z4HRsLR9nGjVM3HEGKrZzBpR1U6FaydC8dx3QH9niQRHtNdcuLIhE1daI w==; IronPort-SDR: Q8yyoxUvK7MH5Pi5GY1OJ/NA8TIP7QodlXfIqZM/otfHuuTxWIlifztL8tbUg4cJTmA4LYiWR+ vq3bSX3zdyaoVRl0A+bEKmhNvbToo9q+cBrwh9I6sR9eG2dTEwEIe/ocfkv9fE65M464kbF0OR 4zlVrds6xZU0FsFgNOBDH+XGA3TvYklW4J98aycFt36xrf47i+qXYtqwl/MTmOKFdYGlpA0EQU QcRYzfKYVz3tKHScVkvSAnzvetEJ6JkfnM5mbal8bW9Knix0jDJj3d/Pbp3zPQZ4zUp/t98ig7 cb8= X-IronPort-AV: E=Sophos;i="5.64,416,1559491200"; d="scan'208";a="216835043" Received: from mail-bn3nam04lp2056.outbound.protection.outlook.com (HELO NAM04-BN3-obe.outbound.protection.outlook.com) ([104.47.46.56]) by ob1.hgst.iphmx.com with ESMTP; 22 Aug 2019 16:47:07 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QXUvRikjqurxI5jdAvYo5/YnpDqPnUx/mPrx6SGyNrsmINuKr4YqXdxffNxVbyKF1nZwGPtWTs2LIPnqnUXF7ZECze0BAQLwOnraOH9vUjFlfscGkh1BhXuTsy+tP8SMhGvZovuwN15nm2L/1r/9cbABRWSM2CpEpXEUeyxz07WuKK0cUHFS+o/YYxIcwcqeoSN8tidJ55vphdIca43mHZcX2tTfPsT96/RLZ3XIHVZQmcctJ1WvcEEMi3vPsf+O97iSoy3ZtuvSh2JwUoDgSO/+3UrjHaYZO/iMBbuhQg/z9NeGAuNofxo7SBJZ9e9aeSNxOgYvXw5HT1alXZ5I0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=muv0KS9WyjBoEujLq99rslGg5z/MF0Jskl0AnruBOPc=; b=VXyCyqw2d31C34K/OkdSfCtB+bm12iVANiTQ2ugZIiG7S7tikGGGidgzTHaPqdqvibS12RXLHFALFH6PJE506tPGG+O7ySgEh4Qw4rtjSUBRkl83WS4NVDB2qpbiArSD9/yasodopEGK2puPFY3QJ63UVJD43U0iagz1J7dIISZePi5Vdj9dXu7IbXc8PQIUrJrAAdtS8c+c/4ysPzt8GIEUmsS3H+LiwGvNNDU1BjDrLtBZy8HtLAsVeRqBtAXXAA+vKfQLQyEDg228rE2N0LjYfAfBoSuSY++I2KvBnCzs9uD0LhjmjpQ1tCbvKCcoxoQd8FRBDwNZ84BFVLXMwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=muv0KS9WyjBoEujLq99rslGg5z/MF0Jskl0AnruBOPc=; b=yjpDBRMXV7s5SGpVORY8wmQkKSc1IQqr5ias/RaYWwUPcGio44h5avHhMsPX1id5KbXRwZ8pCTzRTrSHAC+cVS6+Xa/KmFXQEnfDVmSciil6MrN3jVbNgdn+Yn7cVeoV6rSfTOGrRRg2fHyO34YGv1yCqZSRAq2MpOSpHD9pzp0= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB6048.namprd04.prod.outlook.com (20.178.249.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.19; Thu, 22 Aug 2019 08:47:06 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::a815:e61a:b4aa:60c8]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::a815:e61a:b4aa:60c8%7]) with mapi id 15.20.2178.018; Thu, 22 Aug 2019 08:47:06 +0000 From: Anup Patel To: Palmer Dabbelt , Paul Walmsley , Paolo Bonzini , Radim K Subject: [PATCH v5 19/20] RISC-V: Enable VIRTIO drivers in RV64 and RV32 defconfig Thread-Topic: [PATCH v5 19/20] RISC-V: Enable VIRTIO drivers in RV64 and RV32 defconfig Thread-Index: AQHVWMYtqJBIY1dIZU2MUdQGr5Tm+w== Date: Thu, 22 Aug 2019 08:47:06 +0000 Message-ID: <20190822084131.114764-20-anup.patel@wdc.com> References: <20190822084131.114764-1-anup.patel@wdc.com> In-Reply-To: <20190822084131.114764-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0118.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::34) To MN2PR04MB6061.namprd04.prod.outlook.com (2603:10b6:208:d8::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [199.255.44.175] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 09aca62d-4021-41fd-569f-08d726dd4f66 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600166)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:MN2PR04MB6048; x-ms-traffictypediagnostic: MN2PR04MB6048: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:238; x-forefront-prvs: 01371B902F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(39860400002)(346002)(366004)(396003)(376002)(136003)(199004)(189003)(6116002)(6486002)(3846002)(54906003)(316002)(76176011)(52116002)(2616005)(50226002)(446003)(5660300002)(1076003)(8936002)(8676002)(81156014)(81166006)(11346002)(478600001)(14454004)(53936002)(110136005)(86362001)(4326008)(186003)(26005)(66066001)(66476007)(25786009)(102836004)(7736002)(36756003)(6512007)(305945005)(386003)(6506007)(99286004)(71190400001)(71200400001)(7416002)(486006)(476003)(6436002)(66946007)(44832011)(256004)(66556008)(64756008)(14444005)(2906002)(66446008); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR04MB6048; H:MN2PR04MB6061.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: KqKwezpCM49YRBpPiav69tE3ImDAO9KSN7F36pKPRaO89ctOPlHlia1dZJjA61uVdgh+tX+EcomcfmQVQsfHu6WZKOtF2QlEkUbf/vXB8/7Yv4Wz5TVdPHj6S28NVVLtke8YmuKEStpm5U+TP+N5UAuskA/1hiZ20RR4SZQIHuaMmpkYBcE9iizLp4g6Xj5lA1NQOmLXPUTfVCPPm/Ohh2FrsIZN1HPIqtsTGqmS8uXj0B/bXJ5KliI/7dayI9gCf5VGIj98SRZksElgP3NxcHRW1eSRqP22N1dXuWryIKdpB8ZQ/knYjDzV7EV/W052gdV9+wmjVAoeiYel0sDr/8ZKxqmG58DghGYwEmYrPgPuVi99GJfFpKWUEA/zpXU/esahG3LB05kvdcQEzGgahxD1tRL8AetOvL9USc2Eb/Y= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09aca62d-4021-41fd-569f-08d726dd4f66 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2019 08:47:06.6164 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: afYCIiXPjt26+BHkmyjDqsX8NxnDDSfQ8xrr9Pgz6sBD+N/fmvtGTXLU6s17kpnVFpv+v7tgDtkngETiAkaN4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6048 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190822_014709_066513_5151175D X-CRM114-Status: GOOD ( 11.79 ) X-Spam-Score: -1.7 (-) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-1.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [68.232.143.124 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.8 UPPERCASE_50_75 message body is 50-75% uppercase X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Damien Le Moal , Anup Patel , "kvm@vger.kernel.org" , Anup Patel , Daniel Lezcano , "linux-kernel@vger.kernel.org" , Christoph Hellwig , Atish Patra , Alistair Francis , Thomas Gleixner , "linux-riscv@lists.infradead.org" Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org This patch enables more VIRTIO drivers (such as console, rpmsg, 9p, rng, etc.) which are usable on KVM RISC-V Guest and Xvisor RISC-V Guest. Signed-off-by: Anup Patel Acked-by: Paolo Bonzini Reviewed-by: Paolo Bonzini --- arch/riscv/configs/defconfig | 11 +++++++++++ arch/riscv/configs/rv32_defconfig | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 3efff552a261..420a0dbef386 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -29,6 +29,8 @@ CONFIG_IP_PNP_DHCP=y CONFIG_IP_PNP_BOOTP=y CONFIG_IP_PNP_RARP=y CONFIG_NETLINK_DIAG=y +CONFIG_NET_9P=y +CONFIG_NET_9P_VIRTIO=y CONFIG_PCI=y CONFIG_PCIEPORTBUS=y CONFIG_PCI_HOST_GENERIC=y @@ -39,6 +41,7 @@ CONFIG_BLK_DEV_LOOP=y CONFIG_VIRTIO_BLK=y CONFIG_BLK_DEV_SD=y CONFIG_BLK_DEV_SR=y +CONFIG_SCSI_VIRTIO=y CONFIG_ATA=y CONFIG_SATA_AHCI=y CONFIG_SATA_AHCI_PLATFORM=y @@ -54,6 +57,7 @@ CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_OF_PLATFORM=y CONFIG_SERIAL_EARLYCON_RISCV_SBI=y CONFIG_HVC_RISCV_SBI=y +CONFIG_VIRTIO_CONSOLE=y CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y CONFIG_SPI=y @@ -61,6 +65,7 @@ CONFIG_SPI_SIFIVE=y # CONFIG_PTP_1588_CLOCK is not set CONFIG_DRM=y CONFIG_DRM_RADEON=y +CONFIG_DRM_VIRTIO_GPU=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y @@ -73,7 +78,12 @@ CONFIG_USB_STORAGE=y CONFIG_USB_UAS=y CONFIG_MMC=y CONFIG_MMC_SPI=y +CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_BALLOON=y +CONFIG_VIRTIO_INPUT=y CONFIG_VIRTIO_MMIO=y +CONFIG_RPMSG_CHAR=y +CONFIG_RPMSG_VIRTIO=y CONFIG_EXT4_FS=y CONFIG_EXT4_FS_POSIX_ACL=y CONFIG_AUTOFS4_FS=y @@ -86,6 +96,7 @@ CONFIG_NFS_V4=y CONFIG_NFS_V4_1=y CONFIG_NFS_V4_2=y CONFIG_ROOT_NFS=y +CONFIG_9P_FS=y CONFIG_CRYPTO_USER_API_HASH=y CONFIG_CRYPTO_DEV_VIRTIO=y CONFIG_PRINTK_TIME=y diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig index 7da93e494445..87ee6e62b64b 100644 --- a/arch/riscv/configs/rv32_defconfig +++ b/arch/riscv/configs/rv32_defconfig @@ -29,6 +29,8 @@ CONFIG_IP_PNP_DHCP=y CONFIG_IP_PNP_BOOTP=y CONFIG_IP_PNP_RARP=y CONFIG_NETLINK_DIAG=y +CONFIG_NET_9P=y +CONFIG_NET_9P_VIRTIO=y CONFIG_PCI=y CONFIG_PCIEPORTBUS=y CONFIG_PCI_HOST_GENERIC=y @@ -39,6 +41,7 @@ CONFIG_BLK_DEV_LOOP=y CONFIG_VIRTIO_BLK=y CONFIG_BLK_DEV_SD=y CONFIG_BLK_DEV_SR=y +CONFIG_SCSI_VIRTIO=y CONFIG_ATA=y CONFIG_SATA_AHCI=y CONFIG_SATA_AHCI_PLATFORM=y @@ -54,11 +57,13 @@ CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_OF_PLATFORM=y CONFIG_SERIAL_EARLYCON_RISCV_SBI=y CONFIG_HVC_RISCV_SBI=y +CONFIG_VIRTIO_CONSOLE=y CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y # CONFIG_PTP_1588_CLOCK is not set CONFIG_DRM=y CONFIG_DRM_RADEON=y +CONFIG_DRM_VIRTIO_GPU=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y @@ -69,7 +74,12 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_HCD_PLATFORM=y CONFIG_USB_STORAGE=y CONFIG_USB_UAS=y +CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_BALLOON=y +CONFIG_VIRTIO_INPUT=y CONFIG_VIRTIO_MMIO=y +CONFIG_RPMSG_CHAR=y +CONFIG_RPMSG_VIRTIO=y CONFIG_SIFIVE_PLIC=y CONFIG_EXT4_FS=y CONFIG_EXT4_FS_POSIX_ACL=y @@ -83,6 +93,7 @@ CONFIG_NFS_V4=y CONFIG_NFS_V4_1=y CONFIG_NFS_V4_2=y CONFIG_ROOT_NFS=y +CONFIG_9P_FS=y CONFIG_CRYPTO_USER_API_HASH=y CONFIG_CRYPTO_DEV_VIRTIO=y CONFIG_PRINTK_TIME=y