Go to the documentation of this file.
14 #ifndef ASM_KVM_HOST_H
15 #define ASM_KVM_HOST_H
16 #include <linux/hrtimer.h>
19 #include <asm/debug.h>
22 #define KVM_MAX_VCPUS 64
23 #define KVM_MEMORY_SLOTS 32
25 #define KVM_PRIVATE_MEM_SLOTS 4
43 #define KVM_NR_PAGE_SIZES 2
44 #define KVM_HPAGE_GFN_SHIFT(x) (((x) - 1) * 8)
45 #define KVM_HPAGE_SHIFT(x) (PAGE_SHIFT + KVM_HPAGE_GFN_SHIFT(x))
46 #define KVM_HPAGE_SIZE(x) (1UL << KVM_HPAGE_SHIFT(x))
47 #define KVM_HPAGE_MASK(x) (~(KVM_HPAGE_SIZE(x) - 1))
48 #define KVM_PAGES_PER_HPAGE(x) (KVM_HPAGE_SIZE(x) / PAGE_SIZE)
50 #define CPUSTAT_STOPPED 0x80000000
51 #define CPUSTAT_WAIT 0x10000000
52 #define CPUSTAT_ECALL_PEND 0x08000000
53 #define CPUSTAT_STOP_INT 0x04000000
54 #define CPUSTAT_IO_INT 0x02000000
55 #define CPUSTAT_EXT_INT 0x01000000
56 #define CPUSTAT_RUNNING 0x00800000
57 #define CPUSTAT_RETAINED 0x00400000
58 #define CPUSTAT_TIMING_SUB 0x00020000
59 #define CPUSTAT_SIE_SUB 0x00010000
60 #define CPUSTAT_RRF 0x00008000
61 #define CPUSTAT_SLSV 0x00004000
62 #define CPUSTAT_SLSR 0x00002000
63 #define CPUSTAT_ZARCH 0x00000800
64 #define CPUSTAT_MCDS 0x00000100
65 #define CPUSTAT_SM 0x00000080
66 #define CPUSTAT_G 0x00000008
67 #define CPUSTAT_J 0x00000002
68 #define CPUSTAT_P 0x00000001
78 #define LCTL_CR0 0x8000
166 #define PGM_OPERATION 0x01
167 #define PGM_PRIVILEGED_OPERATION 0x02
168 #define PGM_EXECUTE 0x03
169 #define PGM_PROTECTION 0x04
170 #define PGM_ADDRESSING 0x05
171 #define PGM_SPECIFICATION 0x06
172 #define PGM_DATA 0x07
204 #define ACTION_STORE_ON_STOP (1<<0)
205 #define ACTION_STOP_ON_STOP (1<<1)
206 #define ACTION_RELOADVCPU_ON_STOP (1<<2)