mbox series

[0/2] KVM: arm64: Reserve SMC64 arch range per SMCCC filter documentation

Message ID 20230408121732.3411329-1-oliver.upton@linux.dev (mailing list archive)
Headers show
Series KVM: arm64: Reserve SMC64 arch range per SMCCC filter documentation | expand

Message

Oliver Upton April 8, 2023, 12:17 p.m. UTC
The intention of the SMCCC filter series was that the 'Arm architecture
calls' range is reserved, meaning userspace cannot apply a filter to it.
Though the documentation calls out both the SMC32 and presently unused
SMC64 views, only the SMC32 view of this range was actually reserved.

Small series to align UAPI behavior with the documentation and adding a
test case for the missed condition. Applies to kvmarm/next.

Oliver Upton (2):
  KVM: arm64: Prevent userspace from handling SMC64 arch range
  KVM: arm64: Test that SMC64 arch calls are reserved

 arch/arm64/kvm/hypercalls.c                   | 25 ++++++++++++++-----
 .../selftests/kvm/aarch64/smccc_filter.c      |  8 ++++++
 2 files changed, 27 insertions(+), 6 deletions(-)


base-commit: b87b85f845976e8d23e5f9fe7e399f6fc7360d26

Comments

Marc Zyngier April 8, 2023, 2:37 p.m. UTC | #1
On Sat, 8 Apr 2023 12:17:30 +0000, Oliver Upton wrote:
> The intention of the SMCCC filter series was that the 'Arm architecture
> calls' range is reserved, meaning userspace cannot apply a filter to it.
> Though the documentation calls out both the SMC32 and presently unused
> SMC64 views, only the SMC32 view of this range was actually reserved.
> 
> Small series to align UAPI behavior with the documentation and adding a
> test case for the missed condition. Applies to kvmarm/next.
> 
> [...]

Applied to next, thanks!

[1/2] KVM: arm64: Prevent userspace from handling SMC64 arch range
      commit: 5a23ad6510c82049f5ab3795841c30e8f3ca324d
[2/2] KVM: arm64: Test that SMC64 arch calls are reserved
      commit: 00e0c947118f456b622c1f2ca316c116dfb4e12c

Cheers,

	M.