Skip to content

Add TCG & KVM support for MSR_CORE_THREAD_COUNT

Alexander Graf kvm qemu-devel 1 version Applied

Status from this message: Queued, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86: Implement MSR_CORE_THREAD_COUNT MSRtarget/i386/tcg/sysemu/misc_helper.c+5 -00 replies
2/3i386: kvm: Add support for MSR filteringtarget/i386/kvm/kvm.c target/i386/kvm/kvm_i386.h+135 -00 replies
3/3KVM: x86: Implement MSR_CORE_THREAD_COUNT MSRtarget/i386/kvm/kvm.c+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Add TCG & KVM support for MSR_CORE_THREAD_COUNT

Commit 027ac0cb516 ("target/i386/hvf: add rdmsr 35H MSR_CORE_THREAD_COUNT") added support for the MSR_CORE_THREAD_COUNT MSR to HVF. This MSR is mandatory to execute macOS when run with -cpu host,+hypervisor.

This patch set adds support for the very same MSR to TCG as well as KVM - as long as host KVM is recent enough to support MSR trapping.

With this support added, I can successfully execute macOS guests in KVM with an APFS enabled OVMF build, a valid applesmc plus OSK and

-cpu Skylake-Client,+invtsc,+hypervisor

Alex

Alexander Graf (3):
x86: Implement MSR_CORE_THREAD_COUNT MSR
i386: kvm: Add support for MSR filtering
KVM: x86: Implement MSR_CORE_THREAD_COUNT MSR

 target/i386/kvm/kvm.c                | 145 +++++++++++++++++++++++++++
 target/i386/kvm/kvm_i386.h           |  11 ++
 target/i386/tcg/sysemu/misc_helper.c |   5 +
 3 files changed, 161 insertions(+)
Signature · 1 line
2.37.0 (Apple Git-136)