qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] qdev: Assign a default device ID when none is p


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] qdev: Assign a default device ID when none is provided.
Date: Wed, 08 Jan 2014 18:34:01 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

Il 08/01/2014 18:17, Hani Benhabiles ha scritto:
> For this reason, the loop in assign_device_name() specifically check that the 
> ID
> doesn't exist already and uses the next value if it does.
> 
> How would something like:
> (qemu) device_add virtio-net-pci
> ==> ID: virtio-net-pci.0
> 
> Be more problematic than:
> (qemu) device_add virtio-net-pci,id=virtio-net-pci.0

(qemu) device_add virtio-net-pci
(qemu) device_add virtio-net-pci,id=virtio-net-pci.0

works without your patches, fails with them (IIUC).

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]