Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Anthony Liguori <aliguori@...>
Cc: Nakajima, Jun <jun.nakajima@...>, <kvm-devel@...>, Avi Kivity <avi@...>, <linux-kernel@...>
Date: Monday, September 17, 2007 - 3:15 pm

Anthony Liguori wrote:

Yeah.  It's the way all the other cpuid leaf/level stuff works, so it's
reasonable to do the same thing here.  The question it helps answer is
"I understand leaf 33, does the [v]CPU?".


Well, its also what the CPU itself does.  The feature bits tend to
relate to specific CPU features rather than CPUID instruction leaves. 
The features themselves may also have corresponding leaves, but that's
secondary.  IOW, if feature bit X is set, it may use leaf 0x4000101f,
but that doesn't mean leaves 0x40001001-1f are necessarily defined.


Well, it could be, but it would take affirmative action on the guest's
part.  If there's feature bits for each supported hypercall interface,
then you could have a magic MSR to select which interface you want to
use now.  That would allow a generic-interface-using guest to probe for
the generic interface at cpuid leaf 0x40001000, use 40001001 to
determine whether the hypercall interface is available, 4000100x to find
the base of the magic msrs, and write appropriate msr to set the desired
hypercall style (and all this can be done without using vmcall, so it
doesn't matter that hypercall interface is initially established).

    J
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 3:45 pm)
Re: [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 4:53 pm)
Re: [PATCH] Refactor hypercall infrastructure, Rusty Russell, (Fri Sep 14, 10:35 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 5:02 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 5:22 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 5:46 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 5:52 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 6:08 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Fri Sep 14, 6:40 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 7:00 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Fri Sep 14, 8:10 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 8:28 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Fri Sep 14, 9:04 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Sat Sep 15, 12:53 am)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Sat Sep 15, 2:11 am)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Sat Sep 15, 2:23 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Mon Sep 17, 2:14 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Mon Sep 17, 3:15 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Mon Sep 17, 4:52 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Mon Sep 17, 2:27 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Mon Sep 17, 3:15 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Mon Sep 17, 3:33 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Zachary Amsden, (Fri Sep 14, 5:20 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 5:44 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Zachary Amsden, (Fri Sep 14, 11:37 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Sat Sep 15, 1:33 pm)