Skip to content

KVM: x86: Hyper-V SEND_IPI fix and partial testcase

Sean Christopherson kvm lkml 2 versions – Applied

Status from this message: Applied to kvm-x86 fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesApplied
  2. v15 patches 6 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: x86: Reject Hyper-V's SEND_IPI hypercalls if local APIC isn't in-kernelarch/x86/kvm/hyperv.c+5 -10 replies
2/4KVM: selftests: Mark test_hv_cpuid_e2big() static in Hyper-V CPUID testtools/testing/selftests/kvm/x86_64/hyperv_cpuid.c+1 -10 replies
3/4KVM: selftests: Manage CPUID array in Hyper-V CPUID test's core helpertools/testing/selftests/kvm/x86_64/hyperv_cpuid.c+17 -131 reply
4/4KVM: selftests: Add CPUID tests for Hyper-V features that need in-kernel APICtools/testing/selftests/kvm/x86_64/hyperv_cpuid.c+14 -13 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchVitaly Kuznetsov
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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/4] KVM: x86: Hyper-V SEND_IPI fix and partial testcase

Fix a NULL pointer deref due to exposing Hyper-V enlightments to a guest without an in-kernel local APIC (found by syzkaller, highly unlikely to affect any "real" VMMs). Expand the Hyper-V CPUID test to verify that KVM doesn't incorrectly advertise support.

v2
- Fix the stable@ email. Hilariously, I was _this_ close to sending this with [email protected]@kernel.org instead of [email protected], *after* I wrote this exact blurb about fat-fingering the email a second time. Thankfully, git send-email told me I was being stupid :-)
- Don't free the system-scoped CPUID entries object. [Vitaly]
- Collect reviews. [Vitaly]

v1: https://lore.kernel.org/all/[email protected]

Sean Christopherson (4):
KVM: x86: Reject Hyper-V's SEND_IPI hypercalls if local APIC isn't
in-kernel
KVM: selftests: Mark test_hv_cpuid_e2big() static in Hyper-V CPUID
test
KVM: selftests: Manage CPUID array in Hyper-V CPUID test's core helper
KVM: selftests: Add CPUID tests for Hyper-V features that need
in-kernel APIC

 arch/x86/kvm/hyperv.c                         |  6 ++-
 .../selftests/kvm/x86_64/hyperv_cpuid.c       | 47 +++++++++++++------
 2 files changed, 37 insertions(+), 16 deletions(-)

base-commit: a5546c2f0dc4f84727a4bb8a91633917929735f5

Signature · 1 line
2.48.0.rc2.279.g1de40edade-goog