diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-10-01 14:56:57 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-02 15:22:39 +0100 |
| commit | a5b0f36a045e0e96f8e2e044403ff8e6464995e1 (patch) | |
| tree | 9ac4dc21fbeb75051c652727b10d45a6c36a62e6 /tools/perf/scripts/python/stackcollapse.py | |
| parent | a2bb5f5c67a95ac97fcd6859dab51be421cf26fe (diff) | |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
