Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/io/vpmtmr.c
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
void | void | ||||
vpmtmr_cleanup(struct vpmtmr *vpmtmr) | vpmtmr_cleanup(struct vpmtmr *vpmtmr) | ||||
{ | { | ||||
free(vpmtmr, M_VPMTMR); | free(vpmtmr, M_VPMTMR); | ||||
} | } | ||||
int | int | ||||
vpmtmr_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, | vpmtmr_handler(struct vm *vm, bool in, int port, int bytes, uint32_t *val) | ||||
uint32_t *val) | |||||
{ | { | ||||
struct vpmtmr *vpmtmr; | struct vpmtmr *vpmtmr; | ||||
sbintime_t now, delta; | sbintime_t now, delta; | ||||
if (!in || bytes != 4) | if (!in || bytes != 4) | ||||
return (-1); | return (-1); | ||||
vpmtmr = vm_pmtmr(vm); | vpmtmr = vm_pmtmr(vm); | ||||
Show All 26 Lines |