Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp995699pxb; Sat, 17 Apr 2021 03:25:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF1olaj1n/UaBen00AUdMTLtEMRZl1I95sLxrqunPBFHPTKXziazD31gEtSF6uK4v+8yQB X-Received: by 2002:a17:90b:60a:: with SMTP id gb10mr14636529pjb.71.1618655158812; Sat, 17 Apr 2021 03:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618655158; cv=none; d=google.com; s=arc-20160816; b=P8XAelOikcmG0iOhBKnxTprfP8jn0z4gvxYB+blqZMbjiOrLXbiaIqB/ZydjY2OQEU IzvTpe9EJhYrdAt2rig9l3fxi1kwiUZAbFAW296+UBw3R4kkqJAxTrJuofn4V+J9nSDp iNMK4LoXgX7Nh9IL7XUtBNdi8g1TvXg4S1ztRSSta553OtFguF/P/HHWPJWcojXKgm4w N5C4Xf7rv8pZ/iGj1Fa0nB2tkGmr3vZCyixGlI9B5n2f2VC0LSUmCvuBG8yI/JpsTmev vsXM10rDdM+WRo/QuZTbjPd1O/1ILluWSQ3mVRqzTAh9EP/+HxQCQoQEJhYB3v+xu/uK TIHg== 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=0wJyPjSoRhji13ErmHRWW0tuXOC2tvUqOd6zUElcvWc=; b=u5C70p/0YXqElyVyIvWspgHfqYyI0MvkHgPt4FEiQG/UIY+GxT5anhE2AK5lu/7zwR Nc442bxAYnNIPSq5bKIhz3HFYw7HGQoDQhs3lrNi3ah2+rsKNick9gjFlCla+aOBZrpC 6/F4JXTABDpKDO+kaJmSHLtLRkoMp69wiuggSzzY2ezaMuCEVs8ul79I24AXmaJjTue9 QhVappsIY+SWkz2K0NtN/bKDDJ6xN9Ha3woMA9sFo8R1j9VfHW02jmpnXLkLRENpO3Xb DKYIyZy5xVpnzwVTA720UXjAtCOeRb4Jikrwl3iZ9FAHYWE7A/za2scjcaIPiCnB5+Yi zCww== 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 q20si5587750pll.427.2021.04.17.03.25.46; Sat, 17 Apr 2021 03:25:58 -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 S235901AbhDQKZg (ORCPT + 99 others); Sat, 17 Apr 2021 06:25:36 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17010 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhDQKZf (ORCPT ); Sat, 17 Apr 2021 06:25:35 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FMpzP41D7zPr3L; Sat, 17 Apr 2021 18:22:09 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Sat, 17 Apr 2021 18:24:55 +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> <5aadf0b4-b9e5-8521-db60-52a0f319cf28@huawei.com> <87v98ls2co.wl-maz@kernel.org> From: Zenghui Yu Message-ID: Date: Sat, 17 Apr 2021 18:24:49 +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: <87v98ls2co.wl-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/4/17 17:10, Marc Zyngier wrote: > 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? Okay. I'll have a patch for that. Zenghui