]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
kvm/x86: split ioapic-handled and EOI exit bitmaps
authorAndrey Smetanin <asmetanin@virtuozzo.com>
Tue, 10 Nov 2015 12:36:32 +0000 (15:36 +0300)
committerKamal Mostafa <kamal@canonical.com>
Wed, 13 Jul 2016 15:58:14 +0000 (08:58 -0700)
commit63e1d15ed795d4df375da9a43f0ccb3d814eea05
treecfbc1315e94e9508755754af3861b36445cbe4c0
parent78211f38919148209de86252ed1d88295483c724
kvm/x86: split ioapic-handled and EOI exit bitmaps

BugLink: http://bugs.launchpad.net/bugs/1583357
The function to determine if the vector is handled by ioapic used to
rely on the fact that only ioapic-handled vectors were set up to
cause vmexits when virtual apic was in use.

We're going to break this assumption when introducing Hyper-V
synthetic interrupts: they may need to cause vmexits too.

To achieve that, introduce a new bitmap dedicated specifically for
ioapic-handled vectors, and populate EOI exit bitmap from it for now.

Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Gleb Natapov <gleb@kernel.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Denis V. Lunev <den@openvz.org>
CC: qemu-devel@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 6308630bd3dbb6a8a883c4c571ce5e5a759a8a0e)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/ioapic.c
arch/x86/kvm/ioapic.h
arch/x86/kvm/irq_comm.c
arch/x86/kvm/lapic.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c