All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: Kouya SHIMURA <kouya@jp.fujitsu.com>
Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com
Subject: Re: [PATCH 0/3][IA64] Accelerate IDE PIO on HVM/IA64
Date: Tue, 27 Feb 2007 09:51:18 -0700	[thread overview]
Message-ID: <1172595078.5658.11.camel@lappy> (raw)
In-Reply-To: <200702270850.l1R8oeK3019985@bx604.sky.yk.fujitsu.co.jp>

On Tue, 2007-02-27 at 18:34 +0900, Kouya SHIMURA wrote:
> Hi,
> 
> This set of patches remarkably accelerates IDE PIO on HVM/IA64.
> I got a throughput of 2.11MB/sec in disk read performance.
> Without it, it was only 64kB/sec.
> 
> I posted the prototype once. 
> http://lists.xensource.com/archives/html/xen-devel/2006-12/msg00077.html
> 
> The basic idea is to add a buffering mechanism in a hypervisor.
> I know this approach is not sophisticated. But there is no other
> good way in IA64 which has no string instructions like x86's.

   This seems like a pretty good performance increase for only a single
page of domain overhead in Xen.  My main concern would be that we
maintain correctness.  It is writing out the dirty buffer before the
domain shuts down, right?  I'm guessing the flush probably does that.
Looks like a bug here though:

+static inline void
+buffered_pio_write(IDEState *s, uint32_t addr, int size)
+{
+    struct pio_buffer *piobuf = piobuf_by_addr(addr);
+    uint32_t data_end;
+
+    if (!piobuf)
+        return;
+    buffered_pio_flush(piobuf);
+    data_end = s->data_end - s->data_ptr - size;
+    if (data_end <= 0)
+        data_end = 0;

   data_end is unsigned, so it will never be < 0.  Same problem on the
read func.  Thanks,

	Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.

  parent reply	other threads:[~2007-02-27 16:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27  9:34 [PATCH 0/3][IA64] Accelerate IDE PIO on HVM/IA64 Kouya SHIMURA
2007-02-27  9:34 ` [PATCH 1/3][IA64] Accelerate IDE PIO on HVM/IA64 : qemu Kouya SHIMURA
2007-02-27  9:34 ` [PATCH 2/3][IA64] Accelerate IDE PIO on HVM/IA64 : tools Kouya SHIMURA
2007-02-27  9:34 ` [PATCH 3/3][IA64] Accelerate IDE PIO on HVM/IA64 : ia64 Kouya SHIMURA
2007-02-27 10:56 ` [PATCH 0/3][IA64] Accelerate IDE PIO on HVM/IA64 Keir Fraser
2007-02-27 12:47   ` Kouya SHIMURA
2007-02-27 16:51 ` Alex Williamson [this message]
2007-02-28  4:20   ` [Xen-devel] " Kouya SHIMURA

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=1172595078.5658.11.camel@lappy \
    --to=alex.williamson@hp.com \
    --cc=kouya@jp.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-ia64-devel@lists.xensource.com \
    /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.