Skip to content

Commit f6f43a5

Browse files
committed
Merge tag 'kvm-x86-fixes-6.17-rcN' of https://github.com/kvm-x86/linux into HEAD
KVM x86 fix for 6.17-rcN Sync the vTPR from the local APIC to the VMCB even when AVIC is active, to fix a bug where host updates to the vTPR, e.g. via KVM_SET_LAPIC or emulation of a guest access, effectively get lost and result in interrupt delivery issues in the guest.
2 parents 7d86270 + d02e488 commit f6f43a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/kvm/svm/svm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4046,8 +4046,7 @@ static inline void sync_lapic_to_cr8(struct kvm_vcpu *vcpu)
40464046
struct vcpu_svm *svm = to_svm(vcpu);
40474047
u64 cr8;
40484048

4049-
if (nested_svm_virtualize_tpr(vcpu) ||
4050-
kvm_vcpu_apicv_active(vcpu))
4049+
if (nested_svm_virtualize_tpr(vcpu))
40514050
return;
40524051

40534052
cr8 = kvm_get_cr8(vcpu);

0 commit comments

Comments
 (0)