Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3182202ybn; Fri, 27 Sep 2019 02:24:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMpM3Y+wX8wL93YScNzl6gnNIKDjOU8bR9FSdhdu9cPHFGR/vtaNOgitaE1oJ4dpqi34nB X-Received: by 2002:a50:a57d:: with SMTP id z58mr3355836edb.115.1569576245634; Fri, 27 Sep 2019 02:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569576245; cv=none; d=google.com; s=arc-20160816; b=Vg0FeVhZ4ftDpMkG4DmRY3oyBJKfeYc5XbtCXHAElmzlzjngfl5QzOZ+avrPDjAPF0 hiRdSc2PbaohBwx7QNIXrcSnqnxxfn2Fn/4yaj0m4vrlXfFSCy6AjwRfjCrybi1kOHu2 KE2L4ojxDV7PC/if7rkqaQqZgd2NCR5k1jM2JvVN9CWdpXVpOaMIxj3E6CVoZokpnbgI wULWKOhieVMn+qZfztwii2AS/BhgV9sSfLuHBBIYmmx2fh2kEjkANFnds7pKHYSGhDxB CywO2rmUDbzGIV8h4HUdGLDSyFh6Q4HQdbJwJrnimwDs7tB8s5YWjuIWgFP3yTTb+9XY 6DJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ZUJ1/Iwwp/mWKX1v6738rug/Uwulg67MH6fF2LkIHoU=; b=VIoB9HoDbmBHmgIhFiGxitFKX2LoQE1yYMn5o8GXfoJYKgNIPJR92j6UqvoWAq2P7E STK8wSrh1g72lgN2ONUGRSPiuVS9Ef9TFkxLYPqSBvk9GEIVHBC5raUMP3WDkNNgS/2E /UaG1Vt7fCYR8PhWUQ7aXXX0zMaBqZ+Ig6jJwSulhsC/6WKpY4h7+aaULeHa9hhdHfY/ YBSwONbq2yTWKm5sMXIacbfMVadjkcTH6E/9YT5HEiGGk7OTDJ4iT0tZP2skmrIdQCCb cciKsIPYYgSow9vwCBKdYPQeLw8o3Hsuv44Bg4m5038ziX9JLD7nd2NASrnpP1KGLS0T UYQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=fYnQUV9a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i18si2296519ejb.145.2019.09.27.02.23.40; Fri, 27 Sep 2019 02:24:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=fYnQUV9a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbfI0JUj (ORCPT + 99 others); Fri, 27 Sep 2019 05:20:39 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37416 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfI0JUj (ORCPT ); Fri, 27 Sep 2019 05:20:39 -0400 Received: by mail-lf1-f66.google.com with SMTP id w67so1382870lff.4 for ; Fri, 27 Sep 2019 02:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ZUJ1/Iwwp/mWKX1v6738rug/Uwulg67MH6fF2LkIHoU=; b=fYnQUV9aHYiNDRG0ybNWFU/6abt78WerVfUTzWshQ7e1bblOYhLBDafRZrDnXFV55j 5PJQgGUdwzn0Iy4m1el8QIV1iolOzPuYN8+EuXFNmCo4UL24h5Qng08HNEHJpI/E/ZKg 07tLg877fK5O/XHo9kLAzHdxN8xnw3Zso3rMnyu0SqQvM8/jFGnGsys3PStlTFcQJTDi 71kh9G7Cr3kOlRrNjt010xNmqHm/5tIAwYiiK4Ag/US4I/Xc39F4Kq6S+9Ivhs6ArJho FJduxbBX7qveLEe7UlrGWHtaMw5etZ3DtAP4BEoYARJQL843vFrcQi/99OAVbzyZDWkF MlyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZUJ1/Iwwp/mWKX1v6738rug/Uwulg67MH6fF2LkIHoU=; b=lFa5P/VGh7bd5j+c+/Hwx9BGdSmxwgltIxreLQWWWL9GCj6q8NqAvEfI3C/GgbGJe1 Ly/EyAwdKngwNC9Ba/27bT2TR/Uey7shP8rKGZQ6lPbgihOcfCWmuNCEXFw8JIEcoRRP WPMxcjEbGbxPY4tnOTnVBFcyuFoCaBYUH+MwY0lc1x87gp9KT0SHpHyn28FdLAPoXhR/ PaaB/Zmg2U61WtLwcwiGeX0DV93+KaScvSUnjeEnDWKGwn4mKvR9sdUcUQNiziaensx1 FLkcuasahgtV6AH5YfdjMlDpS4XnKWn7tvGlgWffk0i8AMeZayq5BzwA0EwZtNgp7ySJ Urzw== X-Gm-Message-State: APjAAAXide6rvf6qu8lESnRjscsWJI94TaseNJrou+N254VVJ0yVT2Dh 4/u4NLasAWWLDfPNAxmFuI9HFw== X-Received: by 2002:a19:f247:: with SMTP id d7mr1946420lfk.191.1569576037260; Fri, 27 Sep 2019 02:20:37 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:8df:57d9:c46b:3c97:5028:3a4f? ([2a00:1fa0:8df:57d9:c46b:3c97:5028:3a4f]) by smtp.gmail.com with ESMTPSA id q3sm341838ljq.4.2019.09.27.02.20.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Sep 2019 02:20:36 -0700 (PDT) Subject: Re: [RFC PATCH v4 3/5] psci: Add hvc call service for ptp_kvm. To: Jianyong Wu , netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, tglx@linutronix.de, pbonzini@redhat.com, sean.j.christopherson@intel.com, maz@kernel.org, richardcochran@gmail.com, Mark.Rutland@arm.com, Will.Deacon@arm.com, suzuki.poulose@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Steve.Capper@arm.com, Kaly.Xin@arm.com, justin.he@arm.com, nd@arm.com References: <20190926114212.5322-1-jianyong.wu@arm.com> <20190926114212.5322-4-jianyong.wu@arm.com> From: Sergei Shtylyov Message-ID: <3586ca5b-7abb-12b2-2368-cbc09fe3777f@cogentembedded.com> Date: Fri, 27 Sep 2019 12:20:25 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20190926114212.5322-4-jianyong.wu@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 26.09.2019 14:42, Jianyong Wu wrote: > This patch is the base of ptp_kvm for arm64. > ptp_kvm modules will call hvc to get this service. > The service offers real time and counter cycle of host for guest. > > Signed-off-by: Jianyong Wu > --- > include/linux/arm-smccc.h | 12 ++++++++++++ > virt/kvm/arm/psci.c | 18 ++++++++++++++++++ > 2 files changed, 30 insertions(+) [...] > diff --git a/virt/kvm/arm/psci.c b/virt/kvm/arm/psci.c > index 0debf49bf259..3f30fc42a5ca 100644 > --- a/virt/kvm/arm/psci.c > +++ b/virt/kvm/arm/psci.c [...] > @@ -431,6 +433,22 @@ int kvm_hvc_call_handler(struct kvm_vcpu *vcpu) > case ARM_SMCCC_VENDOR_HYP_KVM_FEATURES_FUNC_ID: > val[0] = BIT(ARM_SMCCC_KVM_FUNC_FEATURES); > break; > + /* > + * This will used for virtual ptp kvm clock. three ^ be? ^ T [...] MBR, Sergei