Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/vmm.c
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
#define vcpu_unlock(v) mtx_unlock_spin(&((v)->mtx)) | #define vcpu_unlock(v) mtx_unlock_spin(&((v)->mtx)) | ||||
#define vcpu_assert_locked(v) mtx_assert(&((v)->mtx), MA_OWNED) | #define vcpu_assert_locked(v) mtx_assert(&((v)->mtx), MA_OWNED) | ||||
struct mem_seg { | struct mem_seg { | ||||
size_t len; | size_t len; | ||||
bool sysmem; | bool sysmem; | ||||
struct vm_object *object; | struct vm_object *object; | ||||
}; | }; | ||||
#define VM_MAX_MEMSEGS 3 | #define VM_MAX_MEMSEGS 4 | ||||
struct mem_map { | struct mem_map { | ||||
vm_paddr_t gpa; | vm_paddr_t gpa; | ||||
size_t len; | size_t len; | ||||
vm_ooffset_t segoff; | vm_ooffset_t segoff; | ||||
int segid; | int segid; | ||||
int prot; | int prot; | ||||
int flags; | int flags; | ||||
▲ Show 20 Lines • Show All 2,808 Lines • Show Last 20 Lines |