[libvirt] [PATCH v1 6/6] ivshmem: add start param to server attribute

Martin Kletzander mkletzan at redhat.com
Thu Aug 28 10:12:52 UTC 2014


On Thu, Aug 28, 2014 at 02:35:10PM +0800, Wang Rui wrote:
>On 2014/8/28 5:20, Maxime Leroy wrote:
>> On Tue, Aug 26, 2014 at 11:58 AM, Wang Rui <moon.wangrui at huawei.com> wrote:
>>> On 2014/8/22 18:47, Maxime Leroy wrote:
>>>
>>>> +# util/virivshmemserver.h
>>>> +virStartIvshmemServer;
>>>> +virStopIvshmemServer;
>>>
>>> I think function name virIvshmemStartServer is better.
>>> So is the stop function.
>>>
>>
>> What about virIvshmemServerStart ?
>
>It looks fine.
>

Yes, it looks better.

>>>> @@ -5120,6 +5121,12 @@ qemuBuildIvshmemCommandLine(virCommandPtr cmd,
>>>>                  return -1;
>>>>              virCommandAddArg(cmd, devstr);
>>>>              VIR_FREE(devstr);
>>>> +
>>>> +            if (ivshmem->server.start == VIR_TRISTATE_BOOL_YES) {
>>>> +                if (virStartIvshmemServer(dev->name, ivshmem->server.path,
>>>> +                                          ivshmem->size, ivshmem->msi.vectors))
>>>> +                    return -1;
>>>> +            }
>>>>      }
>>>
>>> I'm not sure that calling virStartIvshmemServer in qemuBuildIvshmemCommandLine
>>> is the best way. Maybe qemuBuild*CommandLine() usually only build commandline.
>>>
>>
>> Calling virStartIvshmemServer in qemuProcessStart should be better ?
>
>Looks better, too. But we'd better to wait for other opinions.
>

It should be started as late as possible and stopped if no client
connects there.  This will need more changes I think, we'll discuss it
with David in the other thread.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140828/1cc00342/attachment-0001.sig>


More information about the libvir-list mailing list