On Tue, Aug 26, 2014 at 11:23 AM, Wang Rui <moon.wangrui(a)huawei.com> wrote:
On 2014/8/22 18:47, Maxime Leroy wrote:
[...]
> + if (!(devstr = qemuBuildIvshmemDevStr(def, dev, qemuCaps)))
> + return -1;
> + virCommandAddArg(cmd, devstr);
> + VIR_FREE(devstr);
> +
> + if (ivshmem->server.enabled) {
> + virDomainChrSourceDef source;
> +
> + source.type = VIR_DOMAIN_CHR_TYPE_UNIX;
> + source.data.nix.path = ivshmem->server.path;
> + source.data.nix.listen = false;
> +
> + virCommandAddArg(cmd, "-chardev");
> + if (!(devstr = qemuBuildChrChardevStr(&source, dev->info.alias,
> + qemuCaps)))
> + return -1;
> + virCommandAddArg(cmd, devstr);
> + VIR_FREE(devstr);
indentation
Ok. Thanks.
Maxime