Skip to content

Commit

Permalink
move header
Browse files Browse the repository at this point in the history
  • Loading branch information
pbo-linaro committed Mar 5, 2025
1 parent a7e3148 commit e959f1a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion hw/hyperv/hyperv.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "qemu/rcu_queue.h"
#include "hw/hyperv/hyperv.h"
#include "qom/object.h"
#include "exec/cpu-all.h"
#include "exec/target_page.h"

struct SynICState {
Expand Down
12 changes: 12 additions & 0 deletions include/hw/hyperv/hyperv-proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@

#define HV_X64_SYNDBG_OPTION_USE_HCALLS BIT(2)

/*
* Synthetic debugger control definitions
*/
#define HV_SYNDBG_CONTROL_SEND (1u << 0)
#define HV_SYNDBG_CONTROL_RECV (1u << 1)
#define HV_SYNDBG_CONTROL_SEND_SIZE(ctl) ((ctl >> 16) & 0xffff)
#define HV_SYNDBG_STATUS_INVALID (0)
#define HV_SYNDBG_STATUS_SEND_SUCCESS (1u << 0)
#define HV_SYNDBG_STATUS_RECV_SUCCESS (1u << 2)
#define HV_SYNDBG_STATUS_RESET (1u << 3)
#define HV_SYNDBG_STATUS_SET_SIZE(st, sz) (st | (sz << 16))

/*
* Message flags
*/
Expand Down
12 changes: 0 additions & 12 deletions target/i386/kvm/hyperv-proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,4 @@

#define HV_STIMER_COUNT 4

/*
* Synthetic debugger control definitions
*/
#define HV_SYNDBG_CONTROL_SEND (1u << 0)
#define HV_SYNDBG_CONTROL_RECV (1u << 1)
#define HV_SYNDBG_CONTROL_SEND_SIZE(ctl) ((ctl >> 16) & 0xffff)
#define HV_SYNDBG_STATUS_INVALID (0)
#define HV_SYNDBG_STATUS_SEND_SUCCESS (1u << 0)
#define HV_SYNDBG_STATUS_RECV_SUCCESS (1u << 2)
#define HV_SYNDBG_STATUS_RESET (1u << 3)
#define HV_SYNDBG_STATUS_SET_SIZE(st, sz) (st | (sz << 16))

#endif

0 comments on commit e959f1a

Please sign in to comment.