From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753214AbdJTOdl (ORCPT ); Fri, 20 Oct 2017 10:33:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36758 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752438AbdJTOdi (ORCPT ); Fri, 20 Oct 2017 10:33:38 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1A7D925776 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=rkrcmar@redhat.com Date: Fri, 20 Oct 2017 16:33:20 +0200 From: Radim Krcmar To: Joao Martins Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Richard Cochran , Marcelo Tosatti , xen-devel , Boris Ostrovsky , Juergen Gross , Andy Lutomirski Subject: Re: [PATCH v7 1/5] ptp_kvm: probe for kvm guest availability Message-ID: <20171020143319.GB472@flask> References: <20171019133918.18367-1-joao.m.martins@oracle.com> <20171019133918.18367-2-joao.m.martins@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171019133918.18367-2-joao.m.martins@oracle.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 20 Oct 2017 14:33:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-10-19 14:39+0100, Joao Martins: > In the event of moving pvclock_pvti_cpu0_va() definition to common > pvclock code, this function could return a value on non KVM guests. > If user tried to load the module (or have it builtin) it would fail > with a GPF on ptp_kvm_init when running on a Xen guest. Therefore, > ptp_kvm_init() should check whether it is running in a KVM guest. > > Signed-off-by: Joao Martins > --- > New in v7; > --- Acked-by: Radim Krčmář