1 #ifndef KVM__DEBUG_H 2 #define KVM__DEBUG_H 3 4 #include <kvm/util.h> 5 #include <linux/types.h> 6 7 #define KVM_DEBUG_CMD_TYPE_DUMP (1 << 0) 8 #define KVM_DEBUG_CMD_TYPE_NMI (1 << 1) 9 10 struct debug_cmd_params { 11 u32 dbg_type; 12 u32 cpu; 13 }; 14 15 struct debug_cmd { 16 u32 type; 17 u32 len; 18 struct debug_cmd_params params; 19 }; 20 21 int kvm_cmd_debug(int argc, const char **argv, const char *prefix); 22 void kvm_debug_help(void) NORETURN; 23 24 #endif 25