Re: [PATCH v1 4/6] qemu: Build command line for ivshmem device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2014/8/22 18:47, Maxime Leroy wrote:
> +static int
> +qemuBuildIvshmemCommandLine(virCommandPtr cmd,
> +                            virDomainDefPtr def,
> +                            virDomainShmemDefPtr dev,
> +                            virQEMUCapsPtr qemuCaps)
> +{
> +    char *devstr;
> +    virDomainIvshmemDefPtr ivshmem = &dev->data.ivshmem;
> +
> +    virCommandAddArg(cmd, "-device");
> +    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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]