diff options
author | Maxim Levitsky | 2021-07-13 17:20:18 +0300 |
---|---|---|
committer | Paolo Bonzini | 2021-07-27 16:59:01 -0400 |
commit | 5868b8225ecef4ba3f5b17e65984d60bc5fd6254 (patch) | |
tree | 5ac9dee54a0cff8613f59fa4b8d9b70e92b8fc24 /arch/csky/mm/Makefile | |
parent | feea01360cb1925dd31a3d38514eb86f61d69468 (diff) |
KVM: SVM: use vmcb01 in svm_refresh_apicv_exec_ctrl
Currently when SVM is enabled in guest CPUID, AVIC is inhibited as soon
as the guest CPUID is set.
AVIC happens to be fully disabled on all vCPUs by the time any guest
entry starts (if after migration the entry can be nested).
The reason is that currently we disable avic right away on vCPU from which
the kvm_request_apicv_update was called and for this case, it happens to be
called on all vCPUs (by svm_vcpu_after_set_cpuid).
After we stop doing this, AVIC will end up being disabled only when
KVM_REQ_APICV_UPDATE is processed which is after we done switching to the
nested guest.
Fix this by just using vmcb01 in svm_refresh_apicv_exec_ctrl for avic
(which is a right thing to do anyway).
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210713142023.106183-4-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/csky/mm/Makefile')
0 files changed, 0 insertions, 0 deletions