Re: Is seems necessary to pass "migratable=no/yes" to qemu.

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

 



On 09/25/2014 04:31 AM, zhang bo wrote:
> On 2014/9/24 19:49, Ján Tomko wrote:
>> I think the simplest fix for host-passthrough would be to apply the same
>> filter host-model has.
>>
>> But since using invtsc with host-passthrough requires both +invtsc and
>> migratable=no, so we'd need to either add a 'migratable' option to
>> host-passthrough (this would skip the filter and add migratable=on), or allow
>> fine-tuning the features for host-passthrough too.
>>
>> Jan
>>
> 
>    Additional to the 2 suggestions, will that be OK to remove the codes in qemuProcessVerifyGuestCPU that checks whether the vm->def has
>    invtsc flag while qemu doesn't?
> 
> -             if (STREQ(feature->name, "invtsc") &&
> -                 !cpuHasFeature(guestcpu, feature->name)) {
> -                 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
> -                                _("host doesn't support invariant TSC"));
> -                 goto cleanup;
> -             }

Without this check, the feature would be quietly discarded by QEMU if the host
kernel or host CPU does not support this feature.

I think it's better to leave "invtsc" out when we're generating the cpu
definition for host-passthrough, as we do for host-model.

Jan

> 
>    Removing these codes, plus with the solution that "add 'migratable' option to host-passthrough", it seems the problem would
>    be gone, and invtsc would not be so 'distinctive' in libvirt any more.
> 
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list
> 


Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]