Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqkOC-0003Mv-MY for qemu-devel@nongnu.org; Fri, 17 Oct 2008 04:08:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqkOA-0003Li-Vm for qemu-devel@nongnu.org; Fri, 17 Oct 2008 04:08:51 -0400 Received: from [199.232.76.173] (port=47590 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqkOA-0003LZ-Qh for qemu-devel@nongnu.org; Fri, 17 Oct 2008 04:08:50 -0400 Received: from savannah.gnu.org ([199.232.41.3]:34534 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 1KqkOA-0005Tm-GX for qemu-devel@nongnu.org; Fri, 17 Oct 2008 04:08:50 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KqkO9-0002O4-QF for qemu-devel@nongnu.org; Fri, 17 Oct 2008 08:08:49 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KqkO9-0002O0-Ci for qemu-devel@nongnu.org; Fri, 17 Oct 2008 08:08:49 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Fri, 17 Oct 2008 08:08:49 +0000 Subject: [Qemu-devel] [5496] i386/SVM: return amount of ASIDs 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: 5496 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5496 Author: aurel32 Date: 2008-10-17 08:08:48 +0000 (Fri, 17 Oct 2008) Log Message: ----------- i386/SVM: return amount of ASIDs With SVM the TLB supports tagging to distinguish TLB entries from different virtual CPUs. This tag is called an ASID. The amount of ASIDs is given in EBX of the SVM-CPUID-leaf. Currently we return 0, which might break hypervisors. Let's better return something >0 here, say 0x10. Since we're flushing the complete TLB on every VM entry and exit we're not making use of the ASID information anyways. Signed-off-by: Alexander Graf Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-i386/op_helper.c Modified: trunk/target-i386/op_helper.c =================================================================== --- trunk/target-i386/op_helper.c 2008-10-15 22:25:21 UTC (rev 5495) +++ trunk/target-i386/op_helper.c 2008-10-17 08:08:48 UTC (rev 5496) @@ -2037,10 +2037,10 @@ EDX = 0; break; case 0x8000000A: - EAX = 0x00000001; - EBX = 0; + EAX = 0x00000001; /* SVM Revision */ + EBX = 0x00000010; /* nr of ASIDs */ ECX = 0; - EDX = 0; + EDX = 0; /* optional features */ break; default: /* reserved values: zero */