summaryrefslogtreecommitdiff
path: root/virt/kvm/arm/pvtime.c
blob: 9fc69fc2d6832783b7e0f0ac4f21d9df3ea45f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2019 Arm Ltd.

#include <linux/arm-smccc.h>

#include <kvm/arm_hypercalls.h>

long kvm_hypercall_pv_features(struct kvm_vcpu *vcpu)
{
	u32 feature = smccc_get_arg1(vcpu);
	long val = SMCCC_RET_NOT_SUPPORTED;

	switch (feature) {
	case ARM_SMCCC_HV_PV_TIME_FEATURES:
		val = SMCCC_RET_SUCCESS;
		break;
	}

	return val;
}