aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-12-20 15:34:27 +0000
committerPaolo Bonzini <[email protected]>2022-12-23 12:15:25 -0500
commit77b1908e10eccf34310ffd95b0b455c01aa76286 (patch)
tree025e2b93563d578c91a3bbed9ff034ee97fffc8f /scripts/generate_rust_analyzer.py
parent3c649918b764c0aaef22ea65d514bac5e2324ec0 (diff)
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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions