|
From: | Anthony Liguori |
Subject: | [Qemu-devel] Re: [PATCH] Add serial number support for virtio_blk |
Date: | Mon, 22 Jun 2009 14:05:12 -0500 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
john cooper wrote:
I'm trying to write a test case for this functionality. The first thing I observed is that serial isn't included in info block. Could you add it? This will let us figure out what the serial number ought to be so that we can then verify it in the guest.[brought forward to current qemu-kvm.git] This patch implements the missing qemu logic to interpret a '-drive .. serial=XYZ ..' flag for a virtio_blk device. The serial number string is contained in a skeletal IDENTIFY DEVICE data structure and this structure is made available to the guest virtio_blk driver via pci i/o region 0. Signed-off-by: john cooper <address@hidden>
So far, I don't see a wonderful way to verify a serial number in the guest. Looks like the information can be gotten indirectly via hdparm -i or by looking at /dev/disk/by-id. The later doesn't have an easy to predict name though.
Any thoughts? I also noticed that if=scsi,serial=XXX doesn't seem to do anything useful. Regards, Anthony Liguori
[Prev in Thread] | Current Thread | [Next in Thread] |