<p dir="ltr"><br>
27 нояб. 2015 г. 14:15 пользователь "Martin Kletzander" <<a href="mailto:mkletzan@redhat.com">mkletzan@redhat.com</a>> написал:<br>
><br>
> On Fri, Nov 20, 2015 at 04:31:56PM +0100, Piotr Rybicki wrote:<br>
>><br>
>> Hi.<br>
>><br>
>> I would like to workaround a bug, when after live-migration of KVM<br>
>> guest, there is a 100% steal time shown in guest.<br>
>><br>
>> I've read, that disabling 'kvm_steal_time' feature should workarund<br>
>> this bug, but i can't find a way to disable it in libvirt's domain xml<br>
>> file.<br>
>><br>
><br>
> There is no support for that in libvirt.  Either we must addit ad a<br>
> feature (patches welcome), but if that's there just for a workaround,<br>
> I would suggest chasing the original bug.<br>
><br>
> If you just want to check that the workaround works, you could check<br>
> how the '-cpu ' parameter looks like when the domain is running and<br>
> then use the unsupported way of adding parameters to the qemu<br>
> commandline to specify the -cpu parameter again (qemu should use the<br>
> last one, so it should work), something like this:<br>
><br>
> <domain type='kvm' xmlns:qemu='<a href="http://libvirt.org/schemas/domain/qemu/1.0">http://libvirt.org/schemas/domain/qemu/1.0</a>'><br>
> ...<br>
>  <qemu:commandline><br>
>    <qemu:arg value='-cpu'/><br>
>    <qemu:arg value='${CPU_SPEC},-kvm_steal_time'/><br>
>  </qemu:commandline><br>
> </domain><br>
><br>
> where ${CPU_SPEC} is the next parameter after the '-cpu' one from the<br>
> command line, so for qemu command line similar to this:<br>
><br>
>  qemu-kvm ... -cpu Nehalem,+feat,something ...<br>
><br>
> the line in XML would be:<br>
><br>
>  <qemu:arg value='Nehalem,+feat,something,-kvm_steal_time'/><br>
><br>
> HTH,<br>
><br>
> Martin<br>
><br>
>> Tried in <cpu> section:<br>
>> <feature policy='disable' name='kvm_steal_time'/><br>
>> but that doesn't work.<br>
>><br>
>> Also, couldn't find any related information in libvirt documentation.<br>
>> Google helps neither.<br>
>><br>
>> How can I disable this feature?<br>
>><br>
>> Thanks in advance.<br>
>> Piotr Rybicki<br>
>><br>
>><br></p>
<p dir="ltr">Does it possible to calculate steal time for  vm if I have libvirt and domain stats?<br>
 _______________________________________________<br>
>> libvirt-users mailing list<br>
>> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
>> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
><br>
><br>
> _______________________________________________<br>
> libvirt-users mailing list<br>
> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
</p>