From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: 2.6.23-rc1, KVM-AMD problem Date: Sun, 29 Jul 2007 11:16:43 +0300 Message-ID: <46AC4CEB.9060401@qumranet.com> References: <200707281855.41277.alistair@devzero.co.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020605050006080107070004" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alistair John Strachan Return-path: In-Reply-To: <200707281855.41277.alistair-T7eSMZptz7IqdlJmJB21zg@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. --------------020605050006080107070004 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Alistair John Strachan wrote: > Hi, > > I'm getting periodic oopses running KVM-33 on 2.6.23-rc1. Here is a digital > photo of the oops. Alarmingly, a lot of the time it triple faults the machine > and I don't get a chance to grab it. This time I was lucky, though. > > http://devzero.co.uk/~alistair/kvm-2.6.23-rc1.jpg > > Unfortunately, some of the oops text scrolled out of the screen. I will > endeavour to reproduce the bug over serial console, but I can make no > guarantees. > > The CPU is an AMD X2 BE-2350, chipset is AMD 690G. > > If you are using the modules from 2.6.23-rc1, try upgrading to latest -git, which contains a patch that might fix this problem. If you are using the modules from kvm-33, try applying the attached patch. -- error compiling committee.c: too many arguments to function --------------020605050006080107070004 Content-Type: text/x-patch; name="fix-0f-01.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-0f-01.patch" commit bfa6c62f98bd0602025d7b48e267d817082f5d07 Author: Aurelien Jarno Date: Wed Jul 25 10:19:54 2007 +0200 KVM: disable writeback for 0x0f 0x01 instructions. 0x0f 0x01 instructions (ie lgdt, lidt, smsw, lmsw and invlpg) does not use writeback. This patch set no_wb=1 when emulating those instructions. This fixes a regression booting the FreeBSD kernel on AMD. Signed-off-by: Aurelien Jarno Signed-off-by: Avi Kivity diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index 21ce977..cbbb9c5 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c @@ -1183,6 +1183,8 @@ pop_instruction: twobyte_insn: switch (b) { case 0x01: /* lgdt, lidt, lmsw */ + /* Disable writeback. */ + no_wb = 1; switch (modrm_reg) { u16 size; unsigned long address; --------------020605050006080107070004 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/ --------------020605050006080107070004 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 --------------020605050006080107070004--