Commit 7ce7f8e7 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: selftests: Rip out old, param-based guest assert macros

Drop the param-based guest assert macros and enable the printf versions
for all selftests.  Note!  This change can affect tests even if they
don't use directly use guest asserts!  E.g. via library code, or due to
the compiler making different optimization decisions.

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


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 4e15c38a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -19,8 +19,6 @@
 *
 * Copyright (c) 2021, Google LLC.
 */
#define USE_GUEST_ASSERT_PRINTF 1

#define _GNU_SOURCE

#include <stdlib.h>
+0 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
#define USE_GUEST_ASSERT_PRINTF 1

#include <test_util.h>
#include <kvm_util.h>
#include <processor.h>
+0 −2
Original line number Diff line number Diff line
@@ -8,8 +8,6 @@
 * hypercalls are properly masked or unmasked to the guest when disabled or
 * enabled from the KVM userspace, respectively.
 */
#define USE_GUEST_ASSERT_PRINTF 1

#include <errno.h>
#include <linux/arm-smccc.h>
#include <asm/kvm.h>
+0 −2
Original line number Diff line number Diff line
@@ -7,8 +7,6 @@
 * hugetlbfs with a hole). It checks that the expected handling method is
 * called (e.g., uffd faults with the right address and write/read flag).
 */
#define USE_GUEST_ASSERT_PRINTF 1

#define _GNU_SOURCE
#include <linux/bitmap.h>
#include <fcntl.h>
+0 −2
Original line number Diff line number Diff line
@@ -7,8 +7,6 @@
 * host to inject a specific intid via a GUEST_SYNC call, and then checks that
 * it received it.
 */
#define USE_GUEST_ASSERT_PRINTF 1

#include <asm/kvm.h>
#include <asm/kvm_para.h>
#include <sys/eventfd.h>
Loading