Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfIpQ-0004zu-64 for qemu-devel@nongnu.org; Thu, 05 Mar 2009 14:01:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfIpP-0004z1-Hn for qemu-devel@nongnu.org; Thu, 05 Mar 2009 14:01:55 -0500 Received: from [199.232.76.173] (port=51475 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfIpP-0004yq-Di for qemu-devel@nongnu.org; Thu, 05 Mar 2009 14:01:55 -0500 Received: from savannah.gnu.org ([199.232.41.3]:55908 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LfIpO-00052M-T0 for qemu-devel@nongnu.org; Thu, 05 Mar 2009 14:01:54 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LfIpO-0007an-D1 for qemu-devel@nongnu.org; Thu, 05 Mar 2009 19:01:54 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LfIpO-0007aj-64 for qemu-devel@nongnu.org; Thu, 05 Mar 2009 19:01:54 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Thu, 05 Mar 2009 19:01:54 +0000 Subject: [Qemu-devel] [6691] Fix cpuid KVM crash on i386 (Lubomir Rintel) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6691 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6691 Author: aliguori Date: 2009-03-05 19:01:53 +0000 (Thu, 05 Mar 2009) Log Message: ----------- Fix cpuid KVM crash on i386 (Lubomir Rintel) Cpuid should return into vec, not overwrite past address in count. Changeset 6565 broke this. Signed-off-by: Lubomir Rintel Signed-off-by: Anthony Liguori Modified Paths: -------------- branches/stable_0_10_0/target-i386/helper.c Modified: branches/stable_0_10_0/target-i386/helper.c =================================================================== --- branches/stable_0_10_0/target-i386/helper.c 2009-03-05 19:01:46 UTC (rev 6690) +++ branches/stable_0_10_0/target-i386/helper.c 2009-03-05 19:01:53 UTC (rev 6691) @@ -1421,10 +1421,10 @@ #else asm volatile("pusha \n\t" "cpuid \n\t" - "mov %%eax, 0(%1) \n\t" - "mov %%ebx, 4(%1) \n\t" - "mov %%ecx, 8(%1) \n\t" - "mov %%edx, 12(%1) \n\t" + "mov %%eax, 0(%2) \n\t" + "mov %%ebx, 4(%2) \n\t" + "mov %%ecx, 8(%2) \n\t" + "mov %%edx, 12(%2) \n\t" "popa" : : "a"(function), "c"(count), "S"(vec) : "memory", "cc");