diff options
author | 2022-12-20 15:34:27 +0000 | |
---|---|---|
committer | 2022-12-23 12:15:25 -0500 | |
commit | 77b1908e10eccf34310ffd95b0b455c01aa76286 (patch) | |
tree | 025e2b93563d578c91a3bbed9ff034ee97fffc8f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | KVM: x86: Simplify kvm_apic_hw_enabled (diff) | |
download | wireguard-linux-77b1908e10eccf34310ffd95b0b455c01aa76286.tar.xz wireguard-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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions