Skip to contentSkip to conversation

stubdoms and sector size > 512

PATCH New Stefano Stabellini 1 participant 1 message May 21, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdoms and sector size > 512

Hi all,
currently stubdoms do not work with physical cdrom drives because they usually have disk sectors of 2048 bytes, that are not supported correctly by blkfront and block-vbd.
The first patch fixes blkfront handling of sector sizes greater than 512, while the second patch fixes block-vbd to bounce any read or write request with a buffer not aligned, a sector number not aligned or an offset not aligned according to the sector size reported by blkfront.

With these two patches applied, you should be able to use for example 'phy:/dev/cdrom,hdc:cdrom,r' in the disk configuration of the vm. However there is still an issue trying to start a stubdom based guest with a configuration of this kind, if no cdroms are actually present in the drive. A patch to fix that issue will come shortly.

Cheers,

Stefano Stabellini