]> git.ipfire.org Git - people/arne_f/kernel.git/commit
KVM: PPC: Book3S HV: Enable hypervisor virtualization interrupts while in guest
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 22 Nov 2016 03:30:14 +0000 (14:30 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 23 Nov 2016 22:24:23 +0000 (09:24 +1100)
commit84f7139c064ed740d183ae535bda2f6d7ffc0d57
tree3783505400532ebae69c9cdcb1ff7980fba5b6b3
parentbf53c88e42ac5dfdef649888d01b3bc96375647b
KVM: PPC: Book3S HV: Enable hypervisor virtualization interrupts while in guest

The new XIVE interrupt controller on POWER9 can direct external
interrupts to the hypervisor or the guest.  The interrupts directed to
the hypervisor are controlled by an LPCR bit called LPCR_HVICE, and
come in as a "hypervisor virtualization interrupt".  This sets the
LPCR bit so that hypervisor virtualization interrupts can occur while
we are in the guest.  We then also need to cope with exiting the guest
because of a hypervisor virtualization interrupt.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_asm.h
arch/powerpc/kvm/book3s_hv.c