KVM: PPC: Book3S: Facilities to save/restore XICS presentation ctrler state
authorPaul Mackerras <paulus@samba.org>
Wed, 17 Apr 2013 20:32:26 +0000 (20:32 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 18:27:34 +0000 (20:27 +0200)
commit8b78645c93b5d469e8006d68dbc92edc2640c654
tree5f558213cc4bd2677069232d7dc1a78c96aee165
parentd19bd86204f85d42873e07bb64a27587fc380b5b
KVM: PPC: Book3S: Facilities to save/restore XICS presentation ctrler state

This adds the ability for userspace to save and restore the state
of the XICS interrupt presentation controllers (ICPs) via the
KVM_GET/SET_ONE_REG interface.  Since there is one ICP per vcpu, we
simply define a new 64-bit register in the ONE_REG space for the ICP
state.  The state includes the CPU priority setting, the pending IPI
priority, and the priority and source number of any pending external
interrupt.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Documentation/virtual/kvm/api.txt
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/include/uapi/asm/kvm.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_xics.c