diff options
author | Tianyu Lan <Tianyu.Lan@microsoft.com> | 2018-07-19 08:40:12 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-06 17:59:05 +0200 |
commit | 60cfce4c4f6f6741882032ee6f895e835533a16b (patch) | |
tree | d3bb79673ab196b8dc071eb6f9e449918cd86753 /arch/x86/hyperv | |
parent | eb914cfe72f4c948b2318b1381f6d2e08d43b63c (diff) | |
download | linux-60cfce4c4f6f6741882032ee6f895e835533a16b.tar.bz2 |
X86/Hyper-V: Add hyperv_nested_flush_guest_mapping ftrace support
This patch is to add hyperv_nested_flush_guest_mapping support to trace
hvFlushGuestPhysicalAddressSpace hypercall.
Signed-off-by: Lan Tianyu <Tianyu.Lan@microsoft.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/hyperv')
-rw-r--r-- | arch/x86/hyperv/nested.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/hyperv/nested.c b/arch/x86/hyperv/nested.c index 08f914217518..b8e60cc50461 100644 --- a/arch/x86/hyperv/nested.c +++ b/arch/x86/hyperv/nested.c @@ -14,6 +14,8 @@ #include <asm/mshyperv.h> #include <asm/tlbflush.h> +#include <asm/trace/hyperv.h> + int hyperv_flush_guest_mapping(u64 as) { struct hv_guest_mapping_flush **flush_pcpu; @@ -48,6 +50,7 @@ int hyperv_flush_guest_mapping(u64 as) ret = 0; fault: + trace_hyperv_nested_flush_guest_mapping(as, ret); return ret; } EXPORT_SYMBOL_GPL(hyperv_flush_guest_mapping); |