This series is a part of the previously sent "[PATCH RFC v3 00/23] i386: KVM: expand Hyper-V features early": https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg02443.html
We're not ready to merge the full patch set yet because the required KVM capability is only queued for 5.11. We can, however, extract the part providing 'hyperv=on' option to x86 machine types which is valuable on its own. Picking up four other patches from the original RFC to minimize the code churn in future (x86_cpu_realizefn()). Changes since RFCv3: - Rename 'hyperv_features' to 'default_hyperv_features' in X86MachineClass [Eduardo] - Move x86_cpu_hyperv_realize() invocation after x86_cpu_expand_features()/ x86_cpu_filter_features() as we need to reference cpu_has_vmx(). Vitaly Kuznetsov (5): i386: move hyperv_vendor_id initialization to x86_cpu_realizefn() i386: move hyperv_interface_id initialization to x86_cpu_realizefn() i386: move hyperv_version_id initialization to x86_cpu_realizefn() i386: move hyperv_limits initialization to x86_cpu_realizefn() i386: provide simple 'hyperv=on' option to x86 machine types docs/hyperv.txt | 8 +++++ hw/i386/x86.c | 30 +++++++++++++++++++ include/hw/i386/x86.h | 7 +++++ target/i386/cpu.c | 52 +++++++++++++++++++++++++++++++- target/i386/cpu.h | 6 +++- target/i386/kvm.c | 70 ++++++++++++++++++++++++++++--------------- 6 files changed, 147 insertions(+), 26 deletions(-) -- 2.26.2
