KVM: document lapic regs field
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 24 Jun 2012 16:24:19 +0000 (19:24 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 25 Jun 2012 09:37:14 +0000 (12:37 +0300)
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/lapic.h

index 6f4ce25..d29da25 100644 (file)
@@ -13,6 +13,11 @@ struct kvm_lapic {
        u32 divide_count;
        struct kvm_vcpu *vcpu;
        bool irr_pending;
+       /**
+        * APIC register page.  The layout matches the register layout seen by
+        * the guest 1:1, because it is accessed by the vmx microcode.
+        * Note: Only one register, the TPR, is used by the microcode.
+        */
        void *regs;
        gpa_t vapic_addr;
        struct page *vapic_page;