WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-ia64-devel] Re: [PATCH][RFC][IA64] Accelerate IDE PIO on HVM/IA64

To: tgingold@xxxxxxx
Subject: [Xen-ia64-devel] Re: [PATCH][RFC][IA64] Accelerate IDE PIO on HVM/IA64
From: Kouya SHIMURA <kouya@xxxxxxxxxxxxxx>
Date: Tue, 5 Dec 2006 11:19:38 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2006年12月04日 18:19:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1165219969.4573d88176a59@xxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200612040217.kB42HN02022271@xxxxxxxxxxxxxxxxxxxxxxxxxx> <1165219969.4573d88176a59@xxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Tristan
Thanks for your comments.
* In any case, I have to allocate another page for IDE PIO buffer.
 Actually this patch works well on any size of buffer. The size is
 just trade-off with the performance. FYI, 2048 bytes seems to be
 enough for CDROM.
* The location where data is being written has already been enclosed
 with the memory barrier. Since shared memory is used for the
 communication between hypervisor and qemu-dm. So I think it's safe.
 Actually it isn't guest's MP safe but I think guest OS must take
 responsibility for it. (Who reads the I/O port simultaneously?)
Thanks,
Kouya
tgingold@xxxxxxx writes:
 > Quoting Kouya SHIMURA <kouya@xxxxxxxxxxxxxx>:
 >
 > > This patch significantly accelerates IDE PIO on HVM/IA64:
 > > * reduces the installation time of Windows 2003 Server
 > > from 10 hours(!) to 50min.
 > > * accelerates Windows CrashDumping speed from 40KB/sec
 > > (It takes over three hours for 512MB guest) to 850KB/sec.
 > >
 > > All reason for above slowness is the overhead of IDE PIO.
 > > Of course Windows should use DMA mode but we can't handle it.
 > > (FYI. Once installed, Windows usually uses DMA mode)
 > >
 > > On the other hand, x86 arch is rescued from this issue since it has a
 > > CISC instruction and multiple PIO requests can be processed in qemu-dm
 > > at one transaction. So this patch gives no benefit for x86.
 > >
 > > There are some dirty hacks in this patch:
 > > * To begin with, is it permissive to delegate the part of process of
 > > qemu-dm to hypervisor?
 > > * Currently it uses remnant of buffered_iopage (for VGA).
 > > Maybe I should prepare another page for IDE PIO.
 > > * May I use "#ifdef __ia64__" ?
 > > * and so on.
 > Hi,
 >
 > clever idea!
 >
 > Two remarks:
 > * you can't assume page size = 16KB. Xen can be compiled with other page
 > sizes (and should work with other page sizes). As an easy approach, you can
 > disable this optimization iff page size != 16KB (or use smaller buffers).
 > * To be written data are not flushed directly. I suppose they are flushed
 > while status is checked. Is it safe ?
 >
 > Tristan.
 >
 > _______________________________________________
 > Xen-devel mailing list
 > Xen-devel@xxxxxxxxxxxxxxxxxxx
 > http://lists.xensource.com/xen-devel 
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] [PATCH] PV framebuffer , Daniel P. Berrange
Next by Date: [Xen-devel] [PATCH] Add error reporting to libxc library , Daniel P. Berrange
Previous by Thread: Re: [Xen-ia64-devel] [PATCH][RFC][IA64] Accelerate IDE PIO on HVM/IA64 , tgingold
Next by Thread: Re: [Xen-devel] Re: [PATCH][RFC][IA64] Accelerate IDE PIO on HVM/IA64 , Alan
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /