Changeset View
Changeset View
Standalone View
Standalone View
head/sys/amd64/vmm/vmm.c
Show First 20 Lines • Show All 996 Lines • ▼ Show 20 Lines | #endif | ||||
} | } | ||||
} | } | ||||
void | void | ||||
vm_gpa_release(void *cookie) | vm_gpa_release(void *cookie) | ||||
{ | { | ||||
vm_page_t m = cookie; | vm_page_t m = cookie; | ||||
vm_page_lock(m); | |||||
vm_page_unwire(m, PQ_ACTIVE); | vm_page_unwire(m, PQ_ACTIVE); | ||||
vm_page_unlock(m); | |||||
} | } | ||||
int | int | ||||
vm_get_register(struct vm *vm, int vcpu, int reg, uint64_t *retval) | vm_get_register(struct vm *vm, int vcpu, int reg, uint64_t *retval) | ||||
{ | { | ||||
if (vcpu < 0 || vcpu >= vm->maxcpus) | if (vcpu < 0 || vcpu >= vm->maxcpus) | ||||
return (EINVAL); | return (EINVAL); | ||||
▲ Show 20 Lines • Show All 1,704 Lines • Show Last 20 Lines |