From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [RFT] kvm with Windows optimization Date: Thu, 25 Oct 2007 12:51:36 -0500 Message-ID: <4720D7A8.6060102@codemonkey.ws> References: <4720D122.4070606@qumranet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070203020906020905010606" Cc: kvm-devel To: Avi Kivity Return-path: In-Reply-To: <4720D122.4070606-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 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. --------------070203020906020905010606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Avi Kivity wrote: > This is a request for testing of an experimental kvm feature that > dramatically accelerates some Windows releases (when running with the > ACPI HAL, and especially with guest SMP). The feature detects accesses > by the guest to the Task Priority Register (TPR) and patches them at > runtime to a kvm-friendly code snipped that is provided by the BIOS. > > The upshot of all that is that > http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround is no longer > required, and Windows SMP no longer runs like a dog; it's quite snappy > from my very limited testing. > > Please download the test release from > http://people.qumranet.com/avi/tpr-opt-1.tar.gz and give it a spin. > Once it has received some exposure, I'll merge it into mainline. > > Credit for the original idea is due to Ben Serebrin. > > Sweet! I needed the following patch to compile. Will let you know how testing goes. Regards, Anthony Liguori --------------070203020906020905010606 Content-Type: text/x-patch; name="tpr-opt-1-compile.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tpr-opt-1-compile.diff" diff -ur a/qemu/qemu-kvm.h b/qemu/qemu-kvm.h --- a/qemu/qemu-kvm.h 2007-10-25 11:55:25.000000000 -0500 +++ b/qemu/qemu-kvm.h 2007-10-25 12:48:38.000000000 -0500 @@ -30,7 +30,6 @@ #define ALIGN(x, y) (((x)+(y)-1) & ~((y)-1)) #define BITMAP_SIZE(m) (ALIGN(((m)>>TARGET_PAGE_BITS), HOST_LONG_BITS) / 8) -#endif extern int kvm_tpr_log_enabled; void kvm_do_log_tpr(int write); @@ -42,3 +41,4 @@ if (kvm_tpr_log_enabled && addr == 0xfee00080) kvm_do_log_tpr(write); } +#endif --------------070203020906020905010606 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --------------070203020906020905010606 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 --------------070203020906020905010606--