Add Book3s definitions
authorAlexander Graf <agraf@suse.de>
Fri, 30 Oct 2009 05:47:03 +0000 (05:47 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Nov 2009 05:49:52 +0000 (16:49 +1100)
We need quite a bunch of new constants for KVM on Book3s,
so let's define them now.

These constants will be used in later patches.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/kvm_asm.h

index 56bfae59837f761a03d4bb81a763281fbb224912..19ddb352fd0fccaede75e4dde9aafd34ecfc4a93 100644 (file)
 #define BOOKE_INTERRUPT_SPE_FP_ROUND 34
 #define BOOKE_INTERRUPT_PERFORMANCE_MONITOR 35
 
+/* book3s */
+
+#define BOOK3S_INTERRUPT_SYSTEM_RESET  0x100
+#define BOOK3S_INTERRUPT_MACHINE_CHECK 0x200
+#define BOOK3S_INTERRUPT_DATA_STORAGE  0x300
+#define BOOK3S_INTERRUPT_DATA_SEGMENT  0x380
+#define BOOK3S_INTERRUPT_INST_STORAGE  0x400
+#define BOOK3S_INTERRUPT_INST_SEGMENT  0x480
+#define BOOK3S_INTERRUPT_EXTERNAL      0x500
+#define BOOK3S_INTERRUPT_ALIGNMENT     0x600
+#define BOOK3S_INTERRUPT_PROGRAM       0x700
+#define BOOK3S_INTERRUPT_FP_UNAVAIL    0x800
+#define BOOK3S_INTERRUPT_DECREMENTER   0x900
+#define BOOK3S_INTERRUPT_SYSCALL       0xc00
+#define BOOK3S_INTERRUPT_TRACE         0xd00
+#define BOOK3S_INTERRUPT_PERFMON       0xf00
+#define BOOK3S_INTERRUPT_ALTIVEC       0xf20
+#define BOOK3S_INTERRUPT_VSX           0xf40
+
+#define BOOK3S_IRQPRIO_SYSTEM_RESET            0
+#define BOOK3S_IRQPRIO_DATA_SEGMENT            1
+#define BOOK3S_IRQPRIO_INST_SEGMENT            2
+#define BOOK3S_IRQPRIO_DATA_STORAGE            3
+#define BOOK3S_IRQPRIO_INST_STORAGE            4
+#define BOOK3S_IRQPRIO_ALIGNMENT               5
+#define BOOK3S_IRQPRIO_PROGRAM                 6
+#define BOOK3S_IRQPRIO_FP_UNAVAIL              7
+#define BOOK3S_IRQPRIO_ALTIVEC                 8
+#define BOOK3S_IRQPRIO_VSX                     9
+#define BOOK3S_IRQPRIO_SYSCALL                 10
+#define BOOK3S_IRQPRIO_MACHINE_CHECK           11
+#define BOOK3S_IRQPRIO_DEBUG                   12
+#define BOOK3S_IRQPRIO_EXTERNAL                        13
+#define BOOK3S_IRQPRIO_DECREMENTER             14
+#define BOOK3S_IRQPRIO_PERFORMANCE_MONITOR     15
+#define BOOK3S_IRQPRIO_MAX                     16
+
+#define BOOK3S_HFLAG_DCBZ32                    0x1
+
 #define RESUME_FLAG_NV          (1<<0)  /* Reload guest nonvolatile state? */
 #define RESUME_FLAG_HOST        (1<<1)  /* Resume host? */