Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5813225ybp; Tue, 8 Oct 2019 08:40:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6jSZVwbv3Qmv4i+NiTvBlTcFrL3FkejScT+h+lCKXgZ48IfcrL0wsQJovBssjS7ketnRn X-Received: by 2002:a17:907:20c1:: with SMTP id qq1mr4407780ejb.87.1570549248119; Tue, 08 Oct 2019 08:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570549248; cv=none; d=google.com; s=arc-20160816; b=G/+JBEkLEZG3F4aMDhDgcEOeRq0aejHbEkamp2oISF9l49Lfx9xrTWarfvW7FJe72q PJH8yyuuXSHfpe4Z1/64P4cgHE+7YCq8Epkua6OjzuPr9VofVryLpkfTPE881wqzs+Uh yXAvpXgPpXdbO51qlxTsPOl1sm4UTvxrFdcW/WbnHgSgDO4tGpNRf7XeiRBbvLW5ojsu zDZgBNHH+ym+6C8aCtUpiILTzOF9DXDLpknxXfqJcYcEUt+znhP0iPiIZgLaH+Lai5dj d48YEoY6I3WhLwVMIqlScVuSTz5cOph/R4cy3wKs/0wQ27iOmMDl+SUZg4tfhdpG5Vpt N0wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XrQwPYJ9ZxtAK55jxj1ROP1SF0zdgUGUTqfiib/SpJ4=; b=Ii2WAWShPNYSzObPZFOTCG7ioFMvNW+I+DxAKeud1tBWJ1qNYhTSBEpzbIqL+89BlF qFXKzRFqpq+PSyJNtN+/qgUkgZfezB2pJQYX3FquujgD3iZxf/ALh6uSwEXWmxOpLFJO 3ZZzsd7I4glTCYd9W54x1hhQO2B96YSXNzG9hPO64ud6DezRsmoUVclBnS15AaWAsRNq CfJ9y5y8f5PuF2iUdhAQoTIq835pcd77Xm8hq/NO6JFe7Sx/v7E/LuCq0bGlWzGRL71z s3TOjFo8SUqqz0Tcyz2ehSb+0veD+PE4Amw2D23zRwpwOCt5YtGjJLT5zbLdhxJczXYM yxtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XngeCDSo; 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 o25si8873198ejc.361.2019.10.08.08.40.23; Tue, 08 Oct 2019 08:40:48 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XngeCDSo; 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 S1727876AbfJHPj3 (ORCPT + 99 others); Tue, 8 Oct 2019 11:39:29 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56454 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfJHPj3 (ORCPT ); Tue, 8 Oct 2019 11:39:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XrQwPYJ9ZxtAK55jxj1ROP1SF0zdgUGUTqfiib/SpJ4=; b=XngeCDSoSquz9UNqpG9IqIOMw g80aeCv7meKmzZllrXkgxMG8xhyW4i6s6xhdFF5J1SUC9dZwcUhhu/HZPFY4HE9uiLNjM1iBjYXTg H25tJ/QNXPfPF2ssYk9zIRNZc3AnsoavpXdPsDxzSvXptuLXDXoje/hE43+NzjaQWBqM4QME4MA6R YAE1ejYqKB6XjbW7lc2fajOWbkoYopdPt6NZkpVYqfXwbt39RXYpVQteWSf2JwfuUnUL8Dlx2StbR mKezoiwSvka2UkCMWyziw4eSGlLtFIr/m5hoWcXcWU3LNJ4RibDOeoiPcnpXNbMjYgPpTKpIxkH4p AjusAdTUA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHra8-0005PO-Co; Tue, 08 Oct 2019 15:39:24 +0000 Date: Tue, 8 Oct 2019 08:39:24 -0700 From: Christoph Hellwig To: Anup Patel Cc: Christoph Hellwig , Albert Ou , Alan Kao , Greg Kroah-Hartman , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" , Mike Rapoport , Atish Patra , Gary Guo , Paul Walmsley , linux-riscv , Thomas Gleixner , Allison Randal Subject: Re: [PATCH v2 3/3] RISC-V: Move SBI related macros under uapi. Message-ID: <20191008153924.GA20318@infradead.org> References: <20190927000915.31781-1-atish.patra@wdc.com> <20190927000915.31781-4-atish.patra@wdc.com> <20190927222107.GC4700@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 03, 2019 at 11:00:05AM +0530, Anup Patel wrote: > These defines are indeed part of KVM userspace API because we will > be forwarding SBI calls not handled by KVM RISC-V kernel module to > KVM userspace (QEMU/KVMTOOL). The forwarded SBI call details > are passed to userspace via "struct kvm_run" of KVM_RUN ioctl. At best your are passing through a hardware interface. We don't expose e.g. the nvme headers to userspace either. We keep the headers clean enough that userspace can copy them (and a few projects do), but they really are not a kernel interface in any classic way.