Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqkOr-0003ew-TP for qemu-devel@nongnu.org; Fri, 17 Oct 2008 04:09:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqkOq-0003e9-5i for qemu-devel@nongnu.org; Fri, 17 Oct 2008 04:09:32 -0400 Received: from [199.232.76.173] (port=47604 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqkOp-0003e2-Qb for qemu-devel@nongnu.org; Fri, 17 Oct 2008 04:09:31 -0400 Received: from hall.aurel32.net ([88.191.82.174]:55985) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KqkOp-0005d1-Gq for qemu-devel@nongnu.org; Fri, 17 Oct 2008 04:09:31 -0400 Date: Fri, 17 Oct 2008 10:09:24 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Return amount of ASIDs Message-ID: <20081017080924.GB9870@volta.aurel32.net> References: <48F633B3.7070401@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <48F633B3.7070401@suse.de> 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 Cc: joerg.roedel@amd.com On Wed, Oct 15, 2008 at 08:17:23PM +0200, Alexander Graf wrote: > 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 > Applied, thanks. > Index: target-i386/op_helper.c > =================================================================== > --- target-i386/op_helper.c (revision 5494) > +++ target-i386/op_helper.c (working copy) > @@ -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 */ -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net