Re: [PATCH] KVM: VMX: check flexpriority module param when setting virt apic mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/10/2018 20:39, Sean Christopherson wrote:
>>> -       if (!cpu_has_vmx_flexpriority() &&
>>> +       if (!flexpriority_enabled &&
>>>             !cpu_has_vmx_virtualize_x2apic_mode())
>>>                 return;
>> I think it would be better if cpu_has_vmx_flexpriority() returned
>> false when flexpriority_enabled is false.
> Ha, I had that all coded up but decided against it because the
> convention used by other module params is to not adjust cpu_has_*().

Yeah, for now let's stick to the minimum.  It's a common idiom to adjust
the variable instead of the cpu_has_*() because then the processor
capabilities show up in /sys/kernel/module/kvm_intel/parameters.  It
requires more care but it's also more user friendly.

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux