Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4258924pxy; Tue, 27 Apr 2021 00:07:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1DT//xz7oH0UItsC58LLgqOY24I2BlHhDsy440+/5bLCk4TSptvD/30Hgw76VZGzfCe7q X-Received: by 2002:a17:906:3111:: with SMTP id 17mr21664187ejx.403.1619507225127; Tue, 27 Apr 2021 00:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619507225; cv=none; d=google.com; s=arc-20160816; b=DZ9Wny4zX/1Y9R3ebaRNlflEZZpUi0orALFD5LLprOEyRdN7e66mMNX7ccTbvGkMPx 259KrE3sXgPXhbNFsIBdK3xYMrGVo4L9GvOUwOfqmirric0SI42mYzbLbTa/JSsmvFaA Tuiw+C2eZolMxDhtygEGayNBbeOT4pVqX1oND3A1tvol+laIcO4Ep/EO5fU48o4PtN67 SxLEtxrODWCTCBYPNtO/XBnm8thdGnpF7u092OSRFHT7wh70V7jAkczm5jV7jDO+bfGK IJoNm7Jni093PktKRfzSE1P/fwgFK+jlEJIQdHe2p0tgMrS2qhp8CwcUp6Sj1hpcbP3g YPlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=vq5D1dmgYRhw7JEWpexSDaLKtPIBt7nneiJL3FVKCro=; b=pGj+sggFqC4P06062DiR4plQoSPq7ofdfTHv//8OGICfnSxgLn9BiSfR4Mc2U5eSNg GEMkP6m08fC3qdqFG7/SPg8K7kNpPWMGlH4td9ZaTYkibQ4Lf4PMpQmmGLKOvllvWFAe PXcPA4QmUpL6A1IV3cNvUgRTrw8vCcDulRnYiCIvl7/QrOVrMa1Mh1S7P1WtHKj9JeGc d/jzlb0lBtD2Gbd8l6qUDdZFfzO4mkX3YOQFwTuN6pVlRkM5jTL3sThGitdDp7VJYvD1 SES1PUgU06EDGtoKm1vi8hTheD7oNc4Maf5VMGlqQcymfMyy8Q7IIiGHLaDnO1WS2D97 50oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HrkyXytn; 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 cm5si1667790edb.498.2021.04.27.00.06.42; Tue, 27 Apr 2021 00:07:05 -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=HrkyXytn; 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 S234901AbhD0HFj (ORCPT + 99 others); Tue, 27 Apr 2021 03:05:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29250 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237442AbhD0HFX (ORCPT ); Tue, 27 Apr 2021 03:05:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619507080; 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=vq5D1dmgYRhw7JEWpexSDaLKtPIBt7nneiJL3FVKCro=; b=HrkyXytnTq/THGJmE/qzAcOkE55yG814qVIGmA746VHVDKWSfet2e8SvsA8/S2Ui0axdr4 egPWtAUq3Gf6WBASZOG+qJdBXRWk7116wOUyTqxfWxIirkq/8CVVG1OZQ2aMsr5h9YyGes fLemOmvLd55bC+sH4zl96ilEQizAjDY= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-277-9EDPEbEOMZ2fSxHnAuu72g-1; Tue, 27 Apr 2021 03:04:39 -0400 X-MC-Unique: 9EDPEbEOMZ2fSxHnAuu72g-1 Received: by mail-ej1-f69.google.com with SMTP id bx15-20020a170906a1cfb029037415131f28so10999607ejb.18 for ; Tue, 27 Apr 2021 00:04:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vq5D1dmgYRhw7JEWpexSDaLKtPIBt7nneiJL3FVKCro=; b=OdTfSWZJmme3aQjNp/O5HeRpQ/5Wz3YL1yvPii0fV8DFhGbacbcbj+uXlk9IyA6bfn 8G12eIIDS+802hbI+RwOSwNj6/gudBcauMzgfcxCzFQY7KMg/OaReXzGjFiRD15+eUuy dfr2tsdZTosV57442wVro0mbIfGxSdZCs1WAgy6C63T7XolV7tthTPa/Nvrfyo5mNBDi qu3DG/vcZvTKVxICtJpFOuQx1uEWhcENDTR19pmCUMzww136FYiSlhlaQMaSoBtavseZ dvKPZVLxkwNLVkmWxdp6VhhBLXkX9jtjtR61orb4IKbK1DPzWoOIzR5mwusCEa9xAHcl SHig== X-Gm-Message-State: AOAM531+IsdoUXjjoUx/N2x7b+ZdZTC4zOZnRsCtcvNu2Pw+/fTGh2+R eWFuQUZI7+Rv2rRRpW1/tE/otkSIQC9hhtOCzC40sX1p0+NDK19+F+VT4ydwbfL8q1UJV/KEDLt iYftBgMMCYn9v+JrYEUEVCGMWzHITU1+KpSvsldbJ+bPHxo3bLQyKVF/D4HrV5q7x3ucKWMNsCf /m X-Received: by 2002:a50:ed0c:: with SMTP id j12mr2629985eds.12.1619507077625; Tue, 27 Apr 2021 00:04:37 -0700 (PDT) X-Received: by 2002:a50:ed0c:: with SMTP id j12mr2629947eds.12.1619507077279; Tue, 27 Apr 2021 00:04:37 -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 p22sm1660354edr.4.2021.04.27.00.04.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Apr 2021 00:04:36 -0700 (PDT) Subject: Re: [PATCH v16 00/17] KVM RISC-V Support To: Anup Patel , Palmer Dabbelt Cc: Paul Walmsley , Anup Patel , 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" References: <5b988c4e-25e9-f2b9-b08d-35bc37a245e4@sifive.com> From: Paolo Bonzini Message-ID: Date: Tue, 27 Apr 2021 09:04:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/04/21 08:01, Anup Patel wrote: > Hi Paolo, > > Looks like it will take more time for KVM RISC-V to be merged under arch/riscv. > > Let's go ahead with your suggestion of having KVM RISC-V under drivers/staging > so that development is not blocked. > > I will send-out v18 series which will add KVM RISC-V under the staging > directory. > > Should we target Linux-5.14 ? Yes, 5.14 is reasonable. You'll have to adjust the MMU notifiers for the new API introduced in 5.13. Paolo > Regards, > Anup > > On Tue, Apr 27, 2021 at 11:13 AM Paul Walmsley wrote: >> >> On Fri, 9 Apr 2021, Palmer Dabbelt wrote: >> >>> On Wed, 31 Mar 2021 02:21:58 PDT (-0700), pbonzini@redhat.com wrote: >>> >>>> Palmer, are you okay with merging RISC-V KVM? Or should we place it in >>>> drivers/staging/riscv/kvm? >>> >>> I'm certainly ready to drop my objections to merging the code based on >>> it targeting a draft extension, but at a bare minimum I want to get a >>> new policy in place that everyone can agree to for merging code. I've >>> tried to draft up a new policy a handful of times this week, but I'm not >>> really quite sure how to go about this: ultimately trying to build >>> stable interfaces around an unstable ISA is just a losing battle. I've >>> got a bunch of stuff going on right now, but I'll try to find some time >>> to actually sit down and finish one. >>> >>> I know it might seem odd to complain about how slowly things are going >>> and then throw up another roadblock, but I really do think this is a >>> very important thing to get right. I'm just not sure how we're going to >>> get anywhere with RISC-V without someone providing stability, so I want >>> to make sure that whatever we do here can be done reliably. If we don't >>> I'm worried the vendors are just going to go off and do their own >>> software stacks, which will make getting everyone back on the same page >>> very difficult. >> >> I sympathize with Paolo, Anup, and others also. Especially Anup, who has >> been updating and carrying the hypervisor patches for a long time now. >> And also Greentime, who has been carrying the V extension patches. The >> RISC-V hypervisor specification, like several other RISC-V draft >> specifications, is taking longer to transition to the officially "frozen" >> stage than almost anyone in the RISC-V community would like. >> >> Since we share this frustration, the next questions are: >> >> - What are the root causes of the problem? >> >> - What's the right forum to address the root causes? >> >> To me, the root causes of the problems described in this thread aren't >> with the arch/riscv kernel maintenance guidelines, but rather with the >> RISC-V specification process itself. And the right forum to address >> issues with the RISC-V specification process is with RISC-V International >> itself: the mailing lists, the participants, and the board of directors. >> Part of the challenge -- not simply with RISC-V, but with the Linux kernel >> or any other community -- is to ensure that incentives (and disincentives) >> are aligned with the appropriately responsible parts of the community. >> And when it comes to specification development, the right focus to align >> those incentives and disincentives is on RISC-V International. >> >> The arch/riscv patch acceptance guidelines are simply intended to ensure >> that the definition of what is and isn't RISC-V remains clear and >> unambiguous. Even though the guidelines can result in short-term pain, >> the intention is to promote long-term stability and sustainable >> maintainability - particularly since the specifications get baked into >> hardware. We've observed that attempting to chase draft specifications >> can cause significant churn: for example, the history of the RISC-V vector >> specification illustrates how a draft extension can undergo major, >> unexpected revisions throughout its journey towards ratification. One of >> our responsibilities as kernel developers is to minimize that churn - not >> simply for our own sanity, or for the usability of RISC-V, but to ensure >> that we remain members in good standing of the broader kernel community. >> Those of us who were around for the ARM32 and ARM SoC kernel accelerando >> absorbed strong lessons in maintainability, and I doubt anyone here is >> interested in re-learning those the hard way. >> >> RVI states that the association is open to community participation. The >> organizations that have joined RVI, I believe, have a strong stake in the >> health of the RISC-V ecosystem, just as the folks have here in this >> discussion. If the goal really is to get quality specifications out the >> door faster, then let's focus the energy towards building consensus >> towards improving the process at RISC-V International. If that's >> possible, the benefits won't only accrue to Linux developers, but to the >> entire RISC-V hardware and software development community at large. If >> nothing else, it will be an interesting test of whether RISC-V >> International can take action to address these concerns and balance them >> with those of other stakeholders in the process. >> >> >> - Paul >