Skip to content

Commit feea013

Browse files
Maxim Levitskybonzini
authored andcommitted
KVM: SVM: tweak warning about enabled AVIC on nested entry
It is possible that AVIC was requested to be disabled but not yet disabled, e.g if the nested entry is done right after svm_vcpu_after_set_cpuid. Signed-off-by: Maxim Levitsky <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent f1577ab commit feea013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/svm/nested.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ static void nested_vmcb02_prepare_control(struct vcpu_svm *svm)
515515
* Also covers avic_vapic_bar, avic_backing_page, avic_logical_id,
516516
* avic_physical_id.
517517
*/
518-
WARN_ON(svm->vmcb01.ptr->control.int_ctl & AVIC_ENABLE_MASK);
518+
WARN_ON(kvm_apicv_activated(svm->vcpu.kvm));
519519

520520
/* Copied from vmcb01. msrpm_base can be overwritten later. */
521521
svm->vmcb->control.nested_ctl = svm->vmcb01.ptr->control.nested_ctl;

0 commit comments

Comments
 (0)