RE: [RFC] CPUID usage for interaction between Hypervisors and Linux.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nakajima, Jun
Date: Friday, October 3, 2008 - 3:33 pm

On 10/1/2008 6:24:26 PM, H. Peter Anvin wrote:

Resuming the thread :-)


What it means their hypervisor returns the interface signature (i.e. "Hv#1"), and that defines the interface. If we use "Lv_1", for example, we can define the interface 0x40000002 through 0x400000FF for Linux. Since leaf 0x40000000 and 0x40000001 are separate, we can decouple the hypervisor vender from the interface it supports. This also allows a hypervisor to support multiple interfaces.

And whether a guest wants to use the interface without checking the vender id is a different thing. For Linux, we don't want to hardcode the vender ids in the upstream code at least for such a generic interface.

So I think we need to modify the proposal:

Hypervisor interface identification Leaf:
        Leaf 0x40000001.

        This leaf returns the interface signature that the hypervisor implements.
        # EAX: "Lv_1" (or something)
        # EBX, ECX, EDX: Reserved.

Lv_1 interface Leaves:
        Leaf range 0x40000002 - 0x4000000FF.

In fact, both Xen and KVM are using the leaf 0x40000001 for different purposes today (Xen: Xen version number, KVM: KVM para-virtualization features). But I don't think this would break their existing binaries mainly because they would need to expose the interface explicitly now.


I hope the above clarified your concern. You can google-search a more detailed public spec. Let me know if you want to know a specific URL.

             .
Jun Nakajima | Intel Open Source Technology Center
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Wed Oct 1, 11:04 am)
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Wed Oct 1, 11:06 am)
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Wed Oct 1, 11:12 am)
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Wed Oct 1, 11:36 am)
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Wed Oct 1, 12:56 pm)
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Wed Oct 1, 2:17 pm)
RE: [RFC] CPUID usage for interaction between Hypervisors ..., Nakajima, Jun, (Fri Oct 3, 3:33 pm)
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Tue Oct 7, 4:41 pm)
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Tue Oct 7, 4:45 pm)
Re: [RFC] CPUID usage for interaction between Hypervisors ..., Jeremy Fitzhardinge, (Tue Oct 7, 5:40 pm)