Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1404655pxj; Fri, 21 May 2021 13:26:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySElvsjOvlLVOj82xORNCEb2vqN7mQFgQ7atZ8gdhPUuQQu0AM+schHkqb0kBLJOdjbzGV X-Received: by 2002:a05:6e02:1ba2:: with SMTP id n2mr802354ili.60.1621628800469; Fri, 21 May 2021 13:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628800; cv=none; d=google.com; s=arc-20160816; b=pGQFLxVxOD3kRXKEfjlj6Zi05/T3iCFDswa3aobUA13OhNN8Jci5dt0Hrh2wwdBTuH 00hXXlysRnz/H1CpV9mbevk4ry2b6kGzq43GGJsz3GqmmLeiprHm3YPdKZ3r5nK3EpSn w3jsss7u7zRKidYCnJKx5ETwqI0DyQiIxrDQs1RqFVJhkaJd9d8ewdmnsC28JRFOGI53 +IxyQsTi1Tuedz5YCH/mwCB1lq6KaNjrhBBZTqPVtGimS45lSbzjfXmz4Te2to+J4gBW w3wUAMpiLNgDqZu40Wxqme77I9QygppjVSwaEz188SzaX+J4NoR08JkQ86uVX/wFr55D r9wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=A1KexQJIl+NcWtzXQYTnarD5JIhLsBmwYOKEN7vsfIw=; b=gfkVH85I+LCsau5zkuD4zliNLwDNxXBf7lc8vg21DRKQKIrvLEa4p5E3RAyVCo6imn MqzqpIMoKPkozmu/MALtunAoEQ0jnQpppzzeki+6xdfi5OkR2CLUbv4ulBngGMoYtQFJ WdaA9mDVxzaZliflKFAr5/I/F0P/DXvjNZSOEn9S1BAIOcrUQSZXoYVJDiXAxQ7vV6s2 7jasiLJO7CdeBTfPigyUER7ZNfyLbZ8w9VhYXWdSmjwdVB7EMUYqLoAZRJYKsxusT0t3 dQMcEoaLIscVlCOjvXBY4RGZ98H/SwwixKPeffQ6Qlxu6d5JKg3iCRe2u1rQqlgUITXI UYiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0LBTP5aG; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si6140897jat.71.2021.05.21.13.26.27; Fri, 21 May 2021 13:26:40 -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=@linuxfoundation.org header.s=korg header.b=0LBTP5aG; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233389AbhEUS0v (ORCPT + 99 others); Fri, 21 May 2021 14:26:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:37834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbhEUS0u (ORCPT ); Fri, 21 May 2021 14:26:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D3049613E2; Fri, 21 May 2021 18:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621621526; bh=9AcZJfeo0xf1euRFblZG0MfqbBmLwbiLEIEackPiTqA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0LBTP5aGzuiN5qYxA5cNt6W4SscUFYtUHumwamPn5Ztt1ht4YhL0u1ltJnjB1YUcx Omlw2tyXOaYoH+f7UwfsC2EQ2dUPcDcVkYUFJ3KfXUxzFp9WptKLX3fXamJ5dkGMuK +5FhSMdxVEDIsBv/267cHa1UzuZg2WeNhKH75vKI= Date: Fri, 21 May 2021 20:25:23 +0200 From: Greg KH To: Palmer Dabbelt Cc: pbonzini@redhat.com, anup@brainfault.org, Anup Patel , Paul Walmsley , aou@eecs.berkeley.edu, corbet@lwn.net, graf@amazon.com, Atish Patra , Alistair Francis , Damien Le Moal , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH v18 00/18] KVM RISC-V Support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 11:08:15AM -0700, Palmer Dabbelt wrote: > On Fri, 21 May 2021 10:47:51 PDT (-0700), Greg KH wrote: > > On Fri, May 21, 2021 at 07:21:12PM +0200, Paolo Bonzini wrote: > > > On 21/05/21 19:13, Palmer Dabbelt wrote: > > > > > > > > > > > > > I don't view this code as being in a state where it can be > > > > maintained, at least to the standards we generally set within the > > > > kernel. The ISA extension in question is still subject to change, it > > > > says so right at the top of the H extension > > > > > > > > {\bf Warning! This draft specification may change before being > > > > accepted as standard by the RISC-V Foundation.} > > > > > > To give a complete picture, the last three relevant changes have been in > > > August 2019, November 2019 and May 2020. It seems pretty frozen to me. > > > > > > In any case, I think it's clear from the experience with Android that > > > the acceptance policy cannot succeed. The only thing that such a policy > > > guarantees, is that vendors will use more out-of-tree code. Keeping a > > > fully-developed feature out-of-tree for years is not how Linux is run. > > > > > > > I'm not sure where exactly the line for real hardware is, but for > > > > something like this it would at least involve some chip that is > > > > widely availiable and needs the H extension to be useful > > > > > > Anup said that "quite a few people have already implemented RISC-V > > > H-extension in hardware as well and KVM RISC-V works on real HW as well". > > > Those people would benefit from having KVM in the Linus tree. > > > > Great, but is this really true? If so, what hardware has this? I have > > a new RISC-V device right here next to me, what would I need to do to > > see if this is supported in it or not? > > You can probe the misa register, it should have the H bit set if it supports > the H extension. To let everyone know, based on our private chat we had off-list, no, the device I have does not support this extension, so unless someone can point me at real hardware, I don't think this code needs to be considered for merging anywhere just yet. thanks, greg k-h