Commit | Line | Data |
---|---|---|
caab277b | 1 | // SPDX-License-Identifier: GPL-2.0-only |
210552c1 MZ |
2 | /* |
3 | * Based on the x86 implementation. | |
4 | * | |
5 | * Copyright (C) 2012 ARM Ltd. | |
6 | * Author: Marc Zyngier <marc.zyngier@arm.com> | |
210552c1 MZ |
7 | */ |
8 | ||
9 | #include <linux/perf_event.h> | |
10 | #include <linux/kvm_host.h> | |
11 | ||
12 | #include <asm/kvm_emulate.h> | |
13 | ||
2934e3d0 | 14 | void kvm_perf_init(void) |
210552c1 | 15 | { |
7b517831 | 16 | kvm_register_perf_callbacks(NULL); |
210552c1 MZ |
17 | } |
18 | ||
2934e3d0 | 19 | void kvm_perf_teardown(void) |
210552c1 | 20 | { |
7b517831 | 21 | kvm_unregister_perf_callbacks(); |
210552c1 | 22 | } |