Re: [PATCH v3 08/12] KVM: SVM: add warning for mistmatch between AVIC state and AVIC access page state

From: Paolo Bonzini
Date: Tue Aug 03 2021 - 04:45:56 EST


On 02/08/21 20:33, Maxim Levitsky wrote:
+ WARN_ON_ONCE(vcpu->kvm->arch.apic_access_memslot_enabled !=
+ kvm_vcpu_apicv_active(vcpu));

This should also check !vcpu->kvm->arch.apicv_inhibit_reasons instead of apic_access_memslot_enabled.

Paolo