Re: [PATCH v22 02/23] KVM: arm64: Disable Steal time accounting for protected guests
From: Gavin Shan
Date: Mon Oct 05 2026 - 20:03:51 EST
On 10/5/26 7:07 PM, Suzuki K Poulose wrote:
PVTIME support is advertised by KVM_CAP_STEAL_TIME, which doesn't take intoReviewed-by: Gavin Shan <gshan@xxxxxxxxxx>
account the kvm instance. Even with that, a VMM could skip the CAP check
and proceed to configure the PVTIME as we don't do further check on the
DEVICE_CTRL. Tighten this up by passing the KVM instance around wherever
possible and catch things early.
Reviewed-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>
Tested-by: Gavin Shan <gshan@xxxxxxxxxx>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
---
arch/arm64/include/asm/kvm_host.h | 2 +-
arch/arm64/kvm/arm.c | 2 +-
arch/arm64/kvm/pvtime.c | 14 +++++++-------
3 files changed, 9 insertions(+), 9 deletions(-)