Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp961686pxb; Sat, 17 Apr 2021 02:13:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAR85s2qDL+XV86cVSQBbSfrm/FU7ZcYqD4Q9GSmImBYNmMQOmxjIqi2N2ndOQmCnpfObw X-Received: by 2002:a05:6402:5189:: with SMTP id q9mr14593643edd.168.1618650785355; Sat, 17 Apr 2021 02:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618650785; cv=none; d=google.com; s=arc-20160816; b=rhh5o/9bkhvGBFYT8hdPT/Havs1hhD3RyT4sQ0V+kmFdkoGxgcdMP19nbjPEI/DlQV gaua93YjxYv6airM4Z1LPJagsY2LYK8XimOz9GK9rPZ/jX2sfKlTlmLrWVIwGJXaubmK P/z5nrW+5UlGFA4cZWx3ahEsSLNlDN1Qx5zQsPmT9BcN0SgZE7IlZdN2pLI144xJewJO +DYQTPXZ+9xJo9sBieGYc61sBN97TYDpj8n/VdBiP8oSSRZ3p1nFTXDSRoXQd5TBVNL4 7wDsfpEEc4MNPn0bMSltRg3YY84mxuR6lK0FQiC+zhtFLeXaufq231L3AwQGSZGek03M Ufyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=h17gOy5uoqRe8NhT8z2uD8Cojf7fyqA3yZ1EiEz14Os=; b=BqZWlCJeXa251rAjPwuM/KEEpypFPJvsaMWgzHlkfnXjzm9P61PLhsRJuMUowXzNLJ +0nT4RWRdSu777KjevYvddNNy6Tct3eAn/+opSdqBE3PK/vgIRVqOKYJv/DIIBdxqcFA fby6kVP/Gv3q8ex7RmN2riaBBkhTlL0XBeRRKUCW3uiiv9tjw8Gyu0bs5T6O1NrqQv+7 PoSDRGrN/2bGP0qowwIfFnihkRFhOibbMnLfLIU8KTokX8lKMvbWexvHmmfi37R7T2Po mk+8ens/MghBve9C48kdMyydyYydvM0WxmuEC7tYQpmxpySsWBjxJ3DHX2GX/Ea3fAto iwXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc19si6588618edb.336.2021.04.17.02.12.42; Sat, 17 Apr 2021 02:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235774AbhDQJLR (ORCPT + 99 others); Sat, 17 Apr 2021 05:11:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:37858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbhDQJLQ (ORCPT ); Sat, 17 Apr 2021 05:11:16 -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 7EEEA611ED; Sat, 17 Apr 2021 09:10:50 +0000 (UTC) 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) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lXgyW-00819a-7X; Sat, 17 Apr 2021 10:10:48 +0100 Date: Sat, 17 Apr 2021 10:10:47 +0100 Message-ID: <87v98ls2co.wl-maz@kernel.org> From: Marc Zyngier To: Zenghui Yu Cc: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v19 6/7] KVM: arm64: Add support for the KVM PTP service In-Reply-To: <5aadf0b4-b9e5-8521-db60-52a0f319cf28@huawei.com> References: <20210330145430.996981-1-maz@kernel.org> <20210330145430.996981-7-maz@kernel.org> <5aadf0b4-b9e5-8521-db60-52a0f319cf28@huawei.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (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: yuzenghui@huawei.com, netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, tglx@linutronix.de, pbonzini@redhat.com, seanjc@google.com, richardcochran@gmail.com, Mark.Rutland@arm.com, will@kernel.org, suzuki.poulose@arm.com, Andre.Przywara@arm.com, steven.price@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, justin.he@arm.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 17 Apr 2021 09:59:39 +0100, Zenghui Yu wrote: > > On 2021/3/30 22:54, Marc Zyngier wrote: > > +PTP_KVM support for arm/arm64 > > +============================= > > + > > +PTP_KVM is used for high precision time sync between host and guests. > > +It relies on transferring the wall clock and counter value from the > > +host to the guest using a KVM-specific hypercall. > > + > > +* ARM_SMCCC_HYP_KVM_PTP_FUNC_ID: 0x86000001 > > Per include/linux/arm-smccc.h, this should be > ARM_SMCCC_VENDOR_HYP_KVM_PTP_FUNC_ID. Well spotted. Care to send a patch on top of my kvm-arm64/ptp branch? Thanks, M. -- Without deviation from the norm, progress is not possible.