Skip to content

Commit 003d35a

Browse files
pbo-linarophilmd
authored andcommitted
hw/hyperv/hyperv-proto: Move SYNDBG definitions from target/i386
Allows SYNDBG definitions to be available for common compilation units. Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Pierrick Bouvier <[email protected]> Message-ID: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent f410d70 commit 003d35a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

include/hw/hyperv/hyperv-proto.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@
6161
#define HV_MESSAGE_X64_APIC_EOI 0x80010004
6262
#define HV_MESSAGE_X64_LEGACY_FP_ERROR 0x80010005
6363

64+
/*
65+
* Hyper-V Synthetic debug options MSR
66+
*/
67+
#define HV_X64_MSR_SYNDBG_CONTROL 0x400000F1
68+
#define HV_X64_MSR_SYNDBG_STATUS 0x400000F2
69+
#define HV_X64_MSR_SYNDBG_SEND_BUFFER 0x400000F3
70+
#define HV_X64_MSR_SYNDBG_RECV_BUFFER 0x400000F4
71+
#define HV_X64_MSR_SYNDBG_PENDING_BUFFER 0x400000F5
72+
#define HV_X64_MSR_SYNDBG_OPTIONS 0x400000FF
73+
74+
#define HV_X64_SYNDBG_OPTION_USE_HCALLS BIT(2)
75+
6476
/*
6577
* Message flags
6678
*/

target/i386/kvm/hyperv-proto.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,18 +151,6 @@
151151
#define HV_X64_MSR_STIMER3_CONFIG 0x400000B6
152152
#define HV_X64_MSR_STIMER3_COUNT 0x400000B7
153153

154-
/*
155-
* Hyper-V Synthetic debug options MSR
156-
*/
157-
#define HV_X64_MSR_SYNDBG_CONTROL 0x400000F1
158-
#define HV_X64_MSR_SYNDBG_STATUS 0x400000F2
159-
#define HV_X64_MSR_SYNDBG_SEND_BUFFER 0x400000F3
160-
#define HV_X64_MSR_SYNDBG_RECV_BUFFER 0x400000F4
161-
#define HV_X64_MSR_SYNDBG_PENDING_BUFFER 0x400000F5
162-
#define HV_X64_MSR_SYNDBG_OPTIONS 0x400000FF
163-
164-
#define HV_X64_SYNDBG_OPTION_USE_HCALLS BIT(2)
165-
166154
/*
167155
* Guest crash notification MSRs
168156
*/

0 commit comments

Comments
 (0)