Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
kvm_asm.h File Reference

Go to the source code of this file.

Macros

#define VCPU_SIZE_ORDER   4
 
#define VCPU_SIZE_LOG   (VCPU_SIZE_ORDER + 12)
 
#define VCPU_TLB_PGSZ   PPC44x_TLB_64K
 
#define VCPU_SIZE_BYTES   (1<<VCPU_SIZE_LOG)
 
#define BOOKE_INTERRUPT_CRITICAL   0
 
#define BOOKE_INTERRUPT_MACHINE_CHECK   1
 
#define BOOKE_INTERRUPT_DATA_STORAGE   2
 
#define BOOKE_INTERRUPT_INST_STORAGE   3
 
#define BOOKE_INTERRUPT_EXTERNAL   4
 
#define BOOKE_INTERRUPT_ALIGNMENT   5
 
#define BOOKE_INTERRUPT_PROGRAM   6
 
#define BOOKE_INTERRUPT_FP_UNAVAIL   7
 
#define BOOKE_INTERRUPT_SYSCALL   8
 
#define BOOKE_INTERRUPT_AP_UNAVAIL   9
 
#define BOOKE_INTERRUPT_DECREMENTER   10
 
#define BOOKE_INTERRUPT_FIT   11
 
#define BOOKE_INTERRUPT_WATCHDOG   12
 
#define BOOKE_INTERRUPT_DTLB_MISS   13
 
#define BOOKE_INTERRUPT_ITLB_MISS   14
 
#define BOOKE_INTERRUPT_DEBUG   15
 
#define BOOKE_INTERRUPT_SPE_UNAVAIL   32
 
#define BOOKE_INTERRUPT_SPE_FP_DATA   33
 
#define BOOKE_INTERRUPT_SPE_FP_ROUND   34
 
#define BOOKE_INTERRUPT_PERFORMANCE_MONITOR   35
 
#define BOOKE_INTERRUPT_DOORBELL   36
 
#define BOOKE_INTERRUPT_DOORBELL_CRITICAL   37
 
#define BOOKE_INTERRUPT_GUEST_DBELL   38
 
#define BOOKE_INTERRUPT_GUEST_DBELL_CRIT   39
 
#define BOOKE_INTERRUPT_HV_SYSCALL   40
 
#define BOOKE_INTERRUPT_HV_PRIV   41
 
#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_EXTERNAL_LEVEL   0x501
 
#define BOOK3S_INTERRUPT_EXTERNAL_HV   0x502
 
#define BOOK3S_INTERRUPT_ALIGNMENT   0x600
 
#define BOOK3S_INTERRUPT_PROGRAM   0x700
 
#define BOOK3S_INTERRUPT_FP_UNAVAIL   0x800
 
#define BOOK3S_INTERRUPT_DECREMENTER   0x900
 
#define BOOK3S_INTERRUPT_HV_DECREMENTER   0x980
 
#define BOOK3S_INTERRUPT_SYSCALL   0xc00
 
#define BOOK3S_INTERRUPT_TRACE   0xd00
 
#define BOOK3S_INTERRUPT_H_DATA_STORAGE   0xe00
 
#define BOOK3S_INTERRUPT_H_INST_STORAGE   0xe20
 
#define BOOK3S_INTERRUPT_H_EMUL_ASSIST   0xe40
 
#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_EXTERNAL_LEVEL   16
 
#define BOOK3S_IRQPRIO_MAX   17
 
#define BOOK3S_HFLAG_DCBZ32   0x1
 
#define BOOK3S_HFLAG_SLB   0x2
 
#define BOOK3S_HFLAG_PAIRED_SINGLE   0x4
 
#define BOOK3S_HFLAG_NATIVE_PS   0x8
 
#define RESUME_FLAG_NV   (1<<0) /* Reload guest nonvolatile state? */
 
#define RESUME_FLAG_HOST   (1<<1) /* Resume host? */
 
#define RESUME_GUEST   0
 
#define RESUME_GUEST_NV   RESUME_FLAG_NV
 
