]> Git Repo - qemu.git/commit - target/i386/machine.c
target/i386: kvm: Fix when nested state is needed for migration
authorLiran Alon <[email protected]>
Mon, 24 Jun 2019 23:05:14 +0000 (02:05 +0300)
committerPaolo Bonzini <[email protected]>
Fri, 5 Jul 2019 20:16:46 +0000 (22:16 +0200)
commitec7b1bbd2c470d8766b61617bd4d8ba46aa2056b
treeb8e7dc9ba060ab648bade0fe95e4ab6e5a422f94
parent6b7ac49d570c66754fad1b80cc200c7596d1facd
target/i386: kvm: Fix when nested state is needed for migration

When vCPU is in VMX operation and enters SMM mode,
it temporarily exits VMX operation but KVM maintained nested-state
still stores the VMXON region physical address, i.e. even when the
vCPU is in SMM mode then (nested_state->hdr.vmx.vmxon_pa != -1ull).

Therefore, there is no need to explicitly check for
KVM_STATE_NESTED_SMM_VMXON to determine if it is necessary
to save nested-state as part of migration stream.

Reviewed-by: Karl Heubaum <[email protected]>
Signed-off-by: Liran Alon <[email protected]>
Message-Id: <20190624230514[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
target/i386/machine.c
This page took 0.022025 seconds and 4 git commands to generate.