Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/include/vmm.h
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | |||||
extern struct vmm_ops vmm_ops_amd; | extern struct vmm_ops vmm_ops_amd; | ||||
int vm_create(const char *name, struct vm **retvm); | int vm_create(const char *name, struct vm **retvm); | ||||
void vm_destroy(struct vm *vm); | void vm_destroy(struct vm *vm); | ||||
int vm_reinit(struct vm *vm); | int vm_reinit(struct vm *vm); | ||||
const char *vm_name(struct vm *vm); | const char *vm_name(struct vm *vm); | ||||
void vm_get_topology(struct vm *vm, uint16_t *sockets, uint16_t *cores, | void vm_get_topology(struct vm *vm, uint16_t *sockets, uint16_t *cores, | ||||
uint16_t *threads, uint16_t *maxcpus); | uint16_t *threads, uint16_t *maxcpus); | ||||
uint16_t vm_get_maxcpus(struct vm *vm); | |||||
int vm_set_topology(struct vm *vm, uint16_t sockets, uint16_t cores, | int vm_set_topology(struct vm *vm, uint16_t sockets, uint16_t cores, | ||||
uint16_t threads, uint16_t maxcpus); | uint16_t threads, uint16_t maxcpus); | ||||
/* | /* | ||||
* APIs that modify the guest memory map require all vcpus to be frozen. | * APIs that modify the guest memory map require all vcpus to be frozen. | ||||
*/ | */ | ||||
int vm_mmap_memseg(struct vm *vm, vm_paddr_t gpa, int segid, vm_ooffset_t off, | int vm_mmap_memseg(struct vm *vm, vm_paddr_t gpa, int segid, vm_ooffset_t off, | ||||
size_t len, int prot, int flags); | size_t len, int prot, int flags); | ||||
▲ Show 20 Lines • Show All 503 Lines • Show Last 20 Lines |