> And then instead of creating the above bool, just do > + bool is_bsp_vcpu1 = bsp_vcpu = VCPU_ID1 That there are alwasy 2 vcpu inside, so we are picking one as BSP. ![]() The idea here was "run vm with this vcpu as BSP", implicitly assuming > I think the 'bsp' suffixes and prefixes make the purpose of this function > +static void run_vm_bsp(uint32_t bsp_vcpu) > + vcpu_set_cpuid(vm, vcpuid, kvm_get_supported_cpuid()) > + vm_vcpu_add_default(vm, vcpuid, guest_not_bsp_vcpu) > + vm_vcpu_add_default(vm, vcpuid, guest_bsp_vcpu) > +static void add_x86_vcpu(struct kvm_vm *vm, uint32_t vcpuid, bool bsp_code) > cover-letter needed submission), then it should go below the '-' under > This information should be in the cover-letter. ![]() > - test EBUSY when calling KVM_SET_BOOT_CPU_ID after vcpu ![]() > Check that it correctly allows to change the BSP vcpu. > Test for the KVM_SET_BOOT_CPU_ID ioctl. > On Thu, at 04:16:24PM +0100, Emanuele Giuseppe Esposito wrote: Vitaly Kuznetsov Re: selftests/kvm: add set_boot_cpu_id testÄate: Fri, 09:34:40 +0100 Re: selftests/kvm: add set_boot_cpu_id test - Emanuele Giuseppe Esposito KVM Archive on help / color / mirror / Atom feed From: Emanuele Giuseppe Esposito
0 Comments
Leave a Reply. |