From: Andi Kleen <ak@suse.de>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: sofsthun@virtualiron.com, xen-devel@lists.xensource.com
Subject: Re: [RFC] Hypercalls from HVM guests
Date: 08 Apr 2006 16:12:08 +0200 [thread overview]
Message-ID: <p73bqvc9mx3.fsf@bragg.suse.de> (raw)
In-Reply-To: <4ac73348432a04ac52c856a9a0973636@cl.cam.ac.uk>
Keir Fraser <Keir.Fraser@cl.cam.ac.uk> writes:
> On 7 Apr 2006, at 20:30, Steve Ofsthun wrote:
>
> >> Actually, maybe using an unused index for CPUID (e.g. 0xb0000000)
> >> would
> >> be better? As that's defined to return all zero's, and not cause any
> >> traps whatever value you use (unless the CPU is so old that it doesn't
> >> support CPUID, of course).
> >
> > This sounds encouraging, but is CPUID always trapped by the HVM code?
>
> It can be, and in practise yes it is so this could work.
CPUID doesn't have any advantage over MSRs for this purpose because
for custom CPUIDs like 0xb... you can't use the normal "max count" mechanism
of determining if a CPUID is supported. All that would work is to try
it and handle the GPF if it didn't work. That would give the same ugly
implementation as with MSRs.
Using the MSR would have the advantage of it being trappable in a para virtual
kernel too.
Or alternatively use some table in RAM/ROM space that can be searched for.
That would allow to implement this simply in OS without having
to change any exception handlers.
-Andi
next prev parent reply other threads:[~2006-04-08 14:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-07 17:56 [RFC] Hypercalls from HVM guests Petersson, Mats
2006-04-07 19:30 ` Steve Ofsthun
2006-04-07 20:22 ` Anthony Liguori
2006-04-08 7:31 ` Keir Fraser
2006-04-08 14:12 ` Andi Kleen [this message]
2006-04-08 15:05 ` Keir Fraser
2006-04-12 15:39 ` Stephen C. Tweedie
2006-04-12 17:05 ` Keir Fraser
-- strict thread matches above, loose matches on Subject: below --
2006-04-09 15:08 Nakajima, Jun
2006-04-09 13:56 Nakajima, Jun
2006-04-09 14:09 ` Keir Fraser
2006-04-12 15:58 ` Stephen C. Tweedie
2006-04-08 23:33 Nakajima, Jun
2006-04-09 7:56 ` Keir Fraser
2006-04-07 17:24 Petersson, Mats
2006-04-07 17:40 ` Keir Fraser
2006-04-07 8:47 Petersson, Mats
2006-04-07 17:06 ` Steve Ofsthun
2006-04-07 2:32 Yu, Ke
2006-04-06 21:10 Steve Ofsthun
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=p73bqvc9mx3.fsf@bragg.suse.de \
--to=ak@suse.de \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=sofsthun@virtualiron.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.