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(-) -- 1.8.3.1