From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Jonathan Phenix <jonathan.phenix@videotron.ca>
Subject: Re: [Qemu-devel] Block driver and constant sector size
Date: Fri, 18 May 2007 21:41:35 +0100 [thread overview]
Message-ID: <200705182141.36421.paul@codesourcery.com> (raw)
In-Reply-To: <4645ECE2.4050408@videotron.ca>
On Saturday 12 May 2007, Jonathan Phenix wrote:
> Hi,
>
> currently the block driver in qemu only handles blocks (or sectors)
> which are 512 bytes long,
>...
> Then, each probe functions should be modified to reject sector size
> which is not 512 bytes, except for the raw block driver, which will be
> modified to accept any block sizes. This change would probably solve the
> whole problem without having a negative impact on the rest of the code.
>
> Is it the right way to solve the problem? If this solution is accepted,
> I will code it and submit a patch.
Seems like it might just be simpler to have the qemu block ABI use bytes
rather than blocks. Maybe with some common helper functions for doing R/M/W
on hard sectored devices.
By adding variable sized sectors you're just shifting complexity from the
block backends to the device emulation.
Paul
next prev parent reply other threads:[~2007-05-18 20:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-12 16:35 [Qemu-devel] Block driver and constant sector size Jonathan Phenix
2007-05-18 20:41 ` Paul Brook [this message]
2007-05-20 20:27 ` Jonathan Phenix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200705182141.36421.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=jonathan.phenix@videotron.ca \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).