#define RESUME_HOST   RESUME_FLAG_HOST
 
#define RESUME_HOST_NV   (RESUME_FLAG_HOST|RESUME_FLAG_NV)
 
#define KVM_GUEST_MODE_NONE   0
 
#define KVM_GUEST_MODE_GUEST   1
 
#define KVM_GUEST_MODE_SKIP   2
 
#define KVM_INST_FETCH_FAILED   -1
 

Macro Definition Documentation

#define BOOK3S_HFLAG_DCBZ32   0x1

Definition at line 114 of file kvm_asm.h.

#define BOOK3S_HFLAG_NATIVE_PS   0x8

Definition at line 117 of file kvm_asm.h.

#define BOOK3S_HFLAG_PAIRED_SINGLE   0x4

Definition at line 116 of file kvm_asm.h.

#define BOOK3S_HFLAG_SLB   0x2

Definition at line 115 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_ALIGNMENT   0x600

Definition at line 81 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_ALTIVEC   0xf20

Definition at line 92 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_DATA_SEGMENT   0x380

Definition at line 75 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_DATA_STORAGE   0x300

Definition at line 74 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_DECREMENTER   0x900

Definition at line 84 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_EXTERNAL   0x500

Definition at line 78 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_EXTERNAL_HV   0x502

Definition at line 80 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_EXTERNAL_LEVEL   0x501

Definition at line 79 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_FP_UNAVAIL   0x800

Definition at line 83 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_H_DATA_STORAGE   0xe00

Definition at line 88 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_H_EMUL_ASSIST   0xe40

Definition at line 90 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_H_INST_STORAGE   0xe20

Definition at line 89 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_HV_DECREMENTER   0x980

Definition at line 85 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_INST_SEGMENT   0x480

Definition at line 77 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_INST_STORAGE   0x400

Definition at line 76 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_MACHINE_CHECK   0x200

Definition at line 73 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_PERFMON   0xf00

Definition at line 91 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_PROGRAM   0x700

Definition at line 82 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_SYSCALL   0xc00

Definition at line 86 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_SYSTEM_RESET   0x100

Definition at line 72 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_TRACE   0xd00

Definition at line 87 of file kvm_asm.h.

#define BOOK3S_INTERRUPT_VSX   0xf40

Definition at line 93 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_ALIGNMENT   5

Definition at line 100 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_ALTIVEC   8

Definition at line 103 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_DATA_SEGMENT   1

Definition at line 96 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_DATA_STORAGE   3

Definition at line 98 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_DEBUG   12

Definition at line 107 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_DECREMENTER   14

Definition at line 109 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_EXTERNAL   13

Definition at line 108 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_EXTERNAL_LEVEL   16

Definition at line 111 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_FP_UNAVAIL   7

Definition at line 102 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_INST_SEGMENT   2

Definition at line 97 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_INST_STORAGE   4

Definition at line 99 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_MACHINE_CHECK   11

Definition at line 106 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_MAX   17

Definition at line 112 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_PERFORMANCE_MONITOR   15

Definition at line 110 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_PROGRAM   6

Definition at line 101 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_SYSCALL   10

Definition at line 105 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_SYSTEM_RESET   0

Definition at line 95 of file kvm_asm.h.

#define BOOK3S_IRQPRIO_VSX   9

Definition at line 104 of file kvm_asm.h.

#define BOOKE_INTERRUPT_ALIGNMENT   5

Definition at line 44 of file kvm_asm.h.

#define BOOKE_INTERRUPT_AP_UNAVAIL   9

Definition at line 48 of file kvm_asm.h.

#define BOOKE_INTERRUPT_CRITICAL   0

Definition at line 39 of file kvm_asm.h.

#define BOOKE_INTERRUPT_DATA_STORAGE   2

Definition at line 41 of file kvm_asm.h.

#define BOOKE_INTERRUPT_DEBUG   15

Definition at line 54 of file kvm_asm.h.

#define BOOKE_INTERRUPT_DECREMENTER   10

Definition at line 49 of file kvm_asm.h.

#define BOOKE_INTERRUPT_DOORBELL   36

