Home
last modified time | relevance | path

Searched hist:f2c7ef3ba9556d62a7e2bb23b563c6510007d55c (Results 1 – 2 of 2) sorted by relevance

/linux/arch/x86/kvm/vmx/
H A Dnested.cdiff f2c7ef3ba9556d62a7e2bb23b563c6510007d55c Thu Jan 07 10:38:51 CET 2021 Maxim Levitsky <mlevitsk@redhat.com> KVM: nSVM: cancel KVM_REQ_GET_NESTED_STATE_PAGES on nested vmexit

It is possible to exit the nested guest mode, entered by
svm_set_nested_state prior to first vm entry to it (e.g due to pending event)
if the nested run was not pending during the migration.

In this case we must not switch to the nested msr permission bitmap.
Also add a warning to catch similar cases in the future.

Fixes: a7d5c7ce41ac1 ("KVM: nSVM: delay MSR permission processing to first nested VM run")

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210107093854.882483-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
/linux/arch/x86/kvm/
H A Dx86.cdiff f2c7ef3ba9556d62a7e2bb23b563c6510007d55c Thu Jan 07 10:38:51 CET 2021 Maxim Levitsky <mlevitsk@redhat.com> KVM: nSVM: cancel KVM_REQ_GET_NESTED_STATE_PAGES on nested vmexit

It is possible to exit the nested guest mode, entered by
svm_set_nested_state prior to first vm entry to it (e.g due to pending event)
if the nested run was not pending during the migration.

In this case we must not switch to the nested msr permission bitmap.
Also add a warning to catch similar cases in the future.

Fixes: a7d5c7ce41ac1 ("KVM: nSVM: delay MSR permission processing to first nested VM run")

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210107093854.882483-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>