diff options
author | neel <neel@FreeBSD.org> | 2014-10-11 04:57:17 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2014-10-11 04:57:17 +0000 |
commit | 651ecc1e21c6f366f70d6171f991d44241137756 (patch) | |
tree | 1a268e33f089a2839aa292e0ce379d13e53cff32 /sys/amd64/vmm | |
parent | 0d5ab4a163c53d7ca0756796f5a34efae10f3e8d (diff) | |
download | FreeBSD-src-651ecc1e21c6f366f70d6171f991d44241137756.zip FreeBSD-src-651ecc1e21c6f366f70d6171f991d44241137756.tar.gz |
Remove extraneous comments.
Diffstat (limited to 'sys/amd64/vmm')
-rw-r--r-- | sys/amd64/vmm/amd/svm_softc.h | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/sys/amd64/vmm/amd/svm_softc.h b/sys/amd64/vmm/amd/svm_softc.h index 2cbcfb0..a5bb57c 100644 --- a/sys/amd64/vmm/amd/svm_softc.h +++ b/sys/amd64/vmm/amd/svm_softc.h @@ -38,7 +38,8 @@ struct asid { }; /* - * svm_vpcu contains SVM VMCB state and vcpu register state. + * XXX separate out 'struct vmcb' from 'svm_vcpu' to avoid wasting space + * due to VMCB alignment requirements. */ struct svm_vcpu { struct vmcb vmcb; /* hardware saved vcpu context */ @@ -54,29 +55,12 @@ struct svm_vcpu { * SVM softc, one per virtual machine. */ struct svm_softc { - /* - * IO permission map, VMCB.ctrl.iopm_base_pa should point to this. - * If a bit is set, access to I/O port is intercepted. - */ - uint8_t iopm_bitmap[SVM_IO_BITMAP_SIZE]; - - /* - * MSR permission bitmap, VMCB.ctrl.msrpm_base_pa should point to this. - * Two bits are used for each MSR with the LSB used for read access - * and the MSB used for write access. A value of '1' indicates that - * the operation is intercepted. - */ - uint8_t msr_bitmap[SVM_MSR_BITMAP_SIZE]; - + uint8_t iopm_bitmap[SVM_IO_BITMAP_SIZE]; /* shared by all vcpus */ + uint8_t msr_bitmap[SVM_MSR_BITMAP_SIZE]; /* shared by all vcpus */ uint8_t apic_page[VM_MAXCPU][PAGE_SIZE]; - /* Nested Paging */ - vm_offset_t nptp; - - /* Virtual machine pointer. */ - struct vm *vm; - - /* Guest VCPU h/w and s/w context. */ struct svm_vcpu vcpu[VM_MAXCPU]; + vm_offset_t nptp; /* nested page table */ + struct vm *vm; } __aligned(PAGE_SIZE); CTASSERT((offsetof(struct svm_softc, nptp) & PAGE_MASK) == 0); |