From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH][SVM] Allow direct guest access to PC debug port Date: Sun, 29 Apr 2007 11:51:08 -0500 Message-ID: <4634CCFC.40507@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080106050106040208080000" To: kvm-devel , Avi Kivity Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------080106050106040208080000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit This was inspired by Qing He's similar patch for VT. Regards, Anthony Liguori --------------080106050106040208080000 Content-Type: text/x-patch; name="svm-io-delay.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="svm-io-delay.diff" Subject: [PATCH][SVM] Allow direct guest access to PC debug port From: Anthony Liguori The PC debug port is used for IO delay and does not require emulation. Signed-off-by: Anthony Liguori 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; --------------080106050106040208080000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --------------080106050106040208080000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------080106050106040208080000--