selftests: kvm: add set_boot_cpu_id test
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Thu, 18 Mar 2021 15:16:24 +0000 (16:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Mar 2021 17:55:14 +0000 (13:55 -0400)
commit3df2252436c08028a549e27ed7f097974e21d17b
treedd65e8920ab2fd9b09f0a9eebac23d5eec1c91d9
parente2c12909ae5f5181d9e0b0c536e26c6877daec48
selftests: kvm: add set_boot_cpu_id test

Test for the KVM_SET_BOOT_CPU_ID ioctl.
Check that it correctly allows to change the BSP vcpu.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20210318151624.490861-2-eesposit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/set_boot_cpu_id.c [new file with mode: 0644]