From: Alexander Graf <agraf@suse.de>
To: qemu-devel@nongnu.org
Cc: joerg.roedel@amd.com, aurelien@aurel32.net
Subject: [Qemu-devel] [PATCH] Return amount of ASIDs
Date: Wed, 15 Oct 2008 20:17:23 +0200 [thread overview]
Message-ID: <48F633B3.7070401@suse.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
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 <agraf@suse.de>
[-- Attachment #2: qemu-asid.patch --]
[-- Type: text/x-patch, Size: 547 bytes --]
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 */
next reply other threads:[~2008-10-15 19:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 18:17 Alexander Graf [this message]
2008-10-17 8:09 ` [Qemu-devel] [PATCH] Return amount of ASIDs Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48F633B3.7070401@suse.de \
--to=agraf@suse.de \
--cc=aurelien@aurel32.net \
--cc=joerg.roedel@amd.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).