]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Open code vcpu_run() equivalent in guest_printf test
authorSean Christopherson <seanjc@google.com>
Fri, 19 Jul 2024 23:51:01 +0000 (16:51 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 29 Aug 2024 23:25:06 +0000 (16:25 -0700)
commitd1c2cdca5a08f422b791670c11f9d4e3ed0a5518
tree66cc37f6c3a6a54cafa7e2a296b5b9eeacbb572c
parent73b42dc69be8564d4951a14d00f827929fe5ef79
KVM: selftests: Open code vcpu_run() equivalent in guest_printf test

Open code a version of vcpu_run() in the guest_printf test in anticipation
of adding UCALL_ABORT handling to _vcpu_run().  The guest_printf test
intentionally generates asserts to verify the output, and thus needs to
bypass common assert handling.

Open code a helper in the guest_printf test, as it's not expected that any
other test would want to skip _only_ the UCALL_ABORT handling.

Link: https://lore.kernel.org/r/20240719235107.3023592-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/guest_print_test.c