summaryrefslogtreecommitdiff
path: root/xen/include/public
diff options
context:
space:
mode:
authorTamas K Lengyel <tamas.lengyel@intel.com>2021-01-18 12:46:37 -0500
committerAndrew Cooper <andrew.cooper3@citrix.com>2021-02-05 17:37:28 +0000
commitc5866ab93167a73a8d4d85b844edf4aa364a1aaa (patch)
tree39f2e35e5bf9881e688cafd37939db5cce1f2120 /xen/include/public
parent9744611991a042e9aea348c5721b80cc2101c7e5 (diff)
x86/vm_event: Carry the vmtrace buffer position in vm_event
Add vmtrace_pos field to x86 regs in vm_event. Initialized to ~0 if vmtrace is not in use. Signed-off-by: Tamas K Lengyel <tamas.lengyel@intel.com> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Release-Acked-by: Ian Jackson <iwj@xenproject.org>
Diffstat (limited to 'xen/include/public')
-rw-r--r--xen/include/public/vm_event.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/include/public/vm_event.h b/xen/include/public/vm_event.h
index 141ea024a3..147dc3ea73 100644
--- a/xen/include/public/vm_event.h
+++ b/xen/include/public/vm_event.h
@@ -223,6 +223,13 @@ struct vm_event_regs_x86 {
*/
uint64_t npt_base;
+ /*
+ * Current position in the vmtrace buffer, or ~0 if vmtrace is not active.
+ *
+ * For Intel Processor Trace, it is the upper half of MSR_RTIT_OUTPUT_MASK.
+ */
+ uint64_t vmtrace_pos;
+
uint32_t cs_base;
uint32_t ss_base;
uint32_t ds_base;