summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/s390x
diff options
context:
space:
mode:
authorAaron Lewis <aaronlewis@google.com>2020-10-12 12:47:15 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-11-08 06:02:15 -0500
commit29faeb9632012d6c3fa4aa33c3d589b9ff18b206 (patch)
tree252ab691b354955ae26996659d313ce31fb888c4 /tools/testing/selftests/kvm/lib/s390x
parent85f2a4320ef27ce74b9da0631460561028c48756 (diff)
selftests: kvm: Add exception handling to selftests
Add the infrastructure needed to enable exception handling in selftests. This allows any of the exception and interrupt vectors to be overridden in the guest. Signed-off-by: Aaron Lewis <aaronlewis@google.com> Reviewed-by: Alexander Graf <graf@amazon.com> Message-Id: <20201012194716.3950330-4-aaronlewis@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/s390x')
-rw-r--r--tools/testing/selftests/kvm/lib/s390x/processor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/lib/s390x/processor.c b/tools/testing/selftests/kvm/lib/s390x/processor.c
index a88c5d665725..7349bb2e1a24 100644
--- a/tools/testing/selftests/kvm/lib/s390x/processor.c
+++ b/tools/testing/selftests/kvm/lib/s390x/processor.c
@@ -241,3 +241,7 @@ void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid, uint8_t indent)
fprintf(stream, "%*spstate: psw: 0x%.16llx:0x%.16llx\n",
indent, "", vcpu->state->psw_mask, vcpu->state->psw_addr);
}
+
+void assert_on_unhandled_exception(struct kvm_vm *vm, uint32_t vcpuid)
+{
+}