diff options
author | Sean Christopherson <seanjc@google.com> | 2022-12-20 16:34:27 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-23 18:15:25 +0100 |
commit | 77b1908e10eccf34310ffd95b0b455c01aa76286 (patch) | |
tree | 025e2b93563d578c91a3bbed9ff034ee97fffc8f /init | |
parent | KVM: x86: Simplify kvm_apic_hw_enabled (diff) | |
download | linux-77b1908e10eccf34310ffd95b0b455c01aa76286.tar.xz linux-77b1908e10eccf34310ffd95b0b455c01aa76286.zip |
KVM: x86: Sanity check inputs to kvm_handle_memory_failure()
Add a sanity check in kvm_handle_memory_failure() to assert that a valid
x86_exception structure is provided if the memory "failure" wants to
propagate a fault into the guest. If a memory failure happens during a
direct guest physical memory access, e.g. for nested VMX, KVM hardcodes
the failure to X86EMUL_IO_NEEDED and doesn't provide an exception pointer
(because the exception struct would just be filled with garbage).
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221220153427.514032-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions