Re: [RFC PATCH v4 3/5] psci: Add hvc call service for ptp_kvm.

From: Sergei Shtylyov
Date: Fri Sep 27 2019 - 05:20:43 EST


Hello!

On 26.09.2019 14:42, Jianyong Wu wrote:

This patch is the base of ptp_kvm for arm64.
ptp_kvm modules will call hvc to get this service.
The service offers real time and counter cycle of host for guest.

Signed-off-by: Jianyong Wu <jianyong.wu@xxxxxxx>
---
include/linux/arm-smccc.h | 12 ++++++++++++
virt/kvm/arm/psci.c | 18 ++++++++++++++++++
2 files changed, 30 insertions(+)

[...]
diff --git a/virt/kvm/arm/psci.c b/virt/kvm/arm/psci.c
index 0debf49bf259..3f30fc42a5ca 100644
--- a/virt/kvm/arm/psci.c
+++ b/virt/kvm/arm/psci.c
[...]
@@ -431,6 +433,22 @@ int kvm_hvc_call_handler(struct kvm_vcpu *vcpu)
case ARM_SMCCC_VENDOR_HYP_KVM_FEATURES_FUNC_ID:
val[0] = BIT(ARM_SMCCC_KVM_FUNC_FEATURES);
break;
+ /*
+ * This will used for virtual ptp kvm clock. three
^ be? ^ T

[...]

MBR, Sergei