* [PATCH][SVM] Allow direct guest access to PC debug port
@ 2007-04-29 16:51 Anthony Liguori
[not found] ` <4634CCFC.40507-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Anthony Liguori @ 2007-04-29 16:51 UTC (permalink / raw)
To: kvm-devel, Avi Kivity
[-- Attachment #1: Type: text/plain, Size: 80 bytes --]
This was inspired by Qing He's similar patch for VT.
Regards,
Anthony Liguori
[-- Attachment #2: svm-io-delay.diff --]
[-- Type: text/x-patch, Size: 1085 bytes --]
Subject: [PATCH][SVM] Allow direct guest access to PC debug port
From: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
The PC debug port is used for IO delay and does not require emulation.
Signed-off-by: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Index: kernel/drivers/kvm/svm.c
===================================================================
--- kernel.orig/drivers/kvm/svm.c 2007-04-29 10:57:27.219080792 -0500
+++ kernel/drivers/kvm/svm.c 2007-04-29 10:58:37.481399296 -0500
@@ -377,7 +377,7 @@
int cpu;
struct page *iopm_pages;
struct page *msrpm_pages;
- void *msrpm_va;
+ void *iopm_va, *msrpm_va;
int r;
kvm_emulator_want_group7_invlpg();
@@ -386,8 +386,10 @@
if (!iopm_pages)
return -ENOMEM;
- memset(page_address(iopm_pages), 0xff,
- PAGE_SIZE * (1 << IOPM_ALLOC_ORDER));
+
+ iopm_va = page_address(iopm_pages);
+ memset(iopm_va, 0xff, PAGE_SIZE * (1 << IOPM_ALLOC_ORDER));
+ clear_bit(0x80, iopm_va); /* allow direct access to PC debug port */
iopm_base = page_to_pfn(iopm_pages) << PAGE_SHIFT;
[-- Attachment #3: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-30 6:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-29 16:51 [PATCH][SVM] Allow direct guest access to PC debug port Anthony Liguori
[not found] ` <4634CCFC.40507-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-04-30 6:48 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox