diff options
author | neel <neel@FreeBSD.org> | 2013-12-07 23:11:12 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2013-12-07 23:11:12 +0000 |
commit | e7ebb9541a8be6ea07b5eccf2bff421fe6d5e84e (patch) | |
tree | bae489a2317c3cb8e1ef29791ecee7e8cd5c1529 /sys/amd64/vmm/vmm_lapic.c | |
parent | f24ecdf1041ec511cab3b3b8baf76e2ccccee14a (diff) | |
download | FreeBSD-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.c | 10 |
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) { |