Re: [PATCH v19 02/20] KVM: arm64: Disable Steal time accounting for protected guests

From: Gavin Shan

Date: Sun Sep 27 2026 - 20:14:46 EST


On 9/21/26 7:28 AM, Suzuki K Poulose wrote:
PVTIME support is advertised by KVM_CAP_STEAL_TIME, which doesn't take into
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>
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(-)

Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>