https://bugzilla.novell.com/show_bug.cgi?id=642078
https://bugzilla.novell.com/show_bug.cgi?id=642078#c4
--- Comment #4 from Dongyang Li 2010-10-27 10:46:38 UTC ---
Created an attachment (id=397263)
--> (http://bugzilla.novell.com/attachment.cgi?id=397263)
detect if the guest is using PV then add the entry in drives_table[]
ok, so we have to fix it within qemu,
here is a patch addressing this problem,
now when blktapctrl asks qemu to add a device, it also set a watch on the
xenstore backend state path of the device,e.g.
/local/domain/<domian-id>/device/vbd/<device-id>/state and when the state
changed to 4, that means guest is using the PV driver and it's ready, so the
watch will tell qemu to add the disk entry to drives_table[], otherwise the
disk in qemu will just stay opened,not showing up in drives_table[].
I've tested it on guests with PV driver and without, both works fine, could
someone review this? let me know your comments, Thanks
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.