From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5105EC2BB84 for ; Fri, 4 Sep 2020 16:18:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0ABFB20772 for ; Fri, 4 Sep 2020 16:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599236322; bh=FMUhyGV9mlQ4PCYa1i1PWK/1A/emXWY+TPq0ZXZJ+Bw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=dfwDgSfWH5bDBHHnuyfW0WpQtdsR9z69LgVGuxv2XBtimkQwTp+OU3cSwDeOjeWgz ZPo8i2+1kRK6YbIKjcSdPmuckMg7lowrztTwmoGIr3NFLA52iktYLc40tnxrtXBWoU m/sUbMnPDhEb/BiRCtnIAKQEF47gR5hpyj5SYYFg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727860AbgIDQSl (ORCPT ); Fri, 4 Sep 2020 12:18:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:59044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbgIDQSf (ORCPT ); Fri, 4 Sep 2020 12:18:35 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2DE0520772; Fri, 4 Sep 2020 16:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599236314; bh=FMUhyGV9mlQ4PCYa1i1PWK/1A/emXWY+TPq0ZXZJ+Bw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HbAHyP97Z8ZCtyx8SSEgAWNvz8yb4/xTqRy4hs+9Rq/6tNt3h6dIk4tJohGLw0Mw5 +L3tU9NdFfHoeth2IPPhKDGq8Ud1by7sjegtyVQOQNeYL6JfF4XGBGsF+EYR7RKFH1 /lFYEMDqn4W4hbMrdUDZRmM756+IleR+BG9ru6UY= Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEEQ4-009DqG-F0; Fri, 04 Sep 2020 17:18:32 +0100 Date: Fri, 04 Sep 2020 17:18:31 +0100 Message-ID: <87d031qzvs.wl-maz@kernel.org> From: Marc Zyngier To: Jianyong Wu Cc: netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, tglx@linutronix.de, pbonzini@redhat.com, sean.j.christopherson@intel.com, richardcochran@gmail.com, Mark.Rutland@arm.com, will@kernel.org, suzuki.poulose@arm.com, steven.price@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Steve.Capper@arm.com, justin.he@arm.com, nd@arm.com Subject: Re: [PATCH v14 09/10] doc: add ptp_kvm introduction for arm64 support In-Reply-To: <20200904092744.167655-10-jianyong.wu@arm.com> References: <20200904092744.167655-1-jianyong.wu@arm.com> <20200904092744.167655-10-jianyong.wu@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: jianyong.wu@arm.com, netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, tglx@linutronix.de, pbonzini@redhat.com, sean.j.christopherson@intel.com, richardcochran@gmail.com, Mark.Rutland@arm.com, will@kernel.org, suzuki.poulose@arm.com, steven.price@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Steve.Capper@arm.com, justin.he@arm.com, nd@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, 04 Sep 2020 10:27:43 +0100, Jianyong Wu wrote: > > ptp_kvm implementation depends on hypercall using SMCCC. So we > introduce a new SMCCC service ID. This doc explain how we define > and use this new ID. > > Signed-off-by: Jianyong Wu > --- > Documentation/virt/kvm/arm/ptp_kvm.rst | 72 ++++++++++++++++++++++++++ > 1 file changed, 72 insertions(+) > create mode 100644 Documentation/virt/kvm/arm/ptp_kvm.rst > > diff --git a/Documentation/virt/kvm/arm/ptp_kvm.rst b/Documentation/virt/kvm/arm/ptp_kvm.rst > new file mode 100644 > index 000000000000..455591e2587a > --- /dev/null > +++ b/Documentation/virt/kvm/arm/ptp_kvm.rst > @@ -0,0 +1,72 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +PTP_KVM support for arm64 > +========================= > + > +PTP_KVM is used for time sync between guest and host in a high precison. > +It needs get wall time and counter value from host and transfer these data > +to guest via hypercall service. So one more hypercall service should be > +added. > + > +This new SMCCC hypercall will be defined as: > + > +* ARM_SMCCC_HYP_KVM_PTP_FUNC_ID: 0xC6000001 > + > +As we only support 64-bits ptp_kvm client, so we choose SMC64/HVC64 > +calling convention. This isn't what the code does, as it is explicitly set as an SMC32 service... Furthermore, we still run 32bit guests, and will do for the foreseeable future. Having removed KVM support for 32bit doesn't mean 32bits are gone. M. -- Without deviation from the norm, progress is not possible.