Re: [PATCH 27/34] KVM: selftests: Introduce VM "shape" to allow tests to specify the VM type

From: Anish Moorthy
Date: Wed Nov 08 2023 - 12:00:47 EST


This commit breaks the arm64 selftests build btw: looks like a simple oversight?

$ cd ${LINUX_ROOT}/tools/testing/selftests/kvm
$ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make
# ...
aarch64/page_fault_test.c: In function ‘run_test’:
aarch64/page_fault_test.c:708:28: error: incompatible type for
argument 1 of ‘____vm_create’
708 | vm = ____vm_create(mode);
| ^~~~
| |
| enum vm_guest_mode
In file included from include/kvm_util.h:10,
from aarch64/page_fault_test.c:14:
include/kvm_util_base.h:806:46: note: expected ‘struct vm_shape’ but
argument is of type ‘enum vm_guest_mode’
806 | struct kvm_vm *____vm_create(struct vm_shape shape);