@@ -1910,6 +1910,11 @@ void test_override_guest(test_guest_func func)
init_vmcs_guest();
}
+void test_set_guest_finished(void)
+{
+ guest_finished = 1;
+}
+
static void check_for_guest_termination(union exit_reason exit_reason)
{
if (is_hypercall(exit_reason)) {
@@ -1058,5 +1058,6 @@ void test_set_guest(test_guest_func func);
void test_override_guest(test_guest_func func);
void test_add_teardown(test_teardown_func func, void *data);
void test_skip(const char *msg);
+void test_set_guest_finished(void);
#endif
Putting a vmcall() at the end of a nested test isn't always convenient to do, and isn't necessary. Add a helper to allow the nested test to make it possible to skip this requirement. Signed-off-by: Aaron Lewis <aaronlewis@google.com> --- x86/vmx.c | 5 +++++ x86/vmx.h | 1 + 2 files changed, 6 insertions(+)