[libvirt] [PATCH v2 1/2] qemu: assign addresses when converting xml to native
Eric Blake
eblake at redhat.com
Mon Apr 29 22:14:04 UTC 2013
On 04/29/2013 12:20 PM, Ján Tomko wrote:
> This adds addresses to domxml-to-native output and chooses
> the correct virtio devices for ccw and s390 machines.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=957077
> ---
> src/qemu/qemu_driver.c | 3 +++
> 1 file changed, 3 insertions(+)
ACK.
>
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index 2d3b24a..296efe3 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -5271,6 +5271,9 @@ static char *qemuConnectDomainXMLToNative(virConnectPtr conn,
> if (qemuAssignDeviceAliases(def, qemuCaps) < 0)
> goto cleanup;
>
> + if (qemuDomainAssignAddresses(def, qemuCaps, NULL) < 0)
> + goto cleanup;
> +
> if (!(cmd = qemuBuildCommandLine(conn, driver, def,
> &monConfig, monitor_json, qemuCaps,
> NULL, -1, NULL, VIR_NETDEV_VPORT_PROFILE_OP_NO_OP)))
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130429/cc6f8adf/attachment-0001.sig>
More information about the libvir-list
mailing list