Re: [PATCH v2 2/2] selftests/kvm: add set_boot_cpu_id test

2021-03-19 Thread Andrew Jones
On Fri, Mar 19, 2021 at 09:34:40AM +0100, Emanuele Giuseppe Esposito wrote: > On 18/03/2021 17:20, Andrew Jones wrote: > > On Thu, Mar 18, 2021 at 04:16:24PM +0100, Emanuele Giuseppe Esposito wrote: > > > +static void run_vm_bsp(uint32_t bsp_vcpu) > > > > I think the 'bsp' suffixes and prefixes

Re: [PATCH v2 2/2] selftests/kvm: add set_boot_cpu_id test

2021-03-19 Thread Emanuele Giuseppe Esposito
On 18/03/2021 17:20, Andrew Jones wrote: On Thu, Mar 18, 2021 at 04:16:24PM +0100, Emanuele Giuseppe Esposito wrote: Test for the KVM_SET_BOOT_CPU_ID ioctl. Check that it correctly allows to change the BSP vcpu. v1 -> v2: - remove unnecessary printf - move stage for loop inside run_vcpu -

Re: [PATCH v2 2/2] selftests/kvm: add set_boot_cpu_id test

2021-03-18 Thread Andrew Jones
On Thu, Mar 18, 2021 at 04:16:24PM +0100, Emanuele Giuseppe Esposito wrote: > Test for the KVM_SET_BOOT_CPU_ID ioctl. > Check that it correctly allows to change the BSP vcpu. > > v1 -> v2: > - remove unnecessary printf > - move stage for loop inside run_vcpu > - test EBUSY when calling

[PATCH v2 2/2] selftests/kvm: add set_boot_cpu_id test

2021-03-18 Thread Emanuele Giuseppe Esposito
Test for the KVM_SET_BOOT_CPU_ID ioctl. Check that it correctly allows to change the BSP vcpu. v1 -> v2: - remove unnecessary printf - move stage for loop inside run_vcpu - test EBUSY when calling KVM_SET_BOOT_CPU_ID after vcpu creation and execution - introduce _vm_ioctl Signed-off-by: