From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 0/2] KVM guest-kernel panics double fault Date: Mon, 16 Jan 2012 07:58:09 -0200 Message-ID: <20120116095809.GA7937@amt.cnet> References: <4F0C4AA9.6000203@tu-ilmenau.de> <20120111190927.GA13298@amt.cnet> <4F0DEA86.90503@tu-ilmenau.de> <20120111212150.GA18948@amt.cnet> <4F0E0B06.2090708@tu-ilmenau.de> <20120112104756.GB31635@amt.cnet> <4F0EFF84.8020500@tu-ilmenau.de> <4F0F02B1.8080508@siemens.com> <20120113101325.GA25595@amt.cnet> <4F132CB2.3090007@tu-ilmenau.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Jan Kiszka , kvm@vger.kernel.org To: Stephan =?iso-8859-1?Q?B=E4rwolf?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:17025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754099Ab2APK4y (ORCPT ); Mon, 16 Jan 2012 05:56:54 -0500 Content-Disposition: inline In-Reply-To: <4F132CB2.3090007@tu-ilmenau.de> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Jan 15, 2012 at 08:44:50PM +0100, Stephan B=E4rwolf wrote: > Thank you for applying this, Marcelo. >=20 > I fear we (or me after I agreed) did some mistake by erasing the addi= tional > cpuid 0x80000001 checks. > In contradiction to only AMD it MUST also apply on Intel-CPUs. >=20 > Documentation > "http://www.intel.com/content/dam/doc/manual/64-ia-32-architectures-s= oftware-developer-manual-325462.pdf" > Vol. 2A 3-207 (PDF-page 811) first block of table. > (in addition AMD's doku "http://support.amd.com/us/Processor_TechDocs= /APM_V3_24594.pdf" > page 376 (PDF-page 408) table "Exceptions" on the bottom) >=20 > Not all CPUs might have a syscall op at all (even in longmode) - they= informing about that > via cpuid (But MSR_EFER may be still set). > (You can force it externally in qemu-kvm-emulation via "-cpu host,-sy= scall" ...) > So an (guest) operating-system might not install *STAR-registers and = crash again on such vcpus, right? No because if the operating system does not install the STAR MSRs, it will not set SCE bit in MSR_EFER (and your patch handles that=20 situation).