]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S: Add support for ibm,int-on/off RTAS calls
authorPaul Mackerras <paulus@samba.org>
Wed, 17 Apr 2013 20:32:04 +0000 (20:32 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 18:27:33 +0000 (20:27 +0200)
commit4d3ebb18cbbe107086251ae69635583210aee1b7
tree1fc7dce84e6f1007a09e424b9c0b83cee8e5b631
parentc8506b62c222eecdd65f1ddc5171f47d8107d989
KVM: PPC: Book3S: Add support for ibm,int-on/off RTAS calls

This adds support for the ibm,int-on and ibm,int-off RTAS calls to the
in-kernel XICS emulation and corrects the handling of the saved
priority by the ibm,set-xive RTAS call.  With this, ibm,int-off sets
the specified interrupt's priority in its saved_priority field and
sets the priority to 0xff (the least favoured value).  ibm,int-on
restores the saved_priority to the priority field, and ibm,set-xive
sets both the priority and the saved_priority to the specified
priority value.

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