]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: cleanup freeing of nested state
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Jan 2019 18:12:35 +0000 (19:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:27 +0000 (22:48 +0100)
commit34beb9798711cfbe8187bd51ca82c2d6c956be22
tree8febd9274be811ddf54782464a6129a3fa238485
parent15670f70246d7e8802f86a89d5ccf31a6e08806c
KVM: x86: cleanup freeing of nested state

Ensure that the VCPU free path goes through vmx_leave_nested and
thus nested_vmx_vmexit, so that the cancellation of the timer does
not have to be in free_nested.  In addition, because some paths through
nested_vmx_vmexit do not go through sync_vmcs12, the cancellation of
the timer is moved there.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c