aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/uapi
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/uapi')
-rw-r--r--arch/powerpc/include/uapi/asm/kvm.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/arch/powerpc/include/uapi/asm/kvm.h b/arch/powerpc/include/uapi/asm/kvm.h
index e420d46d363f..482bba56e499 100644
--- a/arch/powerpc/include/uapi/asm/kvm.h
+++ b/arch/powerpc/include/uapi/asm/kvm.h
@@ -269,7 +269,24 @@ struct kvm_fpu {
269 __u64 fpr[32]; 269 __u64 fpr[32];
270}; 270};
271 271
272/*
273 * Defines for h/w breakpoint, watchpoint (read, write or both) and
274 * software breakpoint.
275 * These are used as "type" in KVM_SET_GUEST_DEBUG ioctl and "status"
276 * for KVM_DEBUG_EXIT.
277 */
278#define KVMPPC_DEBUG_NONE 0x0
279#define KVMPPC_DEBUG_BREAKPOINT (1UL << 1)
280#define KVMPPC_DEBUG_WATCH_WRITE (1UL << 2)
281#define KVMPPC_DEBUG_WATCH_READ (1UL << 3)
272struct kvm_debug_exit_arch { 282struct kvm_debug_exit_arch {
283 __u64 address;
284 /*
285 * exiting to userspace because of h/w breakpoint, watchpoint
286 * (read, write or both) and software breakpoint.
287 */
288 __u32 status;
289 __u32 reserved;
273}; 290};
274 291
275/* for KVM_SET_GUEST_DEBUG */ 292/* for KVM_SET_GUEST_DEBUG */
@@ -281,10 +298,6 @@ struct kvm_guest_debug_arch {
281 * Type denotes h/w breakpoint, read watchpoint, write 298 * Type denotes h/w breakpoint, read watchpoint, write
282 * watchpoint or watchpoint (both read and write). 299 * watchpoint or watchpoint (both read and write).
283 */ 300 */
284#define KVMPPC_DEBUG_NONE 0x0
285#define KVMPPC_DEBUG_BREAKPOINT (1UL << 1)
286#define KVMPPC_DEBUG_WATCH_WRITE (1UL << 2)
287#define KVMPPC_DEBUG_WATCH_READ (1UL << 3)
288 __u32 type; 301 __u32 type;
289 __u32 reserved; 302 __u32 reserved;
290 } bp[16]; 303 } bp[16];