From e7ebb9541a8be6ea07b5eccf2bff421fe6d5e84e Mon Sep 17 00:00:00 2001 From: neel Date: Sat, 7 Dec 2013 23:11:12 +0000 Subject: 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) --- sys/amd64/vmm/vmm_lapic.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sys/amd64/vmm/vmm_lapic.c') 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) { -- cgit v1.1