Skip to content

target/i386: early MSR initialization + pass down host microcode revision for "-cpu host"

Paolo Bonzini qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target/i386: kvm: initialize feature MSRs very earlytarget/i386/kvm.c target/i386/kvm_i386.h+49 -330 replies
2/3target/i386: add a ucode-rev propertytarget/i386/cpu.c target/i386/cpu.h target/i386/hvf/x86_emu.c +1 more+18 -30 replies
3/3target/i386: kvm: initialize microcode revision from KVMtarget/i386/cpu.c target/i386/kvm.c+9 -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] target/i386: early MSR initialization + pass down host microcode revision for "-cpu host"

As part of this, patch 1 moves feature MSR initialization to kvm_arch_init_vcpu, which also fixes a problem related to the ordering of kvm_put_msrs and kvm_put_nested_state. Patch 2 adds a customizable ucode-rev property that is supported by both TCG and HVF. Finally patch 3 adds the KVM support, including getting the host version via KVM_GET_MSRS and passing it back to the guest for "-cpu host" only.

Paolo Bonzini (3):
target/i386: kvm: initialize feature MSRs very early target/i386: add a ucode-rev property target/i386: kvm: initialize microcode revision from KVM

 target/i386/cpu.c         | 14 ++++++++
 target/i386/cpu.h         |  3 ++
 target/i386/hvf/x86_emu.c |  4 +--
 target/i386/kvm.c         | 86 +++++++++++++++++++++++++++++------------------
 target/i386/kvm_i386.h    |  1 +
 target/i386/misc_helper.c |  4 +++
 6 files changed, 76 insertions(+), 36 deletions(-)
Signature · 1 line
1.8.3.1