Skip to content

KVM: SVM: Fix missing LAPIC TPR sync into VMCB::V_TPR with AVIC on

Maciej S. Szmigiero kvm lkml 2 versions – Applied

Status from this message: Applied patch 1 to kvm-x86 fixes (will get a PULL request sent out shortly).

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied
  2. v12 patches 9 repliesSuperseded

Changes in v2 from the cover letter

Fix this issue by doing unconditional LAPIC -> V_TPR sync at each VMRUN rather than by just patching the KVM_SET_LAPIC ioctl() code path (and similar ones).

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: SVM: Sync TPR from LAPIC into VMCB::V_TPR even if AVIC is activearch/x86/kvm/svm/svm.c+1 -21 reply
2/2KVM: selftests: Test TPR / CR8 sync and interrupt maskingtools/testing/selftests/kvm/include/x86/apic.h tools/testing/selftests/kvm/x86/xapic_state_test.c+267 -32 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchNaveen N Rao (AMD)
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: SVM: Fix missing LAPIC TPR sync into VMCB::V_TPR with AVIC on

From: "Maciej S. Szmigiero" <[email protected]>

This is an updated v2 patch series of the v1 series located at:
https://lore.kernel.org/kvm/[email protected]/

Changes from v1:
Fix this issue by doing unconditional LAPIC -> V_TPR sync at each VMRUN rather than by just patching the KVM_SET_LAPIC ioctl() code path (and similar ones).

Maciej S. Szmigiero (2):
KVM: SVM: Sync TPR from LAPIC into VMCB::V_TPR even if AVIC is active
KVM: selftests: Test TPR / CR8 sync and interrupt masking

 arch/x86/kvm/svm/svm.c                        |   3 +-
 .../testing/selftests/kvm/include/x86/apic.h  |   5 +
 .../selftests/kvm/x86/xapic_state_test.c      | 265 +++++++++++++++++-
 3 files changed, 268 insertions(+), 5 deletions(-)