Re: [PATCH v2 3/3] RISC-V: Move SBI related macros under uapi.

From: Christoph Hellwig
Date: Fri Sep 27 2019 - 18:21:10 EST


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.