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, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,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 13076C43461 for ; Sat, 17 Apr 2021 08:59:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E00566109F for ; Sat, 17 Apr 2021 08:59:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235922AbhDQJAT (ORCPT ); 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) 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.2 required=3.0 tests=BAYES_00, 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 75F1DC433ED for ; Sat, 17 Apr 2021 09:00:03 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id DA8A36109F for ; Sat, 17 Apr 2021 09:00:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA8A36109F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com 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 5DF9E4B2C6; Sat, 17 Apr 2021 05:00:02 -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 MTNHpjNi2GHJ; Sat, 17 Apr 2021 04:59:58 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 766FA4B2D2; Sat, 17 Apr 2021 04:59:58 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 966D54B2C6 for ; Sat, 17 Apr 2021 04:59:57 -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 epGLAqBXvxkm for ; Sat, 17 Apr 2021 04:59:54 -0400 (EDT) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 0B57B4B1E6 for ; Sat, 17 Apr 2021 04:59:54 -0400 (EDT) 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 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-Language: en-US X-Originating-IP: [10.174.185.179] X-CFilter-Loop: Reflected Cc: kernel-team@android.com, lorenzo.pieralisi@arm.com, justin.he@arm.com, kvm@vger.kernel.org, netdev@vger.kernel.org, richardcochran@gmail.com, yangbo.lu@nxp.com, sudeep.holla@arm.com, steven.price@arm.com, Andre.Przywara@arm.com, john.stultz@linaro.org, linux-arm-kernel@lists.infradead.org, seanjc@google.com, pbonzini@redhat.com, tglx@linutronix.de, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu 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) _______________________________________________ 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=-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 46E4AC433B4 for ; Sat, 17 Apr 2021 09:01:52 +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 01AB5610CC for ; Sat, 17 Apr 2021 09:01:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01AB5610CC 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=CAuyNZgTgHtvCj1G0jCS643G/Pn7F9DOB1mgFuTMe+U=; b=LyBfzyDUHv8gZE8ZNzFkzufud uzqKmB0w9sy6xtm773hoJeo/eGo0136bo63h4IQSEdPnaswRvP8AXLjLCXEYmPLU4PI2Fn07y68Zx tsTDfvefBuCrMXedQNCkArjgYR4wSfWeqdY/Mm2gmr2x/EAN3k/cSsp2XY7lRgAgpeyFXJjHMufWS 18OsKeeNMzmrCgYOixkTn+RTVO/plV2A14n92SyxZKqQQYnZ8pZsHayPq1Endctw98It6QdHzLW4L 5KlZJ2ldxFrcUwAw7scZmJTyxye1vT8eU2k+OjMpIAfZc0HvSegUrb2U/Jcbs/D3fTClTLKdgcjTG SV/UySgbw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lXgoG-004pGb-Ek; Sat, 17 Apr 2021 09:00:12 +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 1lXgo9-004pG4-Ud for linux-arm-kernel@desiato.infradead.org; Sat, 17 Apr 2021 09:00:05 +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=68F3jeIhfF9Ju5FsWXvKb4ujYQOmKiCy4WCC4TWFh8A=; b=Pyw2usuWcDtzAb6BgQH5yVLXW3 K6VUMtD3OkgiK3++IWA5V010BFUaU5hHVZEdE4n2ZMvYO0f/te1bZfNTnH287bGDIW3EuO/ktBA1k 8sTZlHF/vOFtC76prGFeKuXMQNl35k6ZFY1Mh8OwYxSBQzd4gp/fglG9jKxOhr0CWv5jRhDhwbhnW ZyddHZFVjy9/yKOZ2adkPlfPG2jvtKKWDKezMdb2R9JYWYz5RozGjtK8RcMxZq80f5abLdOg6/4gT 69vAWMl1BVKo+4qHz8tF9dZ3HtE4pg/bhYu6s55urDAH9svadK+ZMvM2/4ncMrr2nlCqWafcKYkiY sKkMc4eA==; Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXgo2-009wjb-1A for linux-arm-kernel@lists.infradead.org; Sat, 17 Apr 2021 09:00:03 +0000 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-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_015958_680140_CEE96EFE X-CRM114-Status: UNSURE ( 8.02 ) 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/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) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel