<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 8:38 AM, Levente Kurusa <span dir="ltr"><<a href="mailto:lkurusa@redhat.com" target="_blank">lkurusa@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Aug 06 2014, Wang Rui wrote:<br>
>On 2014/8/6 0:48, Maxime Leroy wrote:<br>
>> The following patches are an implementation proposal<br>
>> for the ivshmem device support in libvirt.<br>
>><br>
>> Any feedback is welcome.<br>
>><br>
>> Note:<br>
>>    SELinux is not supported (need to be done for the next<br>
>>    patchset version)<br>
>><br>
><br>
>Just some questiones:<br>
>Is there only one master at most on a host?<br>
<br>
</div>Right now, qemu does not have any restriction on the number of masters<br>
on a host.<br>
<div class=""><br>
>What will happen if two masters(in one VM or two VMS) on a host?<br>
<br>
</div>By default, all ivshmem devices are 'master' unless specified to be<br>
'peer' on the command line. The only difference between 'master' and<br>
'peer' is that 'peer' blocks migration.<br>
<br>
My guess is that this mode-thing was a planned feature to solve<br>
migration problems. According to my understanding the following was<br>
meant to be:<br>
<br>
The guests using the same SHM are virtually grouped together, having<br>
one (and only one!) master guest, the rest being peer guests. On<br>
migration the guest-group can only be migrated to the same host and all<br>
together.<br>
<br>
The master guest will copy over the SHM. Before this happens the ivshmem<br>
devices are detached from the peer guests using PCI/ACPI hotplug. Once<br>
the master finishes the copy, the guests are migrated and the peers are<br>
reattached with a new fd pointing to the new shm object on the new host.<br>
<br>
So, to answer your question: My guess is that you can have as much<br>
master guests on the host, given that each master has a unique SHM.<br></blockquote><div><br></div><div>Hello,</div><div><br></div><div>One master per SHM is the original intent.  The goal was to make migration behaviour explicit for each guest.</div>
<div><br></div><div>Cam</div><div>  </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks!<br>
<span class="HOEnZb"><font color="#888888">Levente Kurusa<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
libvir-list mailing list<br>
<a href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
<br>
</div></div></blockquote></div><br></div></div>