Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2338489ybl; Thu, 29 Aug 2019 07:00:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvU9RM1bgLOMivfCxkMfv9zQW66sL631VM+Bzv5BoA2E3XKuKfwdMMdUwAYeThOXRoN9OJ X-Received: by 2002:a17:902:ac86:: with SMTP id h6mr10163644plr.79.1567087237191; Thu, 29 Aug 2019 07:00:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567087237; cv=pass; d=google.com; s=arc-20160816; b=dcC6hXaWXSa6XxEn9Cf05z2qRzB8vvL6gD8RFA3iAlEjWvO+a2wVPP5TSC+5BsBkVL MEoa1ly+YK23V4NBSAfHv082B78PKZQJl7JXzL/wa4hyqUt0M+AASykH8eBgQASWDODy KV1cFElLi+3MhIh7Fee1TIXTTZMhCCli0xSsXXgNlBcMLMhtyMK8HBaAU1jO7NxW3Ivv vcec/MAo21MVHSUdRJllXXf9bNd70tQKdM18zeiCAwWCuuzpzMsBTc+PyORjkyY4t+Zp bUm5gHX4ot7K0Dv1fNCIeH6+BoRXToQuAd6lcgYdWjuGO7C8ZDC2puBZ9p38mHHj3N2v x6+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-sdr:dkim-signature; bh=6V1q6hJtlrVrDqgWao5UQv7SJqACoYta45fGWJ5PcbU=; b=W7DMdrBWk5m7KfgLGoIBqnOPeKFPseQFjb7ovPTPmbDhS5pbu4Lv2B7h6sQ0pyzFbK QK3wmeYbE3pjiduFdvCtY+gWQNUrYym3+stZduM1Knu+dmH7fJR7aSdtUaguKycjRtuI iqGsibs0EtYtEcFEOXWBCelGgObuIWeBm56fxFZtm9mV6M4B1mgUqX/0Gd/UZA8wyN0N hOIwIv/QciWPajgjL2tr3k/u+QSnzNOZdfCGyDJ+R+Lr+rINIo7Ol2Ver8FV4Z74VLuR GdIoQMIgTgJeaIBlCteheGA3+9JE1AhvDPYjMkn3HDfWkO1SEHCc9ZcSux1AmfFAyz7A r3qQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=rFE6Sqi7; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=oLReDMEc; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f128si2044230pgc.55.2019.08.29.07.00.17; Thu, 29 Aug 2019 07:00:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=rFE6Sqi7; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=oLReDMEc; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728430AbfH2N53 (ORCPT + 99 others); Thu, 29 Aug 2019 09:57:29 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:1261 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728372AbfH2N52 (ORCPT ); Thu, 29 Aug 2019 09:57:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1567087047; x=1598623047; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=i0dBuMtm4qYdmPHDPdzjlUG780xav8sFb1mfXlmWgr8=; b=rFE6Sqi7GwIgS/OgWbWpCiOOtWnACdpZRoKhHfMwEwGxen9mFN7Yqndb DkJOiezhOzCYnqOsopHK5n8eCukTHlvanXkketOZquIEpyMTw5IUeTNIH cu3r4ITftImJpVCgqjpWRTFzWW6QpYHt24HTQoJWrP5rR8REfyG7bRGak XRDAXrlx2hduNQ5VvmiJaAmTeN17cB9Rp1FloYkPNrUK930fgmZQe/4h2 RGMJsqktqH1p1w+YyBHoYBvuTiwUrr2/hNwmJ/Oh3+PPjsfQ/1Y1zZ0yG o7PjZoGMeQfT6MtyEv/ONPxGJ7Nl3enLhd/ISpVKjc8mG23VKpFmHfn3q g==; IronPort-SDR: wIf5S7IsoY6HEDk91Hb754q+ry0sE4X4hwmg4pqwUaFPAOehmO0BhGyjpGp4NhIyEabC5YFLQ0 ILoWkXPt2pXMJ+zhZQzurPSXtlegEbQdiiu3D3u7aVIz03KZqzhkYuwewwiC9HY9cQRfv+Em3P 6zOgsuBVuHi2LkSEvIushigmEtQWv0uSnLx+dqmJGU5s2znks6PBuBwfBUDUpldQ72asNjFKFA 6KvVU5JxIIfdiS4AJYmOU/NKBULQO0m9/PCMnbkqzPRCIj1PjZRssu2Ynd1K9o07NpkzTXKoap EG0= X-IronPort-AV: E=Sophos;i="5.64,443,1559491200"; d="scan'208";a="117866048" Received: from mail-co1nam04lp2059.outbound.protection.outlook.com (HELO NAM04-CO1-obe.outbound.protection.outlook.com) ([104.47.45.59]) by ob1.hgst.iphmx.com with ESMTP; 29 Aug 2019 21:57:26 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XYNNB1guBpzIyQTZ/zqi9zPHoe9HUWXJgLxEKxf7fqLyjwR1dVzDDVFl/PcjnphI24ZQ715kGCfd7FJt1y5oui78uKZMNuC8RRT+sBaolf/BgaJK/Vmc3FrZsAE35waOgnsv4u/erMHY551QAMpOUKMFEL/i2L8caqLTnaHMIQU+uFaXQxM+CBut/BAQCYhQ9dQ9k93acapKQ7WAE4AbdRlLjxC+9ZQS6pdYq2oVk9+MO1YLSgIA27yxGWqXjtNhEEkoK6+7/trimJH2LIkw3F/KRVwce3HV8ZXrMK0OH8EWujAkVb6gzXqJxjfUim6pHXDmvEcy/HjR25Ecz1IJ9Q== 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=6V1q6hJtlrVrDqgWao5UQv7SJqACoYta45fGWJ5PcbU=; b=XHPUClx/uuagQ+juIGBKEwxCFUrR/eqsSEyyC0HCipDunILgb1AST1mEWXYI1qtkiAEbfIPBllcX9Z/VoqfKUTeKGwxGb+mjoE/xn3UqIxb7avCsP2gjt4t052qaOjP2uUPkg9dSV5SYBDcJOBRtiOd9Y+tNPh2SzW3rMlWq8i4n48Zg/6No9M6YinSlhlzWccgNKxgrAGV07Iuxpe4fWX5GQwpX2qSFAYulRoHvBm2hlgHtXCQ+SnDuJZP6Kk6pjPQgvWu5OLISmOrQJTLcUfP1FTMlUdKp0XSLTpYCryJ1YwAmqS8xvceSA096KcBvl7CeIGiX4784f+L/xTpJSQ== 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=6V1q6hJtlrVrDqgWao5UQv7SJqACoYta45fGWJ5PcbU=; b=oLReDMEc5JT5fJNgatdbGsez+NAb55AdL0GzryemUCNXc8v9nPcJs5E+jd7NRFvI0JM3ZSXIYYQETU9rcEiS3mVLBkXZmgL6/u9hZfRdArtPtfCFQh524pmXXdmvXkwpJKBkJvQ8B5b46Sw//k5np9Gc0GN065xml4N4q1r03ao= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB6255.namprd04.prod.outlook.com (20.178.245.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.21; Thu, 29 Aug 2019 13:57:25 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::e1a5:8de2:c3b1:3fb0]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::e1a5:8de2:c3b1:3fb0%7]) with mapi id 15.20.2220.013; Thu, 29 Aug 2019 13:57:25 +0000 From: Anup Patel To: Palmer Dabbelt , Paul Walmsley , Paolo Bonzini , Radim K CC: Daniel Lezcano , Thomas Gleixner , Atish Patra , Alistair Francis , Damien Le Moal , Christoph Hellwig , Anup Patel , "kvm@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Anup Patel Subject: [PATCH v6 20/21] RISC-V: Enable VIRTIO drivers in RV64 and RV32 defconfig Thread-Topic: [PATCH v6 20/21] RISC-V: Enable VIRTIO drivers in RV64 and RV32 defconfig Thread-Index: AQHVXnGvxSf/dwB1Z0WFAAkZdKW5Yg== Date: Thu, 29 Aug 2019 13:57:25 +0000 Message-ID: <20190829135427.47808-21-anup.patel@wdc.com> References: <20190829135427.47808-1-anup.patel@wdc.com> In-Reply-To: <20190829135427.47808-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MAXPR0101CA0072.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::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: [49.207.51.114] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1be532b2-fad1-4b0b-6af7-08d72c88d231 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:MN2PR04MB6255; x-ms-traffictypediagnostic: MN2PR04MB6255: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:238; x-forefront-prvs: 0144B30E41 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(39860400002)(366004)(396003)(346002)(376002)(136003)(199004)(189003)(446003)(55236004)(11346002)(76176011)(386003)(2616005)(53936002)(36756003)(25786009)(5660300002)(4326008)(6436002)(316002)(6486002)(99286004)(6506007)(71190400001)(256004)(14444005)(6512007)(486006)(52116002)(2906002)(476003)(1076003)(102836004)(478600001)(81166006)(81156014)(110136005)(8676002)(54906003)(26005)(66446008)(64756008)(66556008)(66476007)(86362001)(7416002)(6116002)(50226002)(7736002)(14454004)(3846002)(66066001)(8936002)(44832011)(71200400001)(66946007)(186003)(305945005);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB6255;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: HQp4zBRKubr6430BQXu9ixiJBDfv8ofyssd+41XkYx18FnvGw7O2v6LBcvovDNi3RSgoEP2I65fTfZFH4BWGIC+OlgeY0VlkbhAOEk7IugrUhG9BzwZHhGkidoHYdp1QpKgcSji96hoCogZWT7KQMG3oqmSW4NTl1Cpno3/WayaIJWw7pKSEBNBJDb9p5guXIwsd2ODcbT7/6K2XpNXJkIcs9JqT4if+otf/B4YcUvJIJdbv4wxmi41nKDYMJDI4cjXXwD38kjAbvRg3VZvWJgYVrO2U2tmPXY26J58MZZ7uIk7mu5ZFoKuEEynpgC5ZC5OVuVtBLVk90rJdEvcgwFv+QywwPYK3mA382hwH+kzy+n4syX3bK256o2noo1AkWBEeq3AYiCnLC62rVs+CNZX2KlAANSWNkTP3mYt34cQ= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1be532b2-fad1-4b0b-6af7-08d72c88d231 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2019 13:57:25.1142 (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: wEkMGEbeodsh8FcoLIN4brDLTthjn2b1z/FZTJN9JKth8a1fd0hINACizehUkcz9fzfT5uFX/KLyubyiKyinLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6255 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 Reviewed-by: Alexander Graf --- 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=3Dy CONFIG_IP_PNP_BOOTP=3Dy CONFIG_IP_PNP_RARP=3Dy CONFIG_NETLINK_DIAG=3Dy +CONFIG_NET_9P=3Dy +CONFIG_NET_9P_VIRTIO=3Dy CONFIG_PCI=3Dy CONFIG_PCIEPORTBUS=3Dy CONFIG_PCI_HOST_GENERIC=3Dy @@ -39,6 +41,7 @@ CONFIG_BLK_DEV_LOOP=3Dy CONFIG_VIRTIO_BLK=3Dy CONFIG_BLK_DEV_SD=3Dy CONFIG_BLK_DEV_SR=3Dy +CONFIG_SCSI_VIRTIO=3Dy CONFIG_ATA=3Dy CONFIG_SATA_AHCI=3Dy CONFIG_SATA_AHCI_PLATFORM=3Dy @@ -54,6 +57,7 @@ CONFIG_SERIAL_8250_CONSOLE=3Dy CONFIG_SERIAL_OF_PLATFORM=3Dy CONFIG_SERIAL_EARLYCON_RISCV_SBI=3Dy CONFIG_HVC_RISCV_SBI=3Dy +CONFIG_VIRTIO_CONSOLE=3Dy CONFIG_HW_RANDOM=3Dy CONFIG_HW_RANDOM_VIRTIO=3Dy CONFIG_SPI=3Dy @@ -61,6 +65,7 @@ CONFIG_SPI_SIFIVE=3Dy # CONFIG_PTP_1588_CLOCK is not set CONFIG_DRM=3Dy CONFIG_DRM_RADEON=3Dy +CONFIG_DRM_VIRTIO_GPU=3Dy CONFIG_FRAMEBUFFER_CONSOLE=3Dy CONFIG_USB=3Dy CONFIG_USB_XHCI_HCD=3Dy @@ -73,7 +78,12 @@ CONFIG_USB_STORAGE=3Dy CONFIG_USB_UAS=3Dy CONFIG_MMC=3Dy CONFIG_MMC_SPI=3Dy +CONFIG_VIRTIO_PCI=3Dy +CONFIG_VIRTIO_BALLOON=3Dy +CONFIG_VIRTIO_INPUT=3Dy CONFIG_VIRTIO_MMIO=3Dy +CONFIG_RPMSG_CHAR=3Dy +CONFIG_RPMSG_VIRTIO=3Dy CONFIG_EXT4_FS=3Dy CONFIG_EXT4_FS_POSIX_ACL=3Dy CONFIG_AUTOFS4_FS=3Dy @@ -86,6 +96,7 @@ CONFIG_NFS_V4=3Dy CONFIG_NFS_V4_1=3Dy CONFIG_NFS_V4_2=3Dy CONFIG_ROOT_NFS=3Dy +CONFIG_9P_FS=3Dy CONFIG_CRYPTO_USER_API_HASH=3Dy CONFIG_CRYPTO_DEV_VIRTIO=3Dy CONFIG_PRINTK_TIME=3Dy diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_de= fconfig index 7da93e494445..87ee6e62b64b 100644 --- a/arch/riscv/configs/rv32_defconfig +++ b/arch/riscv/configs/rv32_defconfig @@ -29,6 +29,8 @@ CONFIG_IP_PNP_DHCP=3Dy CONFIG_IP_PNP_BOOTP=3Dy CONFIG_IP_PNP_RARP=3Dy CONFIG_NETLINK_DIAG=3Dy +CONFIG_NET_9P=3Dy +CONFIG_NET_9P_VIRTIO=3Dy CONFIG_PCI=3Dy CONFIG_PCIEPORTBUS=3Dy CONFIG_PCI_HOST_GENERIC=3Dy @@ -39,6 +41,7 @@ CONFIG_BLK_DEV_LOOP=3Dy CONFIG_VIRTIO_BLK=3Dy CONFIG_BLK_DEV_SD=3Dy CONFIG_BLK_DEV_SR=3Dy +CONFIG_SCSI_VIRTIO=3Dy CONFIG_ATA=3Dy CONFIG_SATA_AHCI=3Dy CONFIG_SATA_AHCI_PLATFORM=3Dy @@ -54,11 +57,13 @@ CONFIG_SERIAL_8250_CONSOLE=3Dy CONFIG_SERIAL_OF_PLATFORM=3Dy CONFIG_SERIAL_EARLYCON_RISCV_SBI=3Dy CONFIG_HVC_RISCV_SBI=3Dy +CONFIG_VIRTIO_CONSOLE=3Dy CONFIG_HW_RANDOM=3Dy CONFIG_HW_RANDOM_VIRTIO=3Dy # CONFIG_PTP_1588_CLOCK is not set CONFIG_DRM=3Dy CONFIG_DRM_RADEON=3Dy +CONFIG_DRM_VIRTIO_GPU=3Dy CONFIG_FRAMEBUFFER_CONSOLE=3Dy CONFIG_USB=3Dy CONFIG_USB_XHCI_HCD=3Dy @@ -69,7 +74,12 @@ CONFIG_USB_OHCI_HCD=3Dy CONFIG_USB_OHCI_HCD_PLATFORM=3Dy CONFIG_USB_STORAGE=3Dy CONFIG_USB_UAS=3Dy +CONFIG_VIRTIO_PCI=3Dy +CONFIG_VIRTIO_BALLOON=3Dy +CONFIG_VIRTIO_INPUT=3Dy CONFIG_VIRTIO_MMIO=3Dy +CONFIG_RPMSG_CHAR=3Dy +CONFIG_RPMSG_VIRTIO=3Dy CONFIG_SIFIVE_PLIC=3Dy CONFIG_EXT4_FS=3Dy CONFIG_EXT4_FS_POSIX_ACL=3Dy @@ -83,6 +93,7 @@ CONFIG_NFS_V4=3Dy CONFIG_NFS_V4_1=3Dy CONFIG_NFS_V4_2=3Dy CONFIG_ROOT_NFS=3Dy +CONFIG_9P_FS=3Dy CONFIG_CRYPTO_USER_API_HASH=3Dy CONFIG_CRYPTO_DEV_VIRTIO=3Dy CONFIG_PRINTK_TIME=3Dy --=20 2.17.1