[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZVZoKlWrjV1L3CBo@shell.armlinux.org.uk>
Date: Thu, 16 Nov 2023 19:06:18 +0000
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Jianyong Wu <jianyong.wu@....com>
Cc: maz@...nel.org, james.morse@....com, will@...nel.org,
salil.mehta@...wei.com, suzuki.poulose@....com,
oliver.upton@...ux.dev, linux-arm-kernel@...ts.infradead.org,
kvmarm@...ts.linux.dev, linux-kernel@...r.kernel.org,
justin.he@....com
Subject: Re: [PATCH] arm64/kvm: Introduce feature extension for SMCCC filter
On Thu, Nov 16, 2023 at 11:41:52AM +0000, Jianyong Wu wrote:
> 821d935c87b introduces support for userspace SMCCC filtering, but lack
> of a way to tell userspace if we have this feature. Add a corresponding
> feature extension can resolve this issue.
>
> For example, the incoming feature Vcpu Hotplug needs the SMCCC filter.
> As there is no way to check this feature, VMM will run into error when
> it calls this feature on an old kernel. It's bad for backward compatible.
Can't you just attempt to use the SMCCC filtering, and if it errors out
with the appropriate error code, decide that SMCCC filtering is not
available?
That's how most things like kernel syscalls work - if they're not
implemented they return -ENOSYS. glibc can detect that and use a
fallback.
Imagine what it would be like if the kernel provided userspace with
a large bitmap of what syscalls were implemented...
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists