diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-04-23 11:32:08 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-04-23 11:32:08 -0400 |
commit | 8634a26634c20d724d06a3e6717e44efb4915413 (patch) | |
tree | 6dcf4b8cd783927805e8eed2047f2170c2e8aa6f | |
parent | 47be871da0d5d079181b8e52bf8fdd5b44e98696 (diff) | |
download | kvm-unit-tests-8634a26634c20d724d06a3e6717e44efb4915413.tar.gz |
x86: svm: call default_prepare from exc_inject_prepare
Otherwise, the exc_inject fails if passed first on the command line.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | x86/svm_tests.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/x86/svm_tests.c b/x86/svm_tests.c index 5a571eb..c2725af 100644 --- a/x86/svm_tests.c +++ b/x86/svm_tests.c @@ -1528,8 +1528,9 @@ static void my_isr(struct ex_regs *r) static void exc_inject_prepare(struct svm_test *test) { - handle_exception(DE_VECTOR, my_isr); - handle_exception(NMI_VECTOR, my_isr); + default_prepare(test); + handle_exception(DE_VECTOR, my_isr); + handle_exception(NMI_VECTOR, my_isr); } |