Re: [PATCH] virtio-blk: Set default serial id

2013-03-21 Thread Paolo Bonzini
Il 20/03/2013 09:34, Asias He ha scritto: The solution is to do persistent naming either by really passing -device virtio-blk-pci,serial= or with udev inside the guest using the bus address (PCI devfn) like the new persistent network interface naming for Linux. '-virtio-blk-pci,serial='

Re: [PATCH] virtio-blk: Set default serial id

2013-03-20 Thread Stefan Hajnoczi
On Wed, Mar 20, 2013 at 01:56:08PM +0800, Asias He wrote: If user does not specify a serial id, e.g. -device virtio-blk-pci,serial=serial_id or -drive serial=serial_id no serial id will be assigned. Add a default serial id in this case to help identifying the disk in guest.

Re: [PATCH] virtio-blk: Set default serial id

2013-03-20 Thread Asias He
On Wed, Mar 20, 2013 at 08:52:57AM +0100, Stefan Hajnoczi wrote: On Wed, Mar 20, 2013 at 01:56:08PM +0800, Asias He wrote: If user does not specify a serial id, e.g. -device virtio-blk-pci,serial=serial_id or -drive serial=serial_id no serial id will be assigned. Add a

[PATCH] virtio-blk: Set default serial id

2013-03-19 Thread Asias He
If user does not specify a serial id, e.g. -device virtio-blk-pci,serial=serial_id or -drive serial=serial_id no serial id will be assigned. Add a default serial id in this case to help identifying the disk in guest. Signed-off-by: Asias He as...@redhat.com --- hw/virtio-blk.c | 7