Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp711711ybl; Thu, 22 Aug 2019 03:47:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqRpQEgAaZYL5v0vgPGeEsx1gxAiuB0w2rPkTrfuUweiE480oyVb9C2JM2RARsXtrAiGBQ X-Received: by 2002:a17:902:3003:: with SMTP id u3mr24095989plb.161.1566470871033; Thu, 22 Aug 2019 03:47:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566470871; cv=pass; d=google.com; s=arc-20160816; b=wCHQGA13HqMb6ciAy8144w52SOsTlLKmEmbmJAlUEGnop8MJz2zf0lSJLr+37MVTte D+unzyE+KSCedqPqzwMhz8QPzijMczxNylZ0kD9PbBE1wpTOEnDGhBLP5rdHN+7RqniG 9oDweWeSBK3f6HfKBY56zSCw0A2kNjird1pdIFK02U+ETGeIsJvY4cPRWnEi3rd+BhVH FPEAKGerSItELHWl5gl/XdF3Jj+WZTQtIhs7Qr03ZxdzT5BCojNQa/LCvtvXZexsWTtE aVFmsPY06mdlolQsCMhRHIeQHm/uSahkKj+vMV43lHcdsjRc7kQG2TenDxoUw6+GNPqd Mo0A== 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:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature :ironport-sdr:dkim-signature; bh=QRsyx/0OoFBE/gqJuauuqNnvPTRIG4NYzPVf5drpJOo=; b=KJ3xvU1Ad9dft2DR4kxu1ODD4VK3GmxcJSDhmBdZpp6hM66BoHjjfR+AWswewHDMA9 m9a7CE9p2Bef5SewektXb/MQcav10PTL3yUDnkHp5vVBmeROSqcmMUPzIrDWUM/5+uET ng88aZpXb8STmFkaGGHxpsOLu1hDQLS6ylASsH2IF2Sd9EBBDKVk84l8xCiDslh1/Ewi 5/7HP3zkQfN8fJAak0CTG3jSIFOtedzO9h7VO0maKPU3EdztbB0pHjIZ6xilrFpj/641 412msVGSPmrHjpNgZQwVA2xHeDw0odOqSktajAqXxXCidbO+MWTNxrcCHysBCsMCnGsJ T1gg== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=Ja968x8o; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=s6BROLqn; 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 g2si18861546pfq.160.2019.08.22.03.47.35; Thu, 22 Aug 2019 03:47:51 -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=Ja968x8o; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=s6BROLqn; 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 S1732494AbfHVImT (ORCPT + 99 others); Thu, 22 Aug 2019 04:42:19 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:23963 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbfHVImS (ORCPT ); Thu, 22 Aug 2019 04:42:18 -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=1566463338; x=1597999338; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=tiJDHw3R0ElQHisEyA1tcJWi0gH1vjpsflBTqtxnm+I=; b=Ja968x8obEXuBatFd2jKCVjfZqgN/qpQ8mx5nWlPbsV2d+KYi4x4oyql ytIgCYMAMVDZJWEUEDJgFU205viho1ouePZ9vYB6W0Km1DwKhbdnK+rIZ lDDZIgy5E7co9mp9wCRaBexWqX3s2KKEtTwn+1DfySCk7gtUL8p5YWEpc abL9piJmmn6KUS2N8OG6f0jcvv+EB6XTR6+4qE969ybpuebz5FvFA8+Fi HQZGcl9uRWxKX68L7BisdcursWN/lutKqFJlie78E9Y6zmjtW+/SzNXVo x4hYBi+M1112UGzNlOr6nGbqh4/vfrpVMQUARSEeDQJl+i9XIT32tQ3jn g==; IronPort-SDR: jKdpRnWILlbw8AXjWhBl5qQL7PE0ufc4ALUq0VhOzmB0T2FPS3e5DnNjopvX8DNQmLSc2so3Fc E7XNWZo4GWBB+eZr0G9zxjAqpiHs4VJ42aKwvfBqjh12cwoX6HuhFoiljo+cn1VYofn6tQuI+s aqyfKKPNpmvOD2IY/x0z0NkOsWbCiiCQL0lZkEl0y16Hv07/ZnTRag2yaiTispMSOAo0cFp4fk MNZFbec/rL12RUx+to34lMekKhyNzQaqJj3eVeAVJCAohMLAbgkNAeBjrs0QD/ZmAoBrBXBRYW EYo= X-IronPort-AV: E=Sophos;i="5.64,416,1559491200"; d="scan'208";a="116400153" Received: from mail-bl2nam02lp2058.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([104.47.38.58]) by ob1.hgst.iphmx.com with ESMTP; 22 Aug 2019 16:42:17 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AAM6q7GOzB+HH+E6+bzvZh5Gy4iiunacR1BwN3qDzA4Xd6sL+4XJi5mvDYhshiNbeGvcqOKoWR27+SNsMyBGDF2LzOLKKVq7MGc5+U4x0Ga7GpaaXRjAujdsy7ysVj7NPV35GZVJxIZxUi6ATi9op/AWDcQi+0U25S3fIkGeUfQXJLroNWR6CG+lLry1tqyGPYi3Gl5Lt77c/LBfsgpy/5XZ1kwymbuwbrCAy+Eao46owfFbJpYXFCzhsqXvNRB886m13sViixhYHvioAkqaw6rsTMSUUdI1EuK+OQz5ErNRKje1MsE8InraB/MrKXuAadpGdxyK+UKF6NVH/yGSOQ== 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=QRsyx/0OoFBE/gqJuauuqNnvPTRIG4NYzPVf5drpJOo=; b=beqvkHqqqwoFt+LFYn76InLXB/J6h7dCdq8aKZLAHG9wpONvyPfpOiU5oNtdEjC3Eo8MF8UN5Sefrd/Z4KYtTVZy1UQ/+S5rwXS4pIEdR5eztOIX+MaomGjK834MnaxmDKwJxdgrf6iC14phZ2SD/IkVF+XVk9jRxGFNWWpA3ed61b7OF57kibf57FKD0GiCYugVXNLAXRhTcVc4PVSMIFUEMyBCiOxUQ/IY6SFXPqVDvuCykSBljaV3SFfiaWfvdylF5Tf95uvno6FsxuSMbCEZf/1x9wPZ+bsF9WxtAAe8jkvew4jDCl8jmI6cr4wjbOFdgn0w5UZ+ve5CnSOrqQ== 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=QRsyx/0OoFBE/gqJuauuqNnvPTRIG4NYzPVf5drpJOo=; b=s6BROLqnGJJ+jz0MF7uggy8KKKvARK6kMbh4bJWjOpBwz0HKryfiiey3TzsQJq3h3OHyZC59dv/U4/jWBdWs7w3OPMzh6uRkYl3tZKwBtXXvehEM9OTIz9/Lm6BFZ+wlOjEwioTTpKk92gryZqB+L2LN9Tlgfo2V0VR5jXpS9j8= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB7070.namprd04.prod.outlook.com (10.186.146.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Thu, 22 Aug 2019 08:42:14 +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:42:14 +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 v5 00/20] KVM RISC-V Support Thread-Topic: [PATCH v5 00/20] KVM RISC-V Support Thread-Index: AQHVWMV/Y81q5mZfDUeb7P9RvQNpQw== Date: Thu, 22 Aug 2019 08:42:14 +0000 Message-ID: <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: 0b433738-a201-4364-e7d2-08d726dca153 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:MN2PR04MB7070; x-ms-traffictypediagnostic: MN2PR04MB7070: x-ms-exchange-purlcount: 2 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:1360; x-forefront-prvs: 01371B902F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(366004)(396003)(376002)(136003)(39860400002)(346002)(189003)(199004)(86362001)(25786009)(110136005)(486006)(316002)(52116002)(54906003)(476003)(36756003)(14454004)(8676002)(44832011)(14444005)(6506007)(81166006)(256004)(386003)(2906002)(966005)(99286004)(2616005)(66446008)(81156014)(66556008)(64756008)(66476007)(3846002)(6512007)(4326008)(1076003)(305945005)(7736002)(50226002)(66946007)(53936002)(186003)(26005)(478600001)(6436002)(102836004)(6486002)(5660300002)(71200400001)(6306002)(6116002)(8936002)(66066001)(71190400001)(7416002);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB7070;H:MN2PR04MB6061.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: dBbA6OfUrR4NHLR/JNmwuBTKFiqh9Z9TU6KDosoWq+KlKJe+/qwQBylEAp78d7kUd3ZvfhkWB8iANbduAWmxSG/3MpZPTDAFCovJSWtPBUYrHm/qS7k4sZdAnwpwzkZLNQs9U5Zj1J97+sfGm7guJEfMm0gk6BXTUHUGvRb0RY04hOg4boOWTppy/11fx0odqAX+rLeyEJeVc8XwGnWBT7SzArf46pMg+jFz8EtVwgE62XzmRoZt5v7KrqWGjZCPWBJwP1LG2ZCkr57rThKYmMXiaeXJw7ecXQwvEbCiGBn+vzg57Ks2Po+c+Lxzkv7zpgpDStJIZwxSgwnYfoKDJFzFkGl91i+egw4+CPnjOvvzqziMH5YFIW9j2UFFj3iR6Ds1VkX3nuzSWSA0E2hl76rcRCqjkznfdvLFmmPi8ZE= 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: 0b433738-a201-4364-e7d2-08d726dca153 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2019 08:42:14.6250 (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: /jEFuUUE0yI3LirmB1s2WWr58hNJauNiaP84bAOVZHwNHTPxgaSa5GMhANT1I8Wy8qqKI/LJxAB8snXh4t7m6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB7070 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds initial KVM RISC-V support. Currently, we are able to boot RISC-V 64bit Linux Guests with multiple VCPUs. Few key aspects of KVM RISC-V added by this series are: 1. Minimal possible KVM world-switch which touches only GPRs and few CSRs. 2. Full Guest/VM switch is done via vcpu_get/vcpu_put infrastructure. 3. KVM ONE_REG interface for VCPU register access from user-space. 4. PLIC emulation is done in user-space. In-kernel PLIC emulation, will be added in future. 5. Timer and IPI emuation is done in-kernel. 6. MMU notifiers supported. 7. FP lazy save/restore supported. 8. SBI v0.1 emulation for KVM Guest available. Here's a brief TODO list which we will work upon after this series: 1. Handle trap from unpriv access in reading Guest instruction 2. Handle trap from unpriv access in SBI v0.1 emulation 3. Implement recursive stage2 page table programing 4. SBI v0.2 emulation in-kernel 5. SBI v0.2 hart hotplug emulation in-kernel 6. In-kernel PLIC emulation 7. ..... and more ..... This series can be found in riscv_kvm_v5 branch at: https//github.com/avpatel/linux.git Our work-in-progress KVMTOOL RISC-V port can be found in riscv_v1 branch at= : https//github.com/avpatel/kvmtool.git We need OpenSBI with RISC-V hypervisor extension support which can be found in hyp_ext_changes_v1 branch at: https://github.com/riscv/opensbi.git The QEMU RISC-V hypervisor emulation is done by Alistair and is available in riscv-hyp-work.next branch at: https://github.com/alistair23/qemu.git To play around with KVM RISC-V, here are few reference commands: 1) To cross-compile KVMTOOL: $ make lkvm-static 2) To launch RISC-V Host Linux: $ qemu-system-riscv64 -monitor null -cpu rv64,h=3Dtrue -M virt \ -m 512M -display none -serial mon:stdio \ -kernel opensbi/build/platform/qemu/virt/firmware/fw_jump.elf \ -device loader,file=3Dbuild-riscv64/arch/riscv/boot/Image,addr=3D0x80200= 000 \ -initrd ./rootfs_kvm_riscv64.img \ -append "root=3D/dev/ram rw console=3DttyS0 earlycon=3Dsbi" 3) To launch RISC-V Guest Linux with 9P rootfs: $ ./apps/lkvm-static run -m 128 -c2 --console serial \ -p "console=3DttyS0 earlycon=3Duart8250,mmio,0x3f8" -k ./apps/Image --de= bug 4) To launch RISC-V Guest Linux with initrd: $ ./apps/lkvm-static run -m 128 -c2 --console serial \ -p "console=3DttyS0 earlycon=3Duart8250,mmio,0x3f8" -k ./apps/Image \ -i ./apps/rootfs.img --debug Changes since v4: - Rebased patches on Linux-5.3-rc5 - Added Paolo's Acked-by and Reviewed-by - Updated mailing list in MAINTAINERS entry Changes since v3: - Moved patch for ISA bitmap from KVM prep series to this series - Make vsip_shadow as run-time percpu variable instead of compile-time - Flush Guest TLBs on all Host CPUs whenever we run-out of VMIDs Changes since v2: - Removed references of KVM_REQ_IRQ_PENDING from all patches - Use kvm->srcu within in-kernel KVM run loop - Added percpu vsip_shadow to track last value programmed in VSIP CSR - Added comments about irqs_pending and irqs_pending_mask - Used kvm_arch_vcpu_runnable() in-place-of kvm_riscv_vcpu_has_interrupt() in system_opcode_insn() - Removed unwanted smp_wmb() in kvm_riscv_stage2_vmid_update() - Use kvm_flush_remote_tlbs() in kvm_riscv_stage2_vmid_update() - Use READ_ONCE() in kvm_riscv_stage2_update_hgatp() for vmid Changes since v1: - Fixed compile errors in building KVM RISC-V as module - Removed unused kvm_riscv_halt_guest() and kvm_riscv_resume_guest() - Set KVM_CAP_SYNC_MMU capability only after MMU notifiers are implemented - Made vmid_version as unsigned long instead of atomic - Renamed KVM_REQ_UPDATE_PGTBL to KVM_REQ_UPDATE_HGATP - Renamed kvm_riscv_stage2_update_pgtbl() to kvm_riscv_stage2_update_hgatp(= ) - Configure HIDELEG and HEDELEG in kvm_arch_hardware_enable() - Updated ONE_REG interface for CSR access to user-space - Removed irqs_pending_lock and use atomic bitops instead - Added separate patch for FP ONE_REG interface - Added separate patch for updating MAINTAINERS file Anup Patel (15): KVM: RISC-V: Add KVM_REG_RISCV for ONE_REG interface RISC-V: Add bitmap reprensenting ISA features common across CPUs RISC-V: Add hypervisor extension related CSR defines RISC-V: Add initial skeletal KVM support RISC-V: KVM: Implement VCPU create, init and destroy functions RISC-V: KVM: Implement VCPU interrupts and requests handling RISC-V: KVM: Implement KVM_GET_ONE_REG/KVM_SET_ONE_REG ioctls RISC-V: KVM: Implement VCPU world-switch RISC-V: KVM: Handle MMIO exits for VCPU RISC-V: KVM: Handle WFI exits for VCPU RISC-V: KVM: Implement VMID allocator RISC-V: KVM: Implement stage2 page table programming RISC-V: KVM: Implement MMU notifiers RISC-V: Enable VIRTIO drivers in RV64 and RV32 defconfig RISC-V: KVM: Add MAINTAINERS entry Atish Patra (5): RISC-V: Export few kernel symbols RISC-V: KVM: Add timer functionality RISC-V: KVM: FP lazy save/restore RISC-V: KVM: Implement ONE REG interface for FP registers RISC-V: KVM: Add SBI v0.1 support MAINTAINERS | 10 + arch/riscv/Kconfig | 2 + arch/riscv/Makefile | 2 + arch/riscv/configs/defconfig | 11 + arch/riscv/configs/rv32_defconfig | 11 + arch/riscv/include/asm/csr.h | 58 ++ arch/riscv/include/asm/hwcap.h | 26 + arch/riscv/include/asm/kvm_host.h | 246 ++++++ arch/riscv/include/asm/kvm_vcpu_timer.h | 32 + arch/riscv/include/asm/pgtable-bits.h | 1 + arch/riscv/include/uapi/asm/kvm.h | 98 +++ arch/riscv/kernel/asm-offsets.c | 148 ++++ arch/riscv/kernel/cpufeature.c | 79 +- arch/riscv/kernel/smp.c | 2 +- arch/riscv/kernel/time.c | 1 + arch/riscv/kvm/Kconfig | 34 + arch/riscv/kvm/Makefile | 14 + arch/riscv/kvm/main.c | 92 +++ arch/riscv/kvm/mmu.c | 905 ++++++++++++++++++++++ arch/riscv/kvm/tlb.S | 43 ++ arch/riscv/kvm/vcpu.c | 989 ++++++++++++++++++++++++ arch/riscv/kvm/vcpu_exit.c | 556 +++++++++++++ arch/riscv/kvm/vcpu_sbi.c | 119 +++ arch/riscv/kvm/vcpu_switch.S | 368 +++++++++ arch/riscv/kvm/vcpu_timer.c | 106 +++ arch/riscv/kvm/vm.c | 86 +++ arch/riscv/kvm/vmid.c | 123 +++ drivers/clocksource/timer-riscv.c | 8 + include/clocksource/timer-riscv.h | 16 + include/uapi/linux/kvm.h | 1 + 30 files changed, 4183 insertions(+), 4 deletions(-) create mode 100644 arch/riscv/include/asm/kvm_host.h create mode 100644 arch/riscv/include/asm/kvm_vcpu_timer.h create mode 100644 arch/riscv/include/uapi/asm/kvm.h create mode 100644 arch/riscv/kvm/Kconfig create mode 100644 arch/riscv/kvm/Makefile create mode 100644 arch/riscv/kvm/main.c create mode 100644 arch/riscv/kvm/mmu.c create mode 100644 arch/riscv/kvm/tlb.S create mode 100644 arch/riscv/kvm/vcpu.c create mode 100644 arch/riscv/kvm/vcpu_exit.c create mode 100644 arch/riscv/kvm/vcpu_sbi.c create mode 100644 arch/riscv/kvm/vcpu_switch.S create mode 100644 arch/riscv/kvm/vcpu_timer.c create mode 100644 arch/riscv/kvm/vm.c create mode 100644 arch/riscv/kvm/vmid.c create mode 100644 include/clocksource/timer-riscv.h -- 2.17.1