Definition at line 61 of file kvm_asm.h.

#define BOOKE_INTERRUPT_DOORBELL_CRITICAL   37

Definition at line 62 of file kvm_asm.h.

#define BOOKE_INTERRUPT_DTLB_MISS   13

Definition at line 52 of file kvm_asm.h.

#define BOOKE_INTERRUPT_EXTERNAL   4

Definition at line 43 of file kvm_asm.h.

#define BOOKE_INTERRUPT_FIT   11

Definition at line 50 of file kvm_asm.h.

#define BOOKE_INTERRUPT_FP_UNAVAIL   7

Definition at line 46 of file kvm_asm.h.

#define BOOKE_INTERRUPT_GUEST_DBELL   38

Definition at line 65 of file kvm_asm.h.

#define BOOKE_INTERRUPT_GUEST_DBELL_CRIT   39

Definition at line 66 of file kvm_asm.h.

#define BOOKE_INTERRUPT_HV_PRIV   41

Definition at line 68 of file kvm_asm.h.

#define BOOKE_INTERRUPT_HV_SYSCALL   40

Definition at line 67 of file kvm_asm.h.

#define BOOKE_INTERRUPT_INST_STORAGE   3

Definition at line 42 of file kvm_asm.h.

#define BOOKE_INTERRUPT_ITLB_MISS   14

Definition at line 53 of file kvm_asm.h.

#define BOOKE_INTERRUPT_MACHINE_CHECK   1

Definition at line 40 of file kvm_asm.h.

#define BOOKE_INTERRUPT_PERFORMANCE_MONITOR   35

Definition at line 60 of file kvm_asm.h.

#define BOOKE_INTERRUPT_PROGRAM   6

Definition at line 45 of file kvm_asm.h.

#define BOOKE_INTERRUPT_SPE_FP_DATA   33

Definition at line 58 of file kvm_asm.h.

#define BOOKE_INTERRUPT_SPE_FP_ROUND   34

Definition at line 59 of file kvm_asm.h.

#define BOOKE_INTERRUPT_SPE_UNAVAIL   32

Definition at line 57 of file kvm_asm.h.

#define BOOKE_INTERRUPT_SYSCALL   8

Definition at line 47 of file kvm_asm.h.

#define BOOKE_INTERRUPT_WATCHDOG   12

Definition at line 51 of file kvm_asm.h.

#define KVM_GUEST_MODE_GUEST   1

Definition at line 128 of file kvm_asm.h.

#define KVM_GUEST_MODE_NONE   0

Definition at line 127 of file kvm_asm.h.

#define KVM_GUEST_MODE_SKIP   2

Definition at line 129 of file kvm_asm.h.

#define KVM_INST_FETCH_FAILED   -1

Definition at line 131 of file kvm_asm.h.

#define RESUME_FLAG_HOST   (1<<1) /* Resume host? */

Definition at line 120 of file kvm_asm.h.

#define RESUME_FLAG_NV   (1<<0) /* Reload guest nonvolatile state? */

Definition at line 119 of file kvm_asm.h.

#define RESUME_GUEST   0

Definition at line 122 of file kvm_asm.h.

#define RESUME_GUEST_NV   RESUME_FLAG_NV

Definition at line 123 of file kvm_asm.h.

#define RESUME_HOST   RESUME_FLAG_HOST

Definition at line 124 of file kvm_asm.h.

#define RESUME_HOST_NV   (RESUME_FLAG_HOST|RESUME_FLAG_NV)

Definition at line 125 of file kvm_asm.h.

#define VCPU_SIZE_BYTES   (1<<VCPU_SIZE_LOG)

Definition at line 37 of file kvm_asm.h.

#define VCPU_SIZE_LOG   (VCPU_SIZE_ORDER + 12)

Definition at line 35 of file kvm_asm.h.

#define VCPU_SIZE_ORDER   4

Definition at line 34 of file kvm_asm.h.

#define VCPU_TLB_PGSZ   PPC44x_TLB_64K

Definition at line 36 of file kvm_asm.h.