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,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 9F072C4360C for ; Fri, 27 Sep 2019 22:21:10 +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 6F591217D9 for ; Fri, 27 Sep 2019 22:21:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DxmqBCKZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F591217D9 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=wrzJZQ5gAsHrhF1ql91dZBUN3j0B8QLpcz1jpj7M2DE=; b=DxmqBCKZHawceG 2XNO7lzCy/C8F19hnYnKrV2v0bZz9rAflt4okv3VZ/FAebo43KS9pyPXQ7vNSjWD0cnAqr5AaEd8M NuCrpz/0WfjWCNlsPSm+wOzVTE7Jq9cvN3wBZZckHd+HgHwQXCpEKWLDVKS0dQKbrzSrpRUlzcT1R oRRxKSIJc2gpBajxTLO5SXPlytX+dGv2O/e6TyNBcZVjBmOhSmauITl5QO8pGIc5IOIM7c0mpBbcp YzgsGU5xFqrAC4bwvUnr20VkPmkDyuI5S3sQ5po7DoYIAIMWh0WXYtNwENAULGRaOQ7ZfG6DdsJFp 37C/hQ5AtPmRRFzHtTdQ==; 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 1iDybu-0002it-4N; Fri, 27 Sep 2019 22:21:10 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDybs-0002ih-0Z; Fri, 27 Sep 2019 22:21:08 +0000 Date: Fri, 27 Sep 2019 15:21:07 -0700 From: Christoph Hellwig To: Atish Patra Subject: Re: [PATCH v2 3/3] RISC-V: Move SBI related macros under uapi. Message-ID: <20190927222107.GC4700@infradead.org> References: <20190927000915.31781-1-atish.patra@wdc.com> <20190927000915.31781-4-atish.patra@wdc.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190927000915.31781-4-atish.patra@wdc.com> 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 , Anup Patel , Palmer Dabbelt , linux-kernel@vger.kernel.org, Mike Rapoport , Gary Guo , Paul Walmsley , linux-riscv@lists.infradead.org, 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, Sep 26, 2019 at 05:09:15PM -0700, Atish Patra wrote: > All SBI related macros can be reused by KVM RISC-V and userspace tools > such as kvmtool, qemu-kvm. SBI calls can also be emulated by userspace > if required. Any future vendor extensions can leverage this to emulate > the specific extension in userspace instead of kernel. Just because userspace can use them that doesn't mean they are a userspace API. Please don't do this as this limits how we can ever remove previously existing symbols. Just copy over the current version of the file into the other project of your choice instead of creating and API we need to maintain. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv 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.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, 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 B672CC388F3 for ; Fri, 27 Sep 2019 22:21:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B8DC21841 for ; Fri, 27 Sep 2019 22:21:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="GE8yIbd6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728490AbfI0WVJ (ORCPT ); Fri, 27 Sep 2019 18:21:09 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46026 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfI0WVJ (ORCPT ); Fri, 27 Sep 2019 18:21:09 -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=ZKFeHyvETC+38UTlXHyc0JEWdr9e5XA2y4WeMp+VK6k=; b=GE8yIbd6tVtE1/iLSYLHoIDj6 kDyEgPrCoSDNeFV75qh4oh8xzxLXioF6zfm5FWlSaSIbNmBXCIoQv97mV7Qa6yC2ZiKixD0EAbXik /7UbL4EoqQZXS8uaF70jrdB3XEsehoQCRg6JmicnJNIgqF9TQ8v702qIobKHa9JpTNzrV7OCrVkW7 134q7NfGHWJx54tXVZ8uC2+YkRaHxhn6Owt2OVPPqJSFx82aHs6HD6PgtSeZJF7XTNByakXCQn/TI +iAuNJPThjGOxgtyuPKloSY+MiV6hrWFn1qRyqOUWd7U2h693FLbmuOxDvsShojGnmi9Hipn0o3I0 WWKm0r5qg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDybs-0002ih-0Z; Fri, 27 Sep 2019 22:21:08 +0000 Date: Fri, 27 Sep 2019 15:21:07 -0700 From: Christoph Hellwig To: Atish Patra Cc: linux-kernel@vger.kernel.org, Albert Ou , Alan Kao , Anup Patel , Palmer Dabbelt , Mike Rapoport , Paul Walmsley , Gary Guo , Greg Kroah-Hartman , linux-riscv@lists.infradead.org, Thomas Gleixner , Allison Randal Subject: Re: [PATCH v2 3/3] RISC-V: Move SBI related macros under uapi. Message-ID: <20190927222107.GC4700@infradead.org> References: <20190927000915.31781-1-atish.patra@wdc.com> <20190927000915.31781-4-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190927000915.31781-4-atish.patra@wdc.com> 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, Sep 26, 2019 at 05:09:15PM -0700, Atish Patra wrote: > All SBI related macros can be reused by KVM RISC-V and userspace tools > such as kvmtool, qemu-kvm. SBI calls can also be emulated by userspace > if required. Any future vendor extensions can leverage this to emulate > the specific extension in userspace instead of kernel. Just because userspace can use them that doesn't mean they are a userspace API. Please don't do this as this limits how we can ever remove previously existing symbols. Just copy over the current version of the file into the other project of your choice instead of creating and API we need to maintain.