[RFC PATCH 29/32] KVM: arm64: Pass hypercalls to userspace
Oliver Upton
oliver.upton at linux.dev
Fri Feb 3 13:08:00 PST 2023
Hi James,
On Fri, Feb 03, 2023 at 01:50:40PM +0000, James Morse wrote:
> From: Jean-Philippe Brucker <jean-philippe at linaro.org>
>
> When capability KVM_CAP_ARM_HVC_TO_USER is available, userspace can
> request to handle all hypercalls that aren't handled by KVM.
I would very much prefer we not go down this route. This capability
effectively constructs an ABI out of what KVM presently does not
implement. What would happen if KVM decides to implement a new set
of hypercalls later down the road that were previously forwarded to
userspace?
Instead of a catch-all I think we should take the approach of having
userspace explicitly request which hypercalls should be forwarded to
userspace. I proposed something similar [1], but never got around to
respinning it (oops).
Let me dust those patches off and align with Marc's suggestions.
[1]: https://lore.kernel.org/kvmarm/20221110015327.3389351-1-oliver.upton@linux.dev/
--
Thanks,
Oliver
More information about the linux-arm-kernel
mailing list