[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Return amount of ASIDs
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] Return amount of ASIDs |
Date: |
Fri, 17 Oct 2008 10:09:24 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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 <address@hidden>
>
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
`. `' address@hidden | address@hidden
`- people.debian.org/~aurel32 | www.aurel32.net