mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
i386/kvm: implement 'hv-passthrough' mode
In many case we just want to give Windows guests all currently supported Hyper-V enlightenments and that's where this new mode may come handy. We pass through what was returned by KVM_GET_SUPPORTED_HV_CPUID. hv_cpuid_check_and_set() is modified to also set cpu->hyperv_* flags as we may want to check them later (and we actually do for hv_runtime, hv_synic,...). 'hv-passthrough' is a development only feature, a migration blocker is added to prevent issues while migrating between hosts with different feature sets. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Message-Id: <20190517141924.19024-6-vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
fb19f72b77
commit
e48ddcc6ce
4 changed files with 87 additions and 14 deletions
|
@ -5883,6 +5883,7 @@ static Property x86_cpu_properties[] = {
|
|||
HYPERV_FEAT_EVMCS, 0),
|
||||
DEFINE_PROP_BIT64("hv-ipi", X86CPU, hyperv_features,
|
||||
HYPERV_FEAT_IPI, 0),
|
||||
DEFINE_PROP_BOOL("hv-passthrough", X86CPU, hyperv_passthrough, false),
|
||||
|
||||
DEFINE_PROP_BOOL("check", X86CPU, check_cpuid, true),
|
||||
DEFINE_PROP_BOOL("enforce", X86CPU, enforce_cpuid, false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue