aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>2014-01-23 05:03:51 -0500
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-04-22 07:24:50 -0400
commitaf1827e773c983f1d601d674447aea89efdb1acb (patch)
treefd91572a86f6c32ff488f43c82ab70ab90f29a8f /arch/s390
parentaba0750889d012f84a719112997abb7be11bba4b (diff)
KVM: s390: kernel header addition for guest debugging
This patch adds the structs to the kernel headers needed to pass information from/to userspace in order to debug a guest on s390 with hardware support. Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/uapi/asm/kvm.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/kvm.h b/arch/s390/include/uapi/asm/kvm.h
index e35c79821d29..b8c0f07a0e08 100644
--- a/arch/s390/include/uapi/asm/kvm.h
+++ b/arch/s390/include/uapi/asm/kvm.h
@@ -79,11 +79,31 @@ struct kvm_fpu {
79 __u64 fprs[16]; 79 __u64 fprs[16];
80}; 80};
81 81
82#define KVM_GUESTDBG_USE_HW_BP 0x00010000
83
84#define KVM_HW_BP 1
85#define KVM_HW_WP_WRITE 2
86#define KVM_SINGLESTEP 4
87
82struct kvm_debug_exit_arch { 88struct kvm_debug_exit_arch {
89 __u64 addr;
90 __u8 type;
91 __u8 pad[7]; /* Should be set to 0 */
92};
93
94struct kvm_hw_breakpoint {
95 __u64 addr;
96 __u64 phys_addr;
97 __u64 len;
98 __u8 type;
99 __u8 pad[7]; /* Should be set to 0 */
83}; 100};
84 101
85/* for KVM_SET_GUEST_DEBUG */ 102/* for KVM_SET_GUEST_DEBUG */
86struct kvm_guest_debug_arch { 103struct kvm_guest_debug_arch {
104 __u32 nr_hw_bp;
105 __u32 pad; /* Should be set to 0 */
106 struct kvm_hw_breakpoint __user *hw_bp;
87}; 107};
88 108
89#define KVM_SYNC_PREFIX (1UL << 0) 109#define KVM_SYNC_PREFIX (1UL << 0)