RE: [PATCH v15 6/9] arm64/kvm: Add hypercall service for kvm ptp.

2020-11-24 Thread Jianyong Wu
hardcoch...@gmail.com; Mark Rutland ; > w...@kernel.org; Suzuki Poulose ; Andre > Przywara ; Steven Price > ; linux-kernel@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; kvm...@lists.cs.columbia.edu; > k...@vger.kernel.org; Steve Capper ; Justin He > ; nd > S

Re: [PATCH v15 6/9] arm64/kvm: Add hypercall service for kvm ptp.

2020-11-24 Thread Marc Zyngier
On 2020-11-24 05:20, Jianyong Wu wrote: Hi Marc, [...] > +/* ptp_kvm counter type ID */ > +#define ARM_PTP_VIRT_COUNTER 0 > +#define ARM_PTP_PHY_COUNTER 1 > +#define ARM_PTP_NONE_COUNTER 2 The architecture definitely doesn't

RE: [PATCH v15 6/9] arm64/kvm: Add hypercall service for kvm ptp.

2020-11-23 Thread Jianyong Wu
hardcoch...@gmail.com; Mark Rutland ; > w...@kernel.org; Suzuki Poulose ; Andre > Przywara ; Steven Price > ; linux-kernel@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; kvm...@lists.cs.columbia.edu; > k...@vger.kernel.org; Steve Capper ; Justin He > ; nd > S

RE: [PATCH v15 6/9] arm64/kvm: Add hypercall service for kvm ptp.

2020-11-23 Thread Jianyong Wu
tel.com; Steven Price > ; Andre Przywara ; > john.stu...@linaro.org; yangbo...@nxp.com; pbonz...@redhat.com; > t...@linutronix.de; nd ; w...@kernel.org; > kvm...@lists.cs.columbia.edu; linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH v15 6/9] arm64/kvm: Add hypercall service f

Re: [PATCH v15 6/9] arm64/kvm: Add hypercall service for kvm ptp.

2020-11-23 Thread Marc Zyngier
On 2020-11-23 10:44, Marc Zyngier wrote: On 2020-11-11 06:22, Jianyong Wu wrote: ptp_kvm will get this service through SMCC call. The service offers wall time and cycle count of host to guest. The caller must specify whether they want the host cycle count or the difference between host cycle

Re: [PATCH v15 6/9] arm64/kvm: Add hypercall service for kvm ptp.

2020-11-23 Thread Marc Zyngier
On 2020-11-11 06:22, Jianyong Wu wrote: ptp_kvm will get this service through SMCC call. The service offers wall time and cycle count of host to guest. The caller must specify whether they want the host cycle count or the difference between host cycle count and cntvoff. Signed-off-by: Jianyong

[PATCH v15 6/9] arm64/kvm: Add hypercall service for kvm ptp.

2020-11-10 Thread Jianyong Wu
ptp_kvm will get this service through SMCC call. The service offers wall time and cycle count of host to guest. The caller must specify whether they want the host cycle count or the difference between host cycle count and cntvoff. Signed-off-by: Jianyong Wu --- arch/arm64/kvm/hypercalls.c | 61