]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "KVM: x86: work around leak of uninitialized stack contents"
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 5 Jun 2020 11:59:06 +0000 (13:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Jun 2020 11:59:42 +0000 (07:59 -0400)
commita899ace6115580bc0716e917179fc834e8ce34f8
treea34ad21c8acf7065f9ac26da987c9bcfbd23ac6a
parent882e8a06cc8b9ff4e0488aa1ed2cbc28007b95ca
Revert "KVM: x86: work around leak of uninitialized stack contents"

handle_vmptrst()/handle_vmread() stopped injecting #PF unconditionally
and switched to nested_vmx_handle_memory_failure() which just kills the
guest with KVM_EXIT_INTERNAL_ERROR in case of MMIO access, zeroing
'exception' in kvm_write_guest_virt_system() is not needed anymore.

This reverts commit 018652d1277083e3213026a882bb4117385a42db.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200605115906.532682-2-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c