aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/booke.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kvm/booke.h')
-rw-r--r--arch/powerpc/kvm/booke.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke.h b/arch/powerpc/kvm/booke.h
index f694a4b2dafa..48d905fd60ab 100644
--- a/arch/powerpc/kvm/booke.h
+++ b/arch/powerpc/kvm/booke.h
@@ -23,6 +23,24 @@
23#include <linux/types.h> 23#include <linux/types.h>
24#include <linux/kvm_host.h> 24#include <linux/kvm_host.h>
25 25
26/* interrupt priortity ordering */
27#define BOOKE_IRQPRIO_DATA_STORAGE 0
28#define BOOKE_IRQPRIO_INST_STORAGE 1
29#define BOOKE_IRQPRIO_ALIGNMENT 2
30#define BOOKE_IRQPRIO_PROGRAM 3
31#define BOOKE_IRQPRIO_FP_UNAVAIL 4
32#define BOOKE_IRQPRIO_SYSCALL 5
33#define BOOKE_IRQPRIO_AP_UNAVAIL 6
34#define BOOKE_IRQPRIO_DTLB_MISS 7
35#define BOOKE_IRQPRIO_ITLB_MISS 8
36#define BOOKE_IRQPRIO_MACHINE_CHECK 9
37#define BOOKE_IRQPRIO_DEBUG 10
38#define BOOKE_IRQPRIO_CRITICAL 11
39#define BOOKE_IRQPRIO_WATCHDOG 12
40#define BOOKE_IRQPRIO_EXTERNAL 13
41#define BOOKE_IRQPRIO_FIT 14
42#define BOOKE_IRQPRIO_DECREMENTER 15
43
26/* Helper function for "full" MSR writes. No need to call this if only EE is 44/* Helper function for "full" MSR writes. No need to call this if only EE is
27 * changing. */ 45 * changing. */
28static inline void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr) 46static inline void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr)