From: =?ISO-8859-1?Q?Stephan_B=E4rwolf?= Subject: Re: [PATCH 0/2] KVM guest-kernel panics double fault Date: Mon, 16 Jan 2012 12:24:17 +0100 Message-ID: <4F1408E1.6010608@tu-ilmenau.de> 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> <20120116095809.GA7937@amt.cnet> Reply-To: stephan.baerwolf@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: Marcelo Tosatti Return-path: Received: from wega.rz.tu-ilmenau.de ([141.24.4.159]:34008 "EHLO wega.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754019Ab2APL0C (ORCPT ); Mon, 16 Jan 2012 06:26:02 -0500 In-Reply-To: <20120116095809.GA7937@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: Okay, thx to hear a second opinion. Then everything is ok, have a nice day. regards Stephan On 01/16/12 10:58, Marcelo Tosatti wrote: > On Sun, Jan 15, 2012 at 08:44:50PM +0100, Stephan B=E4rwolf wrote: >> Thank you for applying this, Marcelo. >> >> I fear we (or me after I agreed) did some mistake by erasing the add= itional >> cpuid 0x80000001 checks. >> In contradiction to only AMD it MUST also apply on Intel-CPUs. >> >> Documentation >> "http://www.intel.com/content/dam/doc/manual/64-ia-32-architectures-= software-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_TechDoc= s/APM_V3_24594.pdf" >> page 376 (PDF-page 408) table "Exceptions" on the bottom) >> >> Not all CPUs might have a syscall op at all (even in longmode) - the= y informing about that >> via cpuid (But MSR_EFER may be still set). >> (You can force it externally in qemu-kvm-emulation via "-cpu host,-s= yscall" ...) >> 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). > > --=20 Dipl.-Inf. Stephan B=E4rwolf Ilmenau University of Technology, Integrated Communication Systems Grou= p Phone: +49 (0)3677 69 4130 Email: stephan.baerwolf@tu-ilmenau.de, =20 Web: http://www.tu-ilmenau.de/iks