KVM: Implement bare minimum of HYPER-V MSRs
Minimum HYPER-V implementation should have GUEST_OS_ID, HYPERCALL and VP_INDEX MSRs. [avi: fix build on i386] Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:

committed by
Marcelo Tosatti

parent
1d5103c11e
commit
55cd8e5a4e
@@ -55,6 +55,38 @@ TRACE_EVENT(kvm_hypercall,
|
||||
__entry->a3)
|
||||
);
|
||||
|
||||
/*
|
||||
* Tracepoint for hypercall.
|
||||
*/
|
||||
TRACE_EVENT(kvm_hv_hypercall,
|
||||
TP_PROTO(__u16 code, bool fast, __u16 rep_cnt, __u16 rep_idx,
|
||||
__u64 ingpa, __u64 outgpa),
|
||||
TP_ARGS(code, fast, rep_cnt, rep_idx, ingpa, outgpa),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( __u16, code )
|
||||
__field( bool, fast )
|
||||
__field( __u16, rep_cnt )
|
||||
__field( __u16, rep_idx )
|
||||
__field( __u64, ingpa )
|
||||
__field( __u64, outgpa )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->code = code;
|
||||
__entry->fast = fast;
|
||||
__entry->rep_cnt = rep_cnt;
|
||||
__entry->rep_idx = rep_idx;
|
||||
__entry->ingpa = ingpa;
|
||||
__entry->outgpa = outgpa;
|
||||
),
|
||||
|
||||
TP_printk("code 0x%x %s cnt 0x%x idx 0x%x in 0x%llx out 0x%llx",
|
||||
__entry->code, __entry->fast ? "fast" : "slow",
|
||||
__entry->rep_cnt, __entry->rep_idx, __entry->ingpa,
|
||||
__entry->outgpa)
|
||||
);
|
||||
|
||||
/*
|
||||
* Tracepoint for PIO.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user