[Bug 54521] New: nVMX: accurately emulate VMXON region

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=54521

           Summary: nVMX: accurately emulate VMXON region
           Product: Virtualization
           Version: unspecified
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: kvm
        AssignedTo: virtualization_kvm@xxxxxxxxxxxxxxxxxxxx
        ReportedBy: nyh@xxxxxxxxxxxxxxxxxxx
        Regression: No


According to the VMX spec, the VMXON instruction takes a "VMXON region", a 4096
byte memory region which the VMX implementation (in this case, our emulation in
nested VMX) may use for its needs.

We currently have no need to for this memory area, because when our
implementation needs to store extra data, it stores it in the vmx_vcpu
structure (in L0 memory). However, we may want to store data in guest memory in
the future - e.g. for making it easier to do live migration (see bug 53851).

In any case, according to the VMX spec, the VMXON instruction is supposed to
verify that the memory pointed by the VMXON operand is 4K aligned and has the
right physical address width, and its content has the right VMCS revision field
(copied from VMX_BASIC). We don't do this currently.

Moreover, according to the spec, VMXON needs to save this pointer, and on
VMPTRLD/VMCLEAR we need to verify that the given VMCS pointer is not the VMXON
region.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux