]> git.proxmox.com Git - mirror_qemu.git/commit
target/i386: kvm: Add nested migration blocker only when kernel lacks required capabi...
authorLiran Alon <liran.alon@oracle.com>
Wed, 19 Jun 2019 16:21:40 +0000 (19:21 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Jun 2019 11:25:28 +0000 (13:25 +0200)
commit12604092e26cdace44c901bc429e7e4c7c3e0cab
tree3a8d40da683affc6572a414c99fc88f81dd07d55
parentfd13f23b8c95311eff74426921557eee592b0ed3
target/i386: kvm: Add nested migration blocker only when kernel lacks required capabilities

Previous commits have added support for migration of nested virtualization
workloads. This was done by utilising two new KVM capabilities:
KVM_CAP_NESTED_STATE and KVM_CAP_EXCEPTION_PAYLOAD. Both which are
required in order to correctly migrate such workloads.

Therefore, change code to add a migration blocker for vCPUs exposed with
Intel VMX or AMD SVM in case one of these kernel capabilities is
missing.

Signed-off-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Maran Wilson <maran.wilson@oracle.com>
Message-Id: <20190619162140.133674-11-liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c
target/i386/machine.c