]> Pileus Git - ~andy/linux/commit
Add interrupt handling code
authorAlexander Graf <agraf@suse.de>
Fri, 30 Oct 2009 05:47:09 +0000 (05:47 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Nov 2009 05:49:54 +0000 (16:49 +1100)
commitc862125c8ae4c261ecbb096ab12b1fa55fcfce8d
treec7c54cbbcdd71ceb45c57685b1ef0f3ae6650c9a
parent5126ed37603ae3a5ec764d99d77430a179021699
Add interrupt handling code

Getting from host state to the guest is only half the story. We also need
to return to our host context and handle whatever happened to get us out of
the guest.

On PowerPC every guest exit is an interrupt. So all we need to do is trap
the host's interrupt handlers and get into our #VMEXIT code to handle it.

PowerPCs also have a register that can add an offset to the interrupt handlers'
adresses which is what the booke KVM code uses. Unfortunately that is a
hypervisor ressource and we also want to be able to run KVM when we're running
in an LPAR. So we have to hook into the Linux interrupt handlers.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kvm/book3s_64_rmhandlers.S [new file with mode: 0644]