2008-04-03 00:04:40 +04:00
# ifndef __LINUX_KVM_S390_H
# define __LINUX_KVM_S390_H
2008-03-25 20:47:20 +03:00
/*
* asm - s390 / kvm . h - KVM s390 specific structures and definitions
*
* Copyright IBM Corp . 2008
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License ( version 2 only )
* as published by the Free Software Foundation .
*
* Author ( s ) : Carsten Otte < cotte @ de . ibm . com >
* Christian Borntraeger < borntraeger @ de . ibm . com >
*/
[S390] types: add/fix types.h include in header files
/include/asm/chpid.h:12: include of <linux/types.h> is preferred over <asm/types.h>
/include/asm/chsc.h:15: found __[us]{8,16,32,64} type without #include <linux/types.h>
/include/asm/cmb.h:28: found __[us]{8,16,32,64} type without #include <linux/types.h>
/include/asm/dasd.h:195: found __[us]{8,16,32,64} type without #include <linux/types.h>
/include/asm/kvm.h:16: include of <linux/types.h> is preferred over <asm/types.h>
/include/asm/kvm.h:30: found __[us]{8,16,32,64} type without #include <linux/types.h>
/include/asm/qeth.h:24: found __[us]{8,16,32,64} type without #include <linux/types.h>
/include/asm/schid.h:5: found __[us]{8,16,32,64} type without #include <linux/types.h>
/include/asm/swab.h:12: include of <linux/types.h> is preferred over <asm/types.h>
/include/asm/swab.h:19: found __[us]{8,16,32,64} type without #include <linux/types.h>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2009-01-09 14:14:52 +03:00
# include <linux/types.h>
2008-03-25 20:47:20 +03:00
2009-11-19 16:21:16 +03:00
# define __KVM_S390
2008-03-25 20:47:20 +03:00
/* for KVM_GET_REGS and KVM_SET_REGS */
struct kvm_regs {
/* general purpose regs for s390 */
__u64 gprs [ 16 ] ;
} ;
/* for KVM_GET_SREGS and KVM_SET_SREGS */
struct kvm_sregs {
__u32 acrs [ 16 ] ;
__u64 crs [ 16 ] ;
} ;
/* for KVM_GET_FPU and KVM_SET_FPU */
struct kvm_fpu {
__u32 fpc ;
__u64 fprs [ 16 ] ;
} ;
2008-04-03 00:04:40 +04:00
2008-12-15 15:52:10 +03:00
struct kvm_debug_exit_arch {
} ;
/* for KVM_SET_GUEST_DEBUG */
struct kvm_guest_debug_arch {
} ;
2012-01-11 14:20:31 +04:00
# define KVM_SYNC_PREFIX (1UL << 0)
2012-01-11 14:20:32 +04:00
# define KVM_SYNC_GPRS (1UL << 1)
2012-01-11 14:20:33 +04:00
# define KVM_SYNC_ACRS (1UL << 2)
2012-02-06 13:59:07 +04:00
# define KVM_SYNC_CRS (1UL << 3)
2012-01-11 14:20:30 +04:00
/* definition of registers in kvm_run */
struct kvm_sync_regs {
2012-01-11 14:20:31 +04:00
__u64 prefix ; /* prefix register */
2012-01-11 14:20:32 +04:00
__u64 gprs [ 16 ] ; /* general purpose registers */
2012-01-11 14:20:33 +04:00
__u32 acrs [ 16 ] ; /* access registers */
2012-02-06 13:59:07 +04:00
__u64 crs [ 16 ] ; /* control registers */
2012-01-11 14:20:30 +04:00
} ;
2008-04-03 00:04:40 +04:00
# endif