diff options
| author | Thomas Zimmermann <[email protected]> | 2023-10-11 09:50:59 +0200 | 
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2023-10-11 09:50:59 +0200 | 
| commit | 57390019b68b83f96eb98f490367b9df1f2d77cb (patch) | |
| tree | e6d4b6c75efdd2d7fb7d37f980688c491be3ff6a /tools/testing/selftests/kvm/x86_64/nested_exceptions_test.c | |
| parent | e5f9d543419c78ac58f3b3557bc5a76b20ff600b (diff) | |
| parent | 389af786f92ecdff35883551d54bf4e507ffcccb (diff) | |
Merge drm/drm-next into drm-misc-next
Updating drm-misc-next to the state of Linux v6.6-rc2.
Signed-off-by: Thomas Zimmermann <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/x86_64/nested_exceptions_test.c')
| -rw-r--r-- | tools/testing/selftests/kvm/x86_64/nested_exceptions_test.c | 16 | 
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/nested_exceptions_test.c b/tools/testing/selftests/kvm/x86_64/nested_exceptions_test.c index 6502aa23c2f8..3670331adf21 100644 --- a/tools/testing/selftests/kvm/x86_64/nested_exceptions_test.c +++ b/tools/testing/selftests/kvm/x86_64/nested_exceptions_test.c @@ -180,9 +180,7 @@ static void assert_ucall_vector(struct kvm_vcpu *vcpu, int vector)  			    "Expected L2 to ask for %d, L2 says it's done", vector);  		break;  	case UCALL_ABORT: -		TEST_FAIL("%s at %s:%ld (0x%lx != 0x%lx)", -			  (const char *)uc.args[0], __FILE__, uc.args[1], -			  uc.args[2], uc.args[3]); +		REPORT_GUEST_ASSERT(uc);  		break;  	default:  		TEST_FAIL("Expected L2 to ask for %d, got unexpected ucall %lu", vector, uc.cmd); @@ -247,12 +245,12 @@ int main(int argc, char *argv[])  	/* Verify the pending events comes back out the same as it went in. */  	vcpu_events_get(vcpu, &events); -	ASSERT_EQ(events.flags & KVM_VCPUEVENT_VALID_PAYLOAD, -		  KVM_VCPUEVENT_VALID_PAYLOAD); -	ASSERT_EQ(events.exception.pending, true); -	ASSERT_EQ(events.exception.nr, SS_VECTOR); -	ASSERT_EQ(events.exception.has_error_code, true); -	ASSERT_EQ(events.exception.error_code, SS_ERROR_CODE); +	TEST_ASSERT_EQ(events.flags & KVM_VCPUEVENT_VALID_PAYLOAD, +			KVM_VCPUEVENT_VALID_PAYLOAD); +	TEST_ASSERT_EQ(events.exception.pending, true); +	TEST_ASSERT_EQ(events.exception.nr, SS_VECTOR); +	TEST_ASSERT_EQ(events.exception.has_error_code, true); +	TEST_ASSERT_EQ(events.exception.error_code, SS_ERROR_CODE);  	/*  	 * Run for real with the pending #SS, L1 should get a VM-Exit due to  |