Messages in this thread | | | Date | Mon, 20 Dec 2021 14:19:57 +0100 | Subject | Re: [PATCH v2 19/23] kvm: selftests: Add support for KVM_CAP_XSAVE2 | From | Paolo Bonzini <> |
| |
On 12/17/21 16:29, Jing Liu wrote: > @@ -370,6 +397,10 @@ struct kvm_vm *vm_create_with_vcpus(enum vm_guest_mode mode, uint32_t nr_vcpus, > #ifdef __x86_64__ > vm_create_irqchip(vm); > #endif > + /* > + * Permission needs to be requested before KVM_SET_CPUID2. > + */ > + vm_xsave_req_perm(); > > for (i = 0; i < nr_vcpus; ++i) { > uint32_t vcpuid = vcpuids ? vcpuids[i] : i;
I don't think it's necessary to enable this unconditionally?
Paolo
| |