]> git.proxmox.com Git - mirror_qemu.git/commit
i386/kvm: implement 'hv-passthrough' mode
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 17 May 2019 14:19:20 +0000 (16:19 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Jun 2019 00:29:38 +0000 (02:29 +0200)
commite48ddcc6ce13323087133f5922f8eb2fe516817b
tree95ec7889bab11bbfba0aefef2cebed488b814bdb
parentfb19f72b774ce47cd26955ad61547bc3f7f02626
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>
docs/hyperv.txt
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm.c