• Nadav Har'El's avatar
    KVM: nVMX: Introduce vmcs12: a VMCS structure for L1 · a9d30f33
    Nadav Har'El authored
    An implementation of VMX needs to define a VMCS structure. This structure
    is kept in guest memory, but is opaque to the guest (who can only read or
    write it with VMX instructions).
    
    This patch starts to define the VMCS structure which our nested VMX
    implementation will present to L1. We call it "vmcs12", as it is the VMCS
    that L1 keeps for its L2 guest. We will add more content to this structure
    in later patches.
    
    This patch also adds the notion (as required by the VMX spec) of L1's "current
    VMCS", and finally includes utility functions for mapping the guest-allocated
    VMCSs in host memory.
    Signed-off-by: default avatarNadav Har'El <nyh@il.ibm.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    a9d30f33
vmx.c 129 KB