diff options
| author | Sean Christopherson <[email protected]> | 2024-03-14 23:26:20 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-04-29 19:54:13 +0000 |
| commit | 2b7deea3ec7c81a92d4c17751d3bcd780d065ae4 (patch) | |
| tree | 1b2c38943387906850c0ff0f52d53f046b5a6e5a /tools/testing/selftests/kvm/kvm_page_table_test.c | |
| parent | KVM: selftests: Randomly force emulation on x86 writes from guest code (diff) | |
| download | kernel-2b7deea3ec7c81a92d4c17751d3bcd780d065ae4.tar.gz kernel-2b7deea3ec7c81a92d4c17751d3bcd780d065ae4.zip | |
Revert "kvm: selftests: move base kvm_util.h declarations to kvm_util_base.h"
Effectively revert the movement of code from kvm_util.h => kvm_util_base.h,
as the TL;DR of the justification for the move was to avoid #idefs and/or
circular dependencies between what ended up being ucall_common.h and what
was (and now again, is), kvm_util.h.
But avoiding #ifdef and circular includes is trivial: don't do that. The
cost of removing kvm_util_base.h is a few extra includes of ucall_common.h,
but that cost is practically nothing. On the other hand, having a "base"
version of a header that is really just the header itself is confusing,
and makes it weird/hard to choose names for headers that actually are
"base" headers, e.g. to hold core KVM selftests typedefs.
For all intents and purposes, this reverts commit
7d9a662ed9f0403e7b94940dceb81552b8edb931.
Reviewed-by: Ackerley Tng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/kvm_page_table_test.c')
| -rw-r--r-- | tools/testing/selftests/kvm/kvm_page_table_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/kvm_page_table_test.c b/tools/testing/selftests/kvm/kvm_page_table_test.c index 7759c685086b..dd8b12f626d3 100644 --- a/tools/testing/selftests/kvm/kvm_page_table_test.c +++ b/tools/testing/selftests/kvm/kvm_page_table_test.c @@ -18,6 +18,7 @@ #include "kvm_util.h" #include "processor.h" #include "guest_modes.h" +#include "ucall_common.h" #define TEST_MEM_SLOT_INDEX 1 |
