diff options
| author | Sean Christopherson <[email protected]> | 2024-11-28 00:55:35 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-12-18 22:14:54 +0000 |
| commit | d6533c15133867cd3032bcab7f839ae5d53d0e70 (patch) | |
| tree | 7ee6c01baa3bb56d3b23360f83427ee282ff9b7f /tools/testing/selftests/kvm/x86/nested_exceptions_test.c | |
| parent | KVM: selftests: Assert that vcpu_{g,s}et_reg() won't truncate (diff) | |
| download | kernel-d6533c15133867cd3032bcab7f839ae5d53d0e70.tar.gz kernel-d6533c15133867cd3032bcab7f839ae5d53d0e70.zip | |
KVM: selftests: Check for a potential unhandled exception iff KVM_RUN succeeded
Don't check for an unhandled exception if KVM_RUN failed, e.g. if it
returned errno=EFAULT, as reporting unhandled exceptions is done via a
ucall, i.e. requires KVM_RUN to exit cleanly. Theoretically, checking
for a ucall on a failed KVM_RUN could get a false positive, e.g. if there
were stale data in vcpu->run from a previous exit.
Reviewed-by: James Houghton <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions
