Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
KVM: arm64: Disable steal time for protected VMs
pKVM doesn't support steal time for protected guests, and KVM_CAP_STEAL_TIME already reads 0 for them on the VM file descriptor, but kvm_arm_pvtime_supported() takes no VM, so the host still accepts the KVM_ARM_VCPU_PVTIME_CTRL attribute, whose IPA would point kvm_update_stolen_time() at the guest's private memory on every vCPU load. Pass the VM in and return false for a protected one, so the attribute returns -ENXIO as it does where steal time isn't implemented. Reviewed-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Link: https://patch.msgid.link/20261001135711.1640520-5-fuad.tabba@linux.dev Signed-off-by: Marc Zyngier <maz@kernel.org>
Author Fuad Tabba Committer Marc Zyngier Date (Oct 2, 2026, 2:22 PM UTC) Commit
Copy SHA
Parent a2bb5f5c a2bb5f5c67a95ac97fcd6859dab51be421cf26fe