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

Anish Moorthy amoorthy at google.com
Thu Nov 9 04:00:00 AEDT 2023


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);


More information about the Linuxppc-dev mailing list