summaryrefslogtreecommitdiffstats
path: root/sys/amd64/vmm/vmm_lapic.c
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2013-12-07 23:11:12 +0000
committerneel <neel@FreeBSD.org>2013-12-07 23:11:12 +0000
commite7ebb9541a8be6ea07b5eccf2bff421fe6d5e84e (patch)
treebae489a2317c3cb8e1ef29791ecee7e8cd5c1529 /sys/amd64/vmm/vmm_lapic.c
parentf24ecdf1041ec511cab3b3b8baf76e2ccccee14a (diff)
downloadFreeBSD-src-e7ebb9541a8be6ea07b5eccf2bff421fe6d5e84e.zip
FreeBSD-src-e7ebb9541a8be6ea07b5eccf2bff421fe6d5e84e.tar.gz
Use callout(9) to drive the vlapic timer instead of clocking it on each VM exit.
This decouples the guest's 'hz' from the host's 'hz' setting. For e.g. it is now possible to have a guest run at 'hz=1000' while the host is at 'hz=100'. Discussed with: grehan@ Tested by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)
Diffstat (limited to 'sys/amd64/vmm/vmm_lapic.c')
-rw-r--r--sys/amd64/vmm/vmm_lapic.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/amd64/vmm/vmm_lapic.c b/sys/amd64/vmm/vmm_lapic.c
index 5217529..0b54442 100644
--- a/sys/amd64/vmm/vmm_lapic.c
+++ b/sys/amd64/vmm/vmm_lapic.c
@@ -80,16 +80,6 @@ lapic_set_intr(struct vm *vm, int cpu, int vector, bool level)
return (0);
}
-int
-lapic_timer_tick(struct vm *vm, int cpu)
-{
- struct vlapic *vlapic;
-
- vlapic = vm_lapic(vm, cpu);
-
- return (vlapic_timer_tick(vlapic));
-}
-
static boolean_t
x2apic_msr(u_int msr)
{
OpenPOWER on IntegriCloud