|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] VMX status report. Xen: #17630 & Xen0: #540 -- blocked
Ian Jackson schrieb:
I certainly don't want to exclude that I've misunderstood. But if it was meant to select the image format, the code looks overcomplicated to me. And now that upstream qemu has a -drive parameter with a format option, we could get rid of this filename parsing in both ioemu and upstream qemu then. In Xen we don't use it anyway. find_protocol, find_format and find_image_format all select from the same set of bdrv_xxx drivers: find_format take a name and returns the driver with that name; find_protocol takes a filename and looks for a `:' in it, and if so it assumes that the part before the `:' is the name and finds the driver with that name. (Just for extra confusion the two namespaces are different and some drivers don't have a name that can be put in filenames, but some drivers have both names.) find_image_format reads the start of the file and passes it to drivers until one of them recognises it. I think I understand quite well how it's processed in the code. ;-) And I also think that the code allows both of our understandings. If you wanted, I think you could add a "protocol" which in fact acts like a network protocol. And the different namespaces still don't make too much sense to me if formats and protocols are really meant to be the same... To be a bit more concrete, I think the following change is wrong (even if there is no user anyway): I agree that vvfat isn't really a protocol as I understand them. It's only another block driver and it's using the protocol thing only because there was no format option qemu until recently. Maybe you're right and the "protocol" was only introduced as a hack to allow overriding the image format. Kevin _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |