Commit 82cb0ed6 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: selftests: Convert the Hyper-V extended hypercalls test to printf asserts

Convert x86's Hyper-V extended hypercalls test to use printf-based
GUEST_ASSERT_EQ().

Link: https://lore.kernel.org/r/20230729003643.1053367-22-seanjc@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 06b651d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -8,6 +8,7 @@
 * Copyright 2022 Google LLC
 * Copyright 2022 Google LLC
 * Author: Vipin Sharma <vipinsh@google.com>
 * Author: Vipin Sharma <vipinsh@google.com>
 */
 */
#define USE_GUEST_ASSERT_PRINTF 1


#include "kvm_util.h"
#include "kvm_util.h"
#include "processor.h"
#include "processor.h"
@@ -84,7 +85,7 @@ int main(void)


	switch (get_ucall(vcpu, &uc)) {
	switch (get_ucall(vcpu, &uc)) {
	case UCALL_ABORT:
	case UCALL_ABORT:
		REPORT_GUEST_ASSERT_2(uc, "arg1 = %ld, arg2 = %ld");
		REPORT_GUEST_ASSERT(uc);
		break;
		break;
	case UCALL_DONE:
	case UCALL_DONE:
		break;
		break;