From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kvm hardlocks on hp dv9010us Date: Mon, 11 May 2009 14:20:30 +0300 Message-ID: <4A0809FE.7050801@redhat.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090906050603080106010100" Cc: kvm@vger.kernel.org To: =?UTF-8?B?UGlvdHIgSmFyb3N6ecWEc2tp?= Return-path: Received: from mx2.redhat.com ([66.187.237.31]:37754 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461AbZEKLUd (ORCPT ); Mon, 11 May 2009 07:20:33 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------090906050603080106010100 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Piotr JaroszyƄski wrote: > I have a hp dv9010us laptop (one of those that hard locked before > CONFIG_IO_DELAY_* options were introduced in kernel - not sure if it > may be related at all). > I skipped this bit, and it's crucial. kvm passes port 80 to go from guest to host as an optimization, and of course it kills your laptop. I'll fix this up. (nowadays it may be faster to emulate the port access in the kernel rather than pass it to the hardware, so this is likely to be a performance improvement as well). In the meantime, you can use the attached patch. -- error compiling committee.c: too many arguments to function --------------090906050603080106010100 Content-Type: text/x-patch; name="remove-port-80-accesses.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="remove-port-80-accesses.patch" diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 27d5b74..f994c6d 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -384,7 +384,6 @@ static __init int svm_hardware_setup(void) 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; if (boot_cpu_has(X86_FEATURE_NX)) --------------090906050603080106010100--