Re: PATCH: setup_vmcs_config: disable TSC scaling on unlike processors

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

 



2016-12-06 10:09+0100, Paolo Bonzini:
> On 06/12/2016 09:49, David Hildenbrand wrote:
>>>>
>>>> I feel a better solution is to mask off this capability on the one
>>>> processor.
>>>
>>> I like the global toggle better -- it is less code with more uses.
>> 
>> (not having much insight) what speaks against allowing such features
>> only if available on all CPUs symmetrically? I actually prefer having an
>> automatism to some magic toggle.
> 
> I agree with David.  Just warn and proceed with the minimum common set
> of features.

Yes, that is reasonable -- I though David wanted to use the feature when
running on CPUs that support it (only mask off on the one).

I'd start with changing the check in vmx_check_processor_compat() to
ignore disabled features and then extend KVM to enable only the common
set.

Finding the minimal set of common features is complicated by hotplug ...
I think that the check we have is not working perfectly, so if you
currently

 1) offline all cores on the worse CPU
 2) load kvm module
 3) online all CPUs

then KVM is going enable tsc-scaling and not complain, but guests
running on onlined CPUs are not going to work.
Can you confirm that?

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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