Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3444566pxb; Mon, 4 Oct 2021 02:26:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRZwW9RARD5vur1nYcu9xRC8ftNIRm74hxAsj+rResWbIcsiKiLFCzPk5W+bfnpq8pAY4K X-Received: by 2002:a17:902:d903:b0:13e:a6df:76ab with SMTP id c3-20020a170902d90300b0013ea6df76abmr9228879plz.58.1633339617959; Mon, 04 Oct 2021 02:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633339617; cv=none; d=google.com; s=arc-20160816; b=j9pYWOi46vxDNIK90EwyLqACSUzNS8ekc1U0rbL29+v4lv0Ys2qWcdEkRJ66pUg+YN h3vyZ13hDZk1KhcToipOWnP6yfB2UkeP7aSVpVrfsz/5nkNICQ9T+qXyL1BqXGtWOZe9 XA0Hh0A2rM3TbNxAbTLhCSEqZB/DJFyMNAF3tSP1/dm0eX3PzzcZyC6DMsN6+KQtBFPl xF+aFciCoxs/RkocgsOHI9yh+NV3n36nYxcUlHCplYIZbKg50o/W9f3YBLElb4hHT2sp q7NNhhsCX+pSC/48GAV0qSILSWedvWvxoOtitpJ4JTr5P6i72hLnKNuOcVa1Yc/cm5y/ LClQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=x988Ui+c+vfAAmLIqziJI6EexnnYwYLQ/x9zWNbOLdg=; b=hloh647uH3gZLDqNhGzEtgu6tLLk1PKN0lKR6qIkEGovM1Nm8OJGiOjciALY7P2l/s +VKgcf2bsHm27Ya+O9R7LF1UIBAsU1IOiE1kSMI3xRlAqDUaleXI3YsetR77hnocUwh1 GqiPzhipT3Vjm0z2NmElcCXF/vp4rk9M0pbWbwtcZAN4l+1HSwXKGpZy6EMU726dIxdS cw6dP34JMgvKm59PbjXzZL5/tABvzrfVPaOuM1WGzYNOX4GlVHKbdpSpEylLSffa2/2g wtGmxieYayMuoFfPn+oI87h3WJ4xGBhS4v//xT7cgUKfzz5aFc0PdaDrGI2c2HVXUVsA laSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TwNXIYYt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si19002703pgt.593.2021.10.04.02.26.44; Mon, 04 Oct 2021 02:26:57 -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=@redhat.com header.s=mimecast20190719 header.b=TwNXIYYt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230481AbhJDJAW (ORCPT + 99 others); Mon, 4 Oct 2021 05:00:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:41121 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbhJDJAV (ORCPT ); Mon, 4 Oct 2021 05:00:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633337912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x988Ui+c+vfAAmLIqziJI6EexnnYwYLQ/x9zWNbOLdg=; b=TwNXIYYtUWclrH3r8p9pnqA2TMyC3lFM2awpjYUTLsgysWotTzNgV87KHX/pF2bNBn81Ux 7jWHhIoiQsM85cHOUPaqTR5FvpkYn1rBenkt51AJ6TmjqgDhjUYCrO93HWo+KmylzotKwT IydCflgSi6CBMmAB1+gSbTeDS3gDCvk= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-289-RcIQZaKnOeyGTL3zY011ew-1; Mon, 04 Oct 2021 04:58:31 -0400 X-MC-Unique: RcIQZaKnOeyGTL3zY011ew-1 Received: by mail-ed1-f69.google.com with SMTP id ec14-20020a0564020d4e00b003cf5630c190so16597253edb.3 for ; Mon, 04 Oct 2021 01:58:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=x988Ui+c+vfAAmLIqziJI6EexnnYwYLQ/x9zWNbOLdg=; b=uvp3nV7Djx+WWBM3ByLyUVH4qCoyMoeRXZ9GM9lTWzJ2mgArhELfDPgNmxGqytj+DG UZxV5RMLsKVI//yHGVkHw5mBrNkHXU9lcUx1P8NvxnNwdNY4ihJlsrwp76T01YbrOOMB Q0zj9LHj3rkI0xqeRLEFTefMbMvJCy+FEfhMUdIbjRj5OicHi0h14pc65JzUbAsXuKoD AnK97vqedWzCfcn64Tm2pXtQUAQYK680Cbx7lZLLGjH/hAVtipnQrMKaYOnUAEPnThQa Kq4lfTFiflXCyRe8poo72uJgS9hUL2lxFfFLbYTu/KLCENY9xOTN04Yfk5DGavYD1fBT mEBw== X-Gm-Message-State: AOAM533g2d3EbgtmXKckRRwOaV6JLXikRHo7lCRNbo7cbOoIkDkLnP39 w9rmwxBEjfs/QGNmhshUW7t2+axj7eqg1K9nue4WIiTSrEs52pwyKTDgNA+Oc/ETr48ScHW0qK4 JEVyWCdG3WTFvRDtjR6oZr9Ae X-Received: by 2002:a50:ff14:: with SMTP id a20mr16824386edu.81.1633337910598; Mon, 04 Oct 2021 01:58:30 -0700 (PDT) X-Received: by 2002:a50:ff14:: with SMTP id a20mr16824362edu.81.1633337910414; Mon, 04 Oct 2021 01:58:30 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id s3sm6209175eja.87.2021.10.04.01.58.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Oct 2021 01:58:30 -0700 (PDT) Message-ID: <5cadb0b3-5e8f-110b-c6ed-4adaea033e58@redhat.com> Date: Mon, 4 Oct 2021 10:58:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH v20 00/17] KVM RISC-V Support Content-Language: en-US To: Anup Patel , Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Alexander Graf , Atish Patra , Alistair Francis , Damien Le Moal , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210927114016.1089328-1-anup.patel@wdc.com> From: Paolo Bonzini In-Reply-To: <20210927114016.1089328-1-anup.patel@wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. Paolo