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=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 0C386C433ED for ; Sat, 17 Apr 2021 10:27:21 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 C373E610C8 for ; Sat, 17 Apr 2021 10:27:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C373E610C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com 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=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MbpBgWsyOL1fD41yBV/aBXjVknNHmeY1RE5KmWDG1pw=; b=JgbExsZnjMbBQZpAa5LNz6PSa EguIUCbIoKE/aoJRtj7tqVwLNHHUV/rRAhwpx+lfrGUDV7vCt2csKTmatOMJ3ioivieluz3IDWrr9 x/n1wZ9u1U12+WKQUE+tAm61zlIKihFPu6wmUO/zORrXhs1MS8K+GhwkAo32Ap/XNRXHmusTO0CyW yACmzcO7/IeHO3XWNxDaqqGD2nQyIl7A7RNAnnaSN8AcPOFsZjBJWWo+LofXwxL10IKlqRygV52yv +Gs1g40W21IURH5mRacCmLUi9Gizw7osSxf81Ricgub++hi6hnB7tMlU0BHGwGl0Lbon9srFfQLr3 80R6mfIeA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lXi8r-004zdl-7s; Sat, 17 Apr 2021 10:25:33 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXi8Z-004zYq-Sy for linux-arm-kernel@desiato.infradead.org; Sat, 17 Apr 2021 10:25:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=0wJyPjSoRhji13ErmHRWW0tuXOC2tvUqOd6zUElcvWc=; b=d9F+8yVyBONq2E3YM2ZnyJXtIO Pc/OoPiiH+tI311/01lPi4BYKsNeaDvkZ1DhZQXOzSB06BA8FuEUt7w2BlBoG8AFARfldQ2kz5dVQ JRT4DEGpA+zY/ma74Jhl87YEbPP9RR9Uyzh5tkr25IjNwGtiQH3hatZUQAm7o4LIrYx5J/9xsDfCS HbIzCJYqRwi0bjtfegjbchOEavQdpkqWx0kqy7rFPjf5ocNKdHIuhMfQNTXLk9qdv+17pTiab9SWg mxCu3du5IltTKTxR3Hwf7qJlgbqOs0WTSAqk9KVKBJcsH/qT1WqxOsoKE1rAJYk2ZkJY8baa3jhYC 3UIpKVZA==; Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXi8T-009yex-Dy for linux-arm-kernel@lists.infradead.org; Sat, 17 Apr 2021 10:25:14 +0000 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-Language: en-US X-Originating-IP: [10.174.185.179] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210417_032510_077881_C6F02345 X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel