KVM: arm64: Hide kvm_arm_pmu_available behind CONFIG_HW_PERF_EVENTS=y
[linux-block.git] / arch / arm64 / kvm / perf.c
CommitLineData
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 14void kvm_perf_init(void)
210552c1 15{
7b517831 16 kvm_register_perf_callbacks(NULL);
210552c1
MZ
17}
18
2934e3d0 19void kvm_perf_teardown(void)
210552c1 20{
7b517831 21 kvm_unregister_perf_callbacks();
210552c1 22}