Re: [Qemu-devel] [PATCH 2/2] raw_bsd: Convert to byte-based interface

2016-06-27 Thread Eric Blake
On 06/27/2016 06:19 AM, Paolo Bonzini wrote: > > > On 24/06/2016 05:58, Eric Blake wrote: >> Since the raw format driver is just passing things through, we can >> do byte-based read and write if the underlying protocol does >> likewise. >> >> There's one tricky part - if we probed the image forma

Re: [Qemu-devel] [PATCH 2/2] raw_bsd: Convert to byte-based interface

2016-06-27 Thread Paolo Bonzini
On 24/06/2016 05:58, Eric Blake wrote: > Since the raw format driver is just passing things through, we can > do byte-based read and write if the underlying protocol does > likewise. > > There's one tricky part - if we probed the image format, we document > that we restrict operations on the ini

[Qemu-devel] [PATCH 2/2] raw_bsd: Convert to byte-based interface

2016-06-23 Thread Eric Blake
Since the raw format driver is just passing things through, we can do byte-based read and write if the underlying protocol does likewise. There's one tricky part - if we probed the image format, we document that we restrict operations on the initial sector. Rather than trying to handle a read-mod