aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/lib/test_modules_helpers.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-02-27 18:41:32 -0800
committerPaolo Bonzini <[email protected]>2024-05-07 11:59:16 -0400
commitd0bf8e6e440aef6a4fb7ef05671390529f447bb8 (patch)
tree9f600f18fd3b0d83672967ccb04c529b2f758339 /arch/s390/lib/test_modules_helpers.c
parenta96cb3bf390eebfead5fc7a2092f8452a7997d1b (diff)
KVM: x86/mmu: Exit to userspace with -EFAULT if private fault hits emulation
Exit to userspace with -EFAULT / KVM_EXIT_MEMORY_FAULT if a private fault triggers emulation of any kind, as KVM doesn't currently support emulating access to guest private memory. Practically speaking, private faults and emulation are already mutually exclusive, but there are many flow that can result in KVM returning RET_PF_EMULATE, and adding one last check to harden against weird, unexpected combinations and/or KVM bugs is inexpensive. Suggested-by: Yan Zhao <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'arch/s390/lib/test_modules_helpers.c')
0 files changed, 0 insertions, 0 deletions