The 'instrument' opaque pointer can be used by the user-provided trace instrumentation backend to hold arbitrary data.
Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu> --- cpu-defs.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cpu-defs.h b/cpu-defs.h index db48a7a..9e46953 100644 --- a/cpu-defs.h +++ b/cpu-defs.h @@ -218,6 +218,8 @@ typedef struct CPUWatchpoint { struct KVMState *kvm_state; \ struct kvm_run *kvm_run; \ int kvm_fd; \ - int kvm_vcpu_dirty; - + int kvm_vcpu_dirty; \ + \ + /* opaque pointer to instrumentation data */ \ + void *instrument; #endif