diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-11 15:41:48 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-19 18:02:22 +0200 |
commit | 1e44f3ab71fb4291d266a264f7c207ae5c6d59b2 (patch) | |
tree | 2ad8b18748abac7f148f05b6faa01d46d322c692 /include/chardev/spice.h | |
parent | 79a197ab180e75838523c58973b1221ad7bf51eb (diff) |
target/i386: skip KVM_GET/SET_NESTED_STATE if VMX disabled, or for SVM
Do not allocate env->nested_state unless we later need to migrate the
nested virtualization state.
With this change, nested_state_needed() will return false if the
VMX flag is not included in the virtual machine. KVM_GET/SET_NESTED_STATE
is also disabled for SVM which is safer (we know that at least the NPT
root and paging mode have to be saved/loaded), and thus the corresponding
subsection can go away as well.
Inspired by a patch from Liran Alon.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/chardev/spice.h')
0 files changed, 0 insertions, 0 deletions