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)
commit25597f64c2f6fffa367d1e6ff4f62b9a751f9051
treea34ad21c8acf7065f9ac26da987c9bcfbd23ac6a
parent7a35e515a7055f483f87d12041c41db11b36c9ee
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 541ab2aeb28251bf7135c7961f3a6080eebcc705.

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