target/i386: Added consistency checks for event injection
commiteceb4f01123355a7045ec4ba9cd547511682a4d9
authorLara Lazier <laramglazier@gmail.com>
Sun, 25 Jul 2021 09:08:55 +0000 (25 11:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jul 2021 08:15:52 +0000 (29 10:15 +0200)
treefc8629ffbea81f7dbffff78f248752b24ce38d33
parent5b945f23d651a71aa722cc6af84a480d41bc549a
target/i386: Added consistency checks for event injection

VMRUN exits with SVM_EXIT_ERR if either:
 * The event injected has a reserved type.
 * When the event injected is of type 3 (exception), and the vector that
 has been specified does not correspond to an exception.

This does not fix the entire exc_inj test in kvm-unit-tests.

Signed-off-by: Lara Lazier <laramglazier@gmail.com>
Message-Id: <20210725090855.19713-1-laramglazier@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/sysemu/svm_helper.c