Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4233440pxb; Mon, 4 Oct 2021 21:20:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCwf0pfrL7ubzo1xWYqzopCT/szVmwvdH/LHlTC8WsCrFZQu5i9rJOD6SdK6+exWO89hdF X-Received: by 2002:a63:ec57:: with SMTP id r23mr13901415pgj.17.1633407626671; Mon, 04 Oct 2021 21:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633407626; cv=none; d=google.com; s=arc-20160816; b=Li8xe+6gk7dl+vNG5BhDgBjK6Ge5B9JlCptNxVxkrBTUf0pKV4Qt4MdcWVMswtg6Xx 3TSISR3M2KM+2NuCs7dV90cjoyYC5Yli/NYsvWAn9EtTj3K8DYLqN1/r08Oi8HHMU8sA 1jE+xWOnrrLB7pn2M3RRc1dcPrqDqTR+8/UQwpAz6VJdnWFTcuIS0kQX57XefIFeWFHf yGNrT+jOxlAUbn72JI7N2ZONji6ldJUnosg9x5cR8SYw5CgP1L5gE83fbp3KIR6Ow8OX PKQjcKav+0chjGKe920hslin/JGSUK0305gJcYVBeHfet7GKhtD1nJOYdInnN3LXiCy0 KKiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ldiVl+t8mgo2eZZ+0dm/iKZs4c1YMS7niH0Ehzbu8P8=; b=xYlto1fKVnYe0yjayhF4bHEY2CAsfeJ8cwHbFxcNAD83XDyfJhbfqvKDy6WYjR1FzG rPkEh457xqS8fYtu4/XqkrG/v0aClfjrRFcuWlR/2u3OoogqvJ/zE7K9aaTlAq6KClc8 mgupiMyUOyUcosBZ9/dL0pQ/PKmwVn5o09kh9Jg9ZcYpmfU62BR9NRTxZefMEcWQw99D OW/y4bOyBZgjaVTYzRgb9X7DViKatLJ8RyewMLk3/jroJJZjlV03+aN4+DBIFHXTVXVH y8t7RFcmva10YqnIA5r2GlMTL7U7d6xXgL/UhjFDvW2TLPPjSmhs/n1HMFC7Poj599AB zVjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b="mX/8MC1Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j63si11093584pge.216.2021.10.04.21.20.13; Mon, 04 Oct 2021 21:20:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b="mX/8MC1Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbhJEETu (ORCPT + 99 others); Tue, 5 Oct 2021 00:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbhJEETt (ORCPT ); Tue, 5 Oct 2021 00:19:49 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E511BC061749 for ; Mon, 4 Oct 2021 21:17:58 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id j10-20020a1c230a000000b0030d523b6693so1713894wmj.2 for ; Mon, 04 Oct 2021 21:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ldiVl+t8mgo2eZZ+0dm/iKZs4c1YMS7niH0Ehzbu8P8=; b=mX/8MC1Z3q3+b/sqPIhdbqw5uqfmCrcEs76Vjy7QBZIqM4i8XiMoDonzMYsjNwBqRt MGCYZ+fOYXV0G2moWo6M81hLOqmdevrjwPTpPyw+lK/Rh34oGoJJ9IegpWjjKulNDfHb WxuRkFNzvP2V/gkY44cMNb3kUdQ7YbSURd0WyE3zqiFfVXRrD+5Bc3xRH/MLglpHdXaz TvDRVp+86tw3nVv7ORBVioPtWWrLnhnOsDSFK8bOlI1oPoMOPr8E1a5/YqUQFKkuFDxr pGiEvKmc/WdqOUrqd09M198BYxvYOQQ8uAOdp/tG7x2ffa1USwtXa6mp2UGGs8tI1ubN /e7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ldiVl+t8mgo2eZZ+0dm/iKZs4c1YMS7niH0Ehzbu8P8=; b=L0IyDM8Lz5T0Ael326DedITnHh32BgFtm6yPq3Q+xocLX7hjj90IRgrFjTr4s3DBTl 2eR47Xb+fqdgKRHjHBUXQt+jz3XSohYyQwby92Clwc4BPbFSHenI+db7hFRCU9Vwrzqa DpnFWtvZiirnO1QMe+0WGQEj+7q5D4aDRElXlUMncGqxLJaP28E5H5sv6jCPxH7Jgc6f ZT5nT62A4a+b03s/sjqEIl/asmn86K20jweR9SWtBzLBYHFKmbaXF0idYtN186X9iAis MHpQkCvl+fLUga1TVlfz7Qtw2q8TIoeA7b2E8okNbYz/jlWgm/58EjQ+ZQ2c/Oe+wDx4 TaEg== X-Gm-Message-State: AOAM530Uy5SD8mUR+TjjtpYE5JxQrOl+rUXXfzx31/JdmnLD0u6IqumF mUpb7PEk+6+vl9yAMxmpHtDUrAKao1lFCjc3lvQfIQ== X-Received: by 2002:a7b:cb04:: with SMTP id u4mr986462wmj.176.1633407477436; Mon, 04 Oct 2021 21:17:57 -0700 (PDT) MIME-Version: 1.0 References: <20210927114016.1089328-1-anup.patel@wdc.com> <5cadb0b3-5e8f-110b-c6ed-4adaea033e58@redhat.com> In-Reply-To: <5cadb0b3-5e8f-110b-c6ed-4adaea033e58@redhat.com> From: Anup Patel Date: Tue, 5 Oct 2021 09:47:46 +0530 Message-ID: Subject: Re: [PATCH v20 00/17] KVM RISC-V Support To: Paolo Bonzini Cc: Anup Patel , Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Albert Ou , Alexander Graf , Atish Patra , Alistair Francis , Damien Le Moal , KVM General , kvm-riscv@lists.infradead.org, linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 4, 2021 at 2:28 PM Paolo Bonzini wrote: > > On 27/09/21 13:39, Anup Patel wrote: > > This series adds initial KVM RISC-V support. Currently, we are able to boot > > Linux on RV64/RV32 Guest with multiple VCPUs. > > > > Key aspects of KVM RISC-V added by this series are: > > 1. No RISC-V specific KVM IOCTL > > 2. Loadable KVM RISC-V module supported > > 3. Minimal possible KVM world-switch which touches only GPRs and few CSRs > > 4. Both RV64 and RV32 host supported > > 5. Full Guest/VM switch is done via vcpu_get/vcpu_put infrastructure > > 6. KVM ONE_REG interface for VCPU register access from user-space > > 7. PLIC emulation is done in user-space > > 8. Timer and IPI emuation is done in-kernel > > 9. Both Sv39x4 and Sv48x4 supported for RV64 host > > 10. MMU notifiers supported > > 11. Generic dirtylog supported > > 12. FP lazy save/restore supported > > 13. SBI v0.1 emulation for KVM Guest available > > 14. Forward unhandled SBI calls to KVM userspace > > 15. Hugepage support for Guest/VM > > 16. IOEVENTFD support for Vhost > > > > Here's a brief TODO list which we will work upon after this series: > > 1. KVM unit test support > > 2. KVM selftest support > > 3. SBI v0.3 emulation in-kernel > > 4. In-kernel PMU virtualization > > 5. In-kernel AIA irqchip support > > 6. Nested virtualizaiton > > 7. ..... and more ..... > > Looks good, I prepared a tag "for-riscv" at > https://git.kernel.org/pub/scm/virt/kvm/kvm.git. Palmer can pull it and > you can use it to send me a pull request. Sure, I have prepared PR for the remaining 16 patches based on the PATCH1 commit in the KVM tree. I will send PR today or tomorrow. > > I look forward to the test support. :) Would be nice to have selftest > support already in 5.16, since there are a few arch-independent > selftests that cover the hairy parts of the MMU. I will try my best to send basic kvm-selftest support sooner (preferably for 5.16). Regards, Anup