Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
kvm_host.h File Reference
#include <linux/hrtimer.h>
#include <linux/interrupt.h>
#include <linux/kvm_host.h>
#include <asm/debug.h>
#include <asm/cpu.h>

Go to the source code of this file.

Data Structures

struct  sca_entry
 
struct  sca_block
 
struct  kvm_s390_sie_block
 
struct  kvm_vcpu_stat
 
struct  kvm_s390_io_info
 
struct  kvm_s390_ext_info
 
struct  kvm_s390_pgm_info
 
struct  kvm_s390_prefix_info
 
struct  kvm_s390_extcall_info
 
struct  kvm_s390_emerg_info
 
struct  kvm_s390_interrupt_info
 
struct  kvm_s390_local_interrupt
 
struct  kvm_s390_float_interrupt
 
struct  kvm_vcpu_arch
 
struct  kvm_vm_stat
 
struct  kvm_arch_memory_slot
 
struct  kvm_arch
 

Macros

#define KVM_MAX_VCPUS   64
 
#define KVM_MEMORY_SLOTS   32
 
#define KVM_PRIVATE_MEM_SLOTS   4
 
#define KVM_NR_PAGE_SIZES   2
 
#define KVM_HPAGE_GFN_SHIFT(x)   (((x) - 1) * 8)
 
#define KVM_HPAGE_SHIFT(x)   (PAGE_SHIFT + KVM_HPAGE_GFN_SHIFT(x))
 
#define KVM_HPAGE_SIZE(x)   (1UL << KVM_HPAGE_SHIFT(x))
 
#define KVM_HPAGE_MASK(x)   (~(KVM_HPAGE_SIZE(x) - 1))
 
#define KVM_PAGES_PER_HPAGE(x)   (KVM_HPAGE_SIZE(x) / PAGE_SIZE)
 
#define CPUSTAT_STOPPED   0x80000000
 
#define CPUSTAT_WAIT   0x10000000
 
#define CPUSTAT_ECALL_PEND   0x08000000
 
#define CPUSTAT_STOP_INT   0x04000000
 
#define CPUSTAT_IO_INT   0x02000000
 
#define CPUSTAT_EXT_INT   0x01000000
 
#define CPUSTAT_RUNNING   0x00800000
 
#define CPUSTAT_RETAINED   0x00400000
 
#define CPUSTAT_TIMING_SUB   0x00020000
 
#define CPUSTAT_SIE_SUB   0x00010000
 
#define CPUSTAT_RRF   0x00008000
 
#define CPUSTAT_SLSV   0x00004000
 
#define CPUSTAT_SLSR   0x00002000
 
#define CPUSTAT_ZARCH   0x00000800
 
#define CPUSTAT_MCDS   0x00000100
 
#define CPUSTAT_SM   0x00000080
 
#define CPUSTAT_G   0x00000008
 
#define CPUSTAT_J   0x00000002
 
#define CPUSTAT_P   0x00000001
 
#define LCTL_CR0   0x8000
 
#define PGM_OPERATION   0x01
 
#define PGM_PRIVILEGED_OPERATION   0x02
 
#define PGM_EXECUTE   0x03
 
#define PGM_PROTECTION   0x04
 
#define PGM_ADDRESSING   0x05
 
#define PGM_SPECIFICATION   0x06
 
#define PGM_DATA   0x07
 
#define ACTION_STORE_ON_STOP   (1<<0)
 
#define ACTION_STOP_ON_STOP   (1<<1)
 
#define ACTION_RELOADVCPU_ON_STOP   (1<<2)
 

Functions

struct sca_entry __attribute__ ((packed))
 
int sie64a (struct kvm_s390_sie_block *, u64 *)
 

Variables

atomic_t scn
 
__u32 reserved
 
__u64 sda
 
__u64 reserved2 [2]
 
__u64 ipte_control
 
__u64 mcn
 
struct sca_entry cpu [64]
 
atomic_t cpuflags
 
__u32 prefix
 
__u8 reserved8 [32]
 
__u64 cputm
 
__u64 ckc
 
__u64 epoch
 
__u8 reserved40 [4]
 
__u16 lctl
 
__s16 icpua
 
__u32 ictl
 
__u32 eca
 
__u8 icptcode
 
__u8 reserved51
 
__u16 ihcpu
 
__u8 reserved54 [2]
 
__u16 ipa
 
__u32 ipb
 
__u32 scaoh
 
__u8 reserved60
 
__u8 ecb
 
__u8 reserved62 [2]
 
__u32 scaol
 
__u8 reserved68 [4]
 
__u32 todpr
 
__u8 reserved70 [32]
 
psw_t gpsw
 
__u64 gg14
 
__u64 gg15
 
__u8 reservedb0 [30]
 
__u16 iprcc
 
__u8 reservedd0 [48]
 
__u64 gcr [16]
 
__u64 gbea
 
__u8 reserved188 [24]
 
__u32 fac
 
__u8 reserved1a4 [92]
 
struct kvm_vcpu_stat __attribute__
 

Macro Definition Documentation

#define ACTION_RELOADVCPU_ON_STOP   (1<<2)

Definition at line 206 of file kvm_host.h.

#define ACTION_STOP_ON_STOP   (1<<1)

Definition at line 205 of file kvm_host.h.

#define ACTION_STORE_ON_STOP   (1<<0)

Definition at line 204 of file kvm_host.h.

#define CPUSTAT_ECALL_PEND   0x08000000

Definition at line 52 of file kvm_host.h.

#define CPUSTAT_EXT_INT   0x01000000

Definition at line 55 of file kvm_host.h.

#define CPUSTAT_G   0x00000008

Definition at line 66 of file kvm_host.h.

#define CPUSTAT_IO_INT   0x02000000

Definition at line 54 of file kvm_host.h.

#define CPUSTAT_J   0x00000002

Definition at line 67 of file kvm_host.h.

#define CPUSTAT_MCDS   0x00000100

Definition at line 64 of file kvm_host.h.

#define CPUSTAT_P   0x00000001

Definition at line 68 of file kvm_host.h.

#define CPUSTAT_RETAINED   0x00400000

Definition at line 57 of file kvm_host.h.

#define CPUSTAT_RRF   0x00008000

Definition at line 60 of file kvm_host.h.

#define CPUSTAT_RUNNING   0x00800000

Definition at line 56 of file kvm_host.h.

#define CPUSTAT_SIE_SUB   0x00010000

Definition at line 59 of file kvm_host.h.

#define CPUSTAT_SLSR   0x00002000

Definition at line 62 of file kvm_host.h.

#define CPUSTAT_SLSV   0x00004000

Definition at line 61 of file kvm_host.h.

#define CPUSTAT_SM   0x00000080

Definition at line 65 of file kvm_host.h.

#define CPUSTAT_STOP_INT   0x04000000

Definition at line 53 of file kvm_host.h.

#define CPUSTAT_STOPPED   0x80000000

Definition at line 50 of file kvm_host.h.

#define CPUSTAT_TIMING_SUB   0x00020000

Definition at line 58 of file kvm_host.h.

#define CPUSTAT_WAIT   0x10000000

Definition at line 51 of file kvm_host.h.

#define CPUSTAT_ZARCH   0x00000800

Definition at line 63 of file kvm_host.h.

#define KVM_HPAGE_GFN_SHIFT (   x)    (((x) - 1) * 8)

Definition at line 44 of file kvm_host.h.

#define KVM_HPAGE_MASK (   x)    (~(KVM_HPAGE_SIZE(x) - 1))

Definition at line 47 of file kvm_host.h.

#define KVM_HPAGE_SHIFT (   x)    (PAGE_SHIFT + KVM_HPAGE_GFN_SHIFT(x))

Definition at line 45 of file kvm_host.h.

#define KVM_HPAGE_SIZE (   x)    (1UL << KVM_HPAGE_SHIFT(x))

Definition at line 46 of file kvm_host.h.

#define KVM_MAX_VCPUS   64

Definition at line 22 of file kvm_host.h.

#define KVM_MEMORY_SLOTS   32

Definition at line 23 of file kvm_host.h.

#define KVM_NR_PAGE_SIZES   2

Definition at line 43 of file kvm_host.h.

#define KVM_PAGES_PER_HPAGE (   x)    (KVM_HPAGE_SIZE(x) / PAGE_SIZE)

Definition at line 48 of file kvm_host.h.

#define KVM_PRIVATE_MEM_SLOTS   4

Definition at line 25 of file kvm_host.h.

#define LCTL_CR0   0x8000

Definition at line 116 of file kvm_host.h.

#define PGM_ADDRESSING   0x05

Definition at line 170 of file kvm_host.h.

#define PGM_DATA   0x07

Definition at line 172 of file kvm_host.h.

#define PGM_EXECUTE   0x03

Definition at line 168 of file kvm_host.h.

#define PGM_OPERATION   0x01

Definition at line 166 of file kvm_host.h.

#define PGM_PRIVILEGED_OPERATION   0x02

Definition at line 167 of file kvm_host.h.

#define PGM_PROTECTION   0x04

Definition at line 169 of file kvm_host.h.

#define PGM_SPECIFICATION   0x06

Definition at line 171 of file kvm_host.h.

Function Documentation

struct sca_entry __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

int sie64a ( struct kvm_s390_sie_block ,
u64  
)

Variable Documentation

__u64 ckc

Definition at line 113 of file kvm_host.h.

Definition at line 46 of file kvm_host.h.

atomic_t cpuflags

Definition at line 109 of file kvm_host.h.

__u64 cputm

Definition at line 112 of file kvm_host.h.

__u32 eca

Definition at line 120 of file kvm_host.h.

Definition at line 129 of file kvm_host.h.

__u64 epoch

Definition at line 114 of file kvm_host.h.

__u32 fac

Definition at line 144 of file kvm_host.h.

__u64 gbea

Definition at line 142 of file kvm_host.h.

__u64 gcr[16]

Definition at line 141 of file kvm_host.h.

__u64 gg14

Definition at line 136 of file kvm_host.h.

__u64 gg15

Definition at line 137 of file kvm_host.h.

psw_t gpsw

Definition at line 135 of file kvm_host.h.

__u8 icptcode

Definition at line 121 of file kvm_host.h.

__s16 icpua

Definition at line 118 of file kvm_host.h.

__u32 ictl

Definition at line 119 of file kvm_host.h.

__u16 ihcpu

Definition at line 123 of file kvm_host.h.

__u16 ipa

Definition at line 125 of file kvm_host.h.

__u32 ipb

Definition at line 126 of file kvm_host.h.

__u16 iprcc

Definition at line 139 of file kvm_host.h.

__u64 ipte_control

Definition at line 42 of file kvm_host.h.

__u16 lctl

Definition at line 117 of file kvm_host.h.

__u64 mcn

Definition at line 44 of file kvm_host.h.

__u32 prefix

Definition at line 110 of file kvm_host.h.

__u64 reserved[5]

Definition at line 34 of file kvm_host.h.

__u8 reserved188[24]

Definition at line 143 of file kvm_host.h.

__u8 reserved1a4[92]

Definition at line 145 of file kvm_host.h.

__u64 reserved2

Definition at line 36 of file kvm_host.h.

__u8 reserved40[4]

Definition at line 115 of file kvm_host.h.

__u8 reserved51

Definition at line 122 of file kvm_host.h.

__u8 reserved54[2]

Definition at line 124 of file kvm_host.h.

__u8 reserved60

Definition at line 128 of file kvm_host.h.

__u8 reserved62[2]

Definition at line 130 of file kvm_host.h.

__u8 reserved68[4]

Definition at line 132 of file kvm_host.h.

__u8 reserved70[32]

Definition at line 134 of file kvm_host.h.

__u8 reserved8[32]

Definition at line 111 of file kvm_host.h.

__u8 reservedb0[30]

Definition at line 138 of file kvm_host.h.

__u8 reservedd0[48]

Definition at line 140 of file kvm_host.h.

__u32 scaoh

Definition at line 127 of file kvm_host.h.

__u32 scaol

Definition at line 131 of file kvm_host.h.

atomic_t scn

Definition at line 33 of file kvm_host.h.

__u64 sda

Definition at line 35 of file kvm_host.h.

__u32 todpr

Definition at line 133 of file kvm_host.h.