From: Thomas Friebel <thomas.friebel@amd.com>
To: xen-devel@lists.xensource.com
Subject: IO port 0xed intercept
Date: Thu, 19 Mar 2009 16:17:53 +0100 [thread overview]
Message-ID: <49C26221.8040309@amd.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]
Gentlemen,
attached one-liner passes through IO port 0xed accesses of HVM guests.
Applying this patch improves guest boot performance of affected Linux
kernels by about 0.5 to 1.0 seconds measured from GRUB to login.
Port 0x80 is already passed-through. Writes to port 0x80 are
traditionally used as IO delay. Recent Linux kernel versions can be
configured to use port 0xed instead (CONFIG_IO_DELAY_0XED=y). Ubuntu
8.04 and later kernels are configured to use port 0xed.
In Linux IO delay is implemented by (in|out)[bwl]_p. From a first
glance at Linux it looks like the only relevant usage of delayed IO is
in drivers/video/console/vgacon.c. Affected is VGA console
initialization and font setup. Output / scrolling is not affected.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
----to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Jochen Polster; Thomas M. McCoy; Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: 0xed-pass-through.diff --]
[-- Type: text/x-patch, Size: 430 bytes --]
diff -r 90ebf7f609fb -r 0e6e3341b3eb xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c Mon Feb 23 19:11:00 2009 +0100
+++ b/xen/arch/x86/hvm/hvm.c Wed Mar 11 19:21:15 2009 +0100
@@ -79,6 +79,7 @@ void hvm_enable(struct hvm_function_tabl
*/
memset(hvm_io_bitmap, ~0, sizeof(hvm_io_bitmap));
__clear_bit(0x80, hvm_io_bitmap);
+ __clear_bit(0xed, hvm_io_bitmap);
hvm_funcs = *fns;
hvm_enabled = 1;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2009-03-19 15:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=49C26221.8040309@amd.com \
--to=thomas.friebel@amd.com \
--cc=xen-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.