<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 3:52 PM, Nicolas Sebrecht <span dir="ltr"><<a href="mailto:nsebrecht@piing.fr" target="_blank">nsebrecht@piing.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">The 03/12/13, lei yang wrote:<br>
>    Hi experts<br>
><br>
>    I want to use libvirt doing the migration<br>
<br>
</div>Basically, migration allows moving a VM from host to another.<br>
<div class="im"><br>
>    migration the guest from core 0 to core 2, Is there a way to do this ? any<br>
>    points?<br>
<br>
</div>This is about CPU affinity. You may look at CPU pinning with 'vcpupin'<br>
in the manual of virsh. It is possible to enable vCPU pinning in libvirt<br>
guest XML.<br>
<br>
Don't know if libvirt supports applying CPU affinity at guest runtime<br>
but you could do it with usual tools (taskset, htop, etc).<br></blockquote><div><br><br></div><div>I don't know how to change the affinity use tasket for the vms in the libvirt, <br></div><div>my goal it to get the downtime from core 0 to core 2 <br>
<br></div><div>Lei<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Nicolas Sebrecht<br>
</font></span></blockquote></div><br></div></div>