From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 547A1C10F14 for ; Tue, 8 Oct 2019 15:39:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2731621721 for ; Tue, 8 Oct 2019 15:39:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PG7eLp/E" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2731621721 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k3dgGoEAdx/adAVrMUMvxlwuw2Co7PiwQBAbC7iZj48=; b=PG7eLp/Ej37Xn2 N6sJaEI9UDIotLRactFOYTjiZMDtAy+BS6ORSvX5YeBDr2MjCd2jlQ/4Lc6prVA2tqAlXIVbBBoaf 8pSLWCcT32nYbt7PmuASmk1VQJJHb453PqOWeGUOy7mvBb5IAdh87ZSH9OiyyYkA69Zejyc5CXMJp 0tYyneTSNvHN1qMpuJUfvP1iJ3DmZz1Dre9JN+LC9t2SHOjSLmGqmMEZbHBTLqaTsW51paB6LYMb5 9pQ+YoWVP9WMmuzgL/sJOaItqypAScNX8sKpbqqcbbrYP3TxWeEh+FE/n6hMVi1DWpgfTGYokBYgT xuiIsYueRNVITGwv2BXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHraA-0005Pw-Jg; Tue, 08 Oct 2019 15:39:26 +0000 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 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Albert Ou , Alan Kao , Greg Kroah-Hartman , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" , Mike Rapoport , Christoph Hellwig , Atish Patra , Gary Guo , Paul Walmsley , linux-riscv , Thomas Gleixner , Allison Randal Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.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. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv