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=-9.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 CE81EC43461 for ; Fri, 4 Sep 2020 16:18:40 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 407A120795 for ; Fri, 4 Sep 2020 16:18:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="HbAHyP97" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 407A120795 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id C5FA84B3E8; Fri, 4 Sep 2020 12:18:39 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@kernel.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z4ecjeIe8WlR; Fri, 4 Sep 2020 12:18:38 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id B35734B398; Fri, 4 Sep 2020 12:18:38 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 0F6974B395 for ; Fri, 4 Sep 2020 12:18:37 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id os3GRyknxaip for ; Fri, 4 Sep 2020 12:18:36 -0400 (EDT) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id E013A4B2A4 for ; Fri, 4 Sep 2020 12:18:35 -0400 (EDT) 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 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") 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 Cc: justin.he@arm.com, kvm@vger.kernel.org, netdev@vger.kernel.org, richardcochran@gmail.com, linux-kernel@vger.kernel.org, sean.j.christopherson@intel.com, steven.price@arm.com, john.stultz@linaro.org, yangbo.lu@nxp.com, pbonzini@redhat.com, tglx@linutronix.de, nd@arm.com, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu 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. _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 1378DC43461 for ; Fri, 4 Sep 2020 16:19:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B633B20772 for ; Fri, 4 Sep 2020 16:19:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GaXMlyBT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="HbAHyP97" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B633B20772 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Subject:To:From: Message-ID:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RAMnKGD5KroMxF0LQEoTLGiPus+Jt2W1+ZUKQcqJa3g=; b=GaXMlyBTmjpjll4aU5dAgVX5X 4OJvCUsjD1WOif8jht3dRyNpkZwicLo4hF/FWpGT+0iOp297yuvHLHwYXBUfAwW1pi/TIsRYi8cpo znfp6tK6sRkPSG7YHrwIaJlR7QXJHvJhvfcyt4a8eREEp0gjVButkMv/qtLjJOdIs7eQhjRupM2PQ Zh3rmwMtni/9s96x6mqjDFznTD4GMhCf3yukf2o1P0I795lOs8pICN0acnARbPs1sz6sNoMb8uR4r 7I5mi1pi8AA7IxhqZTh+Yu+nulGCWrkS4IETGu9jiW37DJ/fLt4GwRZ7TMWhRtQ5SOtaKjCSH7elD McScJyIrQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEEQA-0000B2-3P; Fri, 04 Sep 2020 16:18:38 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEEQ7-00009p-5Y for linux-arm-kernel@lists.infradead.org; Fri, 04 Sep 2020 16:18:35 +0000 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 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") 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200904_121835_367636_7ED31884 X-CRM114-Status: GOOD ( 23.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark.Rutland@arm.com, justin.he@arm.com, kvm@vger.kernel.org, suzuki.poulose@arm.com, netdev@vger.kernel.org, richardcochran@gmail.com, Steve.Capper@arm.com, linux-kernel@vger.kernel.org, sean.j.christopherson@intel.com, steven.price@arm.com, john.stultz@linaro.org, yangbo.lu@nxp.com, pbonzini@redhat.com, tglx@linutronix.de, nd@arm.com, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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=unavailable 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 548F4C433E2 for ; Fri, 4 Sep 2020 16:18:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F83420796 for ; Fri, 4 Sep 2020 16:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599236326; bh=FMUhyGV9mlQ4PCYa1i1PWK/1A/emXWY+TPq0ZXZJ+Bw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=OWx7q9VnUMnbCUwWGqsq37gZBWGKGWmbNSt4ry4Us39UoHZ6ADoOnqpqixlsUTrYz BW0IQoOLoVQb1P1K6xFKaEj709W5s+QBmVsxayxvUy3kZp64mTd28vewr8luhDTIew 8coTAUuM+fgU4rYWFdROfF+Q/0UtJ0n9tbcG5ceA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727081AbgIDQSl (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: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@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.