All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Improve DMA transfers by increasing the buffer size.
Date: Fri, 28 Mar 2008 17:22:30 +0100	[thread overview]
Message-ID: <20080328162230.GA13159@volta.aurel32.net> (raw)
In-Reply-To: <18412.55320.507537.335497@mariner.uk.xensource.com>

On Fri, Mar 28, 2008 at 11:35:52AM +0000, Ian Jackson wrote:
> Aurelien Jarno writes ("Re: [Qemu-devel] [PATCH] Improve DMA transfers by increasing the buffer size."):
> > On Wed, Mar 26, 2008 at 04:35:00PM +0000, Ian Jackson wrote:
> > Content-Description: message body text
> > > +#define IDE_DMA_BUF_SIZE 131072
> > 
> > Wouldn't it be better to define this value in number of sectors? This
> > would avoid a few divisions in the code, and anyway the code handling
> > DMA transfers is working with a number of sectors, not a number of 
> > bytes.
> 
> I don't have much of an opinion about what units it should be in.  The
> divisions are just at compile-time of course.

I agree that the generated assembly code should not be different, but
this makes the code less readable.

> If you prefer I'll send another version with it done in sectors :-).

Please send it, I will commit it. 

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

  reply	other threads:[~2008-03-28 16:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 16:35 [Qemu-devel] [PATCH] Improve DMA transfers by increasing the buffer size Ian Jackson
2008-03-27 23:53 ` Aurelien Jarno
2008-03-28 10:05   ` Samuel Thibault
2008-03-28 11:35   ` Ian Jackson
2008-03-28 16:22     ` Aurelien Jarno [this message]
2008-03-29 12:16       ` Aurelien Jarno
2008-03-31 15:25         ` Ian Jackson
2008-03-30 10:42     ` Avi Kivity

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=20080328162230.GA13159@volta.aurel32.net \
    --to=aurelien@aurel32.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.