diff options
author | neel <neel@FreeBSD.org> | 2012-10-20 08:23:05 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2012-10-20 08:23:05 +0000 |
commit | 26dd051c2cb82a04c38681e6726fef1fa8287c0d (patch) | |
tree | b98278c4c9e991b3a0ffad8fc6a056763ee38898 /sys/amd64/vmm/vmm_lapic.c | |
parent | beaad57fa07508b2383454e13f0a26824ada6328 (diff) | |
download | FreeBSD-src-26dd051c2cb82a04c38681e6726fef1fa8287c0d.zip FreeBSD-src-26dd051c2cb82a04c38681e6726fef1fa8287c0d.tar.gz |
Calculate the number of host ticks until the next guest timer interrupt.
This information will be used in conjunction with guest "HLT exiting" to
yield the thread hosting the virtual cpu.
Obtained from: NetApp
Diffstat (limited to 'sys/amd64/vmm/vmm_lapic.c')
-rw-r--r-- | sys/amd64/vmm/vmm_lapic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/vmm/vmm_lapic.c b/sys/amd64/vmm/vmm_lapic.c index ace6010..bb22122 100644 --- a/sys/amd64/vmm/vmm_lapic.c +++ b/sys/amd64/vmm/vmm_lapic.c @@ -106,14 +106,14 @@ lapic_set_intr(struct vm *vm, int cpu, int vector) return (0); } -void +int lapic_timer_tick(struct vm *vm, int cpu) { struct vlapic *vlapic; vlapic = vm_lapic(vm, cpu); - vlapic_timer_tick(vlapic); + return (vlapic_timer_tick(vlapic)); } static boolean_t |