Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4940957ybi; Tue, 30 Jul 2019 10:50:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpdGX5X9ApL9ywGu602SqQaqoY1W8VmIJcUnPy7ox++8jyryWQT657PN7TH89vGzaQCXI3 X-Received: by 2002:a65:4103:: with SMTP id w3mr92397479pgp.1.1564509050849; Tue, 30 Jul 2019 10:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564509050; cv=none; d=google.com; s=arc-20160816; b=YN+AvRIGEY4zxZkVx1eE7f+AfdmvuTH08Qqih1vc3WBD1YUdJnup7thlQGgY08wo69 xtMEn8oU466mI6MCgAyBA4LAwfQC8FcFhjZfHlCWLKF9Fha1iiqC6N+jh5t9ya2JsXik B8EM6rni8vM3QcK94t2ObXloeZs4pAypYfvd0/0NHrt58ntTe9Zgq+Yvwfjc1cGv5Q3t hl+YtKLOeqwopbUjgUccluMIv9HiVXw1AvL+93QBFQer+6wc2MsZK7TnRIX93qna+ll2 s0UyD8cGwBHXIC0LbPK+KyDpU2W7v++uYbd3D2cXdH09/jtGsbC0NrLtPanMomS/f2Fc Om9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=X7iKvPV9LFHWqoOOGTIb4owz/JIo887EqlnJgr1d4nw=; b=YRZn3Eb4emo5GGyOcLGH9ZZoc9Er5iZOIEPNsixjS6e3q1wrF9vCChfUyiOU8mPZHL jENpDaDRAVp7iCJXGuXxH+qUJXW3UEOwdFTIISxn92O5xQSBld/ACn+trOmBb4e1WV6a /evuxKdSMSVUnyZJesFMl3yxCoLJKeZyFhwiQ/vBWs2Q24TUvCESX4p1m1zl64hejksq rIs77FnAPnZ81tP53dUK4uY/txT5+CPWqP3bx1DMjh2VQJLf2nX7wU7I6TzUrXvgBbTb sXazaoGin263xkBo6WM0VgR/jO5RNih/uGufdDXu1d7v1yMREYD3gs2I08wtNGzjBnd0 ueXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=0GHJfGDW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s198si33963674pfs.209.2019.07.30.10.50.35; Tue, 30 Jul 2019 10:50:50 -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=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=0GHJfGDW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727811AbfG3Nu3 (ORCPT + 99 others); Tue, 30 Jul 2019 09:50:29 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34878 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbfG3Nu3 (ORCPT ); Tue, 30 Jul 2019 09:50:29 -0400 Received: by mail-wr1-f67.google.com with SMTP id y4so65887083wrm.2 for ; Tue, 30 Jul 2019 06:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X7iKvPV9LFHWqoOOGTIb4owz/JIo887EqlnJgr1d4nw=; b=0GHJfGDW2+1fTzradLIxRNe68wCgVz7Su5dFoY1O20icu9FNPAkVtC6+y4atcRMxME LcAnnmyGc8smLgt4iLpxEspPujnp8HMheOwuMHP0pAMcloddLv1fs/DRKKFhRC2ac+Ne VW8ZbKiyM1GJPZezCkfglkHLjjVVNUQ8+LRo4iXCMgoKbb/f6yj1572GFFG1AzE+0QXF 8S3O8nLPsanoO2A4C3oQBXFbiXfh5I7Wg5MAYYFo02lBtkJ+KR/UKV1UCkz9CUGqD5Kn x63CLAJYfZv61CF/+8VNBKxdFlwgE2WSAx/lyEkviTmfkW5V/lsduqB+wK24KIfF4388 X5Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=X7iKvPV9LFHWqoOOGTIb4owz/JIo887EqlnJgr1d4nw=; b=nsaWyrozx34YstCmw6zc39tCzbVhE7FOo/7LpoCz9fJ59PapY5tx/vypVbrGqelvF1 SzdYN5bnKekY/wNKQiO9eiwwvahXsvVwKzCrImIjAey7lToVkqR1aGY1JFuxkZiOdrSr FbAk9Zs0cAX1uZSwpgoW73Y715rboh3OWXpJauKpYSXJrYFC/5PEeY3xWwKOmAihODGr c0b1iZKtwPEBeAznwJgZm4NNoNjWxUpD5eJRoJnkTYbMFHLTq0fbPVOXU/UWtfntwBvB O1r1Di8DCmDnsHdHpOLw9hi5pr9AB2k5R7ukE57/64UROSJh/iCrDWt0OT3aYWMAmXHo RKzg== X-Gm-Message-State: APjAAAWYUVH1KEnTuUVyMLNbMQMwmWh/AzPatOgx0FPaWOiZCWKw+ONE QbrLvq7HmAld17dXzhXB1pccJB+UimB4H2LNMRI= X-Received: by 2002:a5d:6b11:: with SMTP id v17mr50794346wrw.323.1564494627045; Tue, 30 Jul 2019 06:50:27 -0700 (PDT) MIME-Version: 1.0 References: <20190729115544.17895-1-anup.patel@wdc.com> <72e9f668-f496-3fca-a1a8-a3c3122a3fd9@redhat.com> <965cffdb-86e2-b422-9c23-345c7100fd88@redhat.com> In-Reply-To: <965cffdb-86e2-b422-9c23-345c7100fd88@redhat.com> From: Anup Patel Date: Tue, 30 Jul 2019 19:20:15 +0530 Message-ID: Subject: Re: [RFC PATCH 00/16] KVM RISC-V Support To: Paolo Bonzini Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Radim K , Daniel Lezcano , Thomas Gleixner , Atish Patra , Alistair Francis , Damien Le Moal , Christoph Hellwig , "kvm@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 5:03 PM Paolo Bonzini wrote: > > On 30/07/19 07:26, Anup Patel wrote: > > Here's a brief TODO list which we want to immediately work upon after this > > series: > > 1. Handle trap from unpriv access in SBI v0.1 emulation > > 2. In-kernel PLIC emulation > > 3. SBI v0.2 emulation in-kernel > > 4. SBI v0.2 hart hotplug emulation in-kernel > > 5. ..... and so on ..... > > > > We will include above TODO list in v2 series cover letter as well. > > I guess I gave you a bunch of extra items in today's more thorough > review. :) Thanks, your review comments are very useful. We will address all of them. > > BTW, since IPIs are handled in the SBI I wouldn't bother with in-kernel > PLIC emulation unless you can demonstrate performance improvements (for > example due to irqfd). In fact, it may be more interesting to add I thought VHOST requires irqfd and we would certainly endup providing in-kernel PLIC emulation to support VHOST. > plumbing for userspace handling of selected SBI calls (in addition to > get/putchar, sbi_system_reset and sbi_hart_down look like good > candidates in SBI v0.2). The get/putchar SBI v0.1 calls won't be encouraged going forward because we already have earlycon implmentation in-place and Guest kernel can directly write to UART registers for earlyprints. If we still wanted to implement get/putchar calls then we would need a RISC-V specific exit reason in KVM. We have tried to avoid RISC-V specific IOCTLs or exit reason in this series. > > > We were thinking to keep KVM RISC-V disabled by default (i.e. keep it > > experimental) until we have validated it on some FPGA or real HW. For now, > > users can explicitly enable it and play-around on QEMU emulation. I hope > > this is fine with most people ? > > That's certainly okay with me. > Thanks, Anup