Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp956426pxb; Sat, 17 Apr 2021 02:02:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8aC4o3rnejvOyMeWQufT7oVqX28kpk51mp9nDY/825UgHrV6h5PYRVIF2a8LSj+l1FHRb X-Received: by 2002:a05:6402:1588:: with SMTP id c8mr13497200edv.37.1618650139505; Sat, 17 Apr 2021 02:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618650139; cv=none; d=google.com; s=arc-20160816; b=F442W65WzBWT01AKsJI0yXYSN00pcWrVcpTJPriWVj2P+iCFUGDOg3yELMmf5e4p9O AOBBGkHsEX4ZMaRd1bwH/GAK9LVabgmNBUJq5IgHZ63FTTx2se4+zFcM+cBmQ1Wm/LvM w9+rDtjW4Ax/ZSVRWtu4/meONDz3W7Kivxm0NXWtG41btPZSSW4PHhrjwCuZSBa5krWO 5pF5ACv8nfarS3miZC6onBAyPWSUh2kx1SQ/arYbkl20PeBGxxDyDzvHFBdvlmMidgmv 3AZLFT5skPuGoa3IA1c/7zknAfHzx0Twfk9iwiuw2Fyv8N8w+HhUVjM5JuQ1YxZq21zD CN0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=68F3jeIhfF9Ju5FsWXvKb4ujYQOmKiCy4WCC4TWFh8A=; b=Nhzf0AAQSl1Nt4WfiFB1UnKddLRIyaI23HYtTN1U99wwlYu7goNMbIZyGsBQmneXHB ZK+ZfgMTpRSFZLyQOFdSDe3Jq/XVeP37rPZP5xX+r8fUJY1EF3GNmrviY7PCB4z2wBXN wm9EoCC9GFEsaYJFHWOQh9ceMEnSGcPWFZoPjfDBi2nCQ1roY2CFUUNKnTLpWPWHs7C/ V8iz716iDK5HC6ngkntiPFOxOsCXftEyz92SSf556MR1odYm3tclpykCGNzdYR8kQekJ 1gkznq1p0PcU2gMCjQJxGW/rXT5Q3o+4m1wg26hRfbBMtezJ92UNYOYKdTGuDjVTmUbi 2uMQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt5si6775025ejb.50.2021.04.17.02.01.53; Sat, 17 Apr 2021 02:02:19 -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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235904AbhDQJAT (ORCPT + 99 others); Sat, 17 Apr 2021 05:00:19 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17009 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhDQJAS (ORCPT ); Sat, 17 Apr 2021 05:00:18 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FMn516YzyzPqwM; Sat, 17 Apr 2021 16:56:53 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Sat, 17 Apr 2021 16:59:42 +0800 Subject: Re: [PATCH v19 6/7] KVM: arm64: Add support for the KVM PTP service To: Marc Zyngier CC: , , , , , , , , , , , , , , , , , , , References: <20210330145430.996981-1-maz@kernel.org> <20210330145430.996981-7-maz@kernel.org> From: Zenghui Yu Message-ID: <5aadf0b4-b9e5-8521-db60-52a0f319cf28@huawei.com> Date: Sat, 17 Apr 2021 16:59:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20210330145430.996981-7-maz@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.185.179] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + > +This hypercall uses the SMC32/HVC32 calling convention: > + > +ARM_SMCCC_HYP_KVM_PTP_FUNC_ID ditto > + ============= ========== ========== > + Function ID: (uint32) 0x86000001 > + Arguments: (uint32) KVM_PTP_VIRT_COUNTER(0) > + KVM_PTP_PHYS_COUNTER(1)