From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radim Krcmar Subject: Re: [PATCH v7 1/5] ptp_kvm: probe for kvm guest availability Date: Fri, 20 Oct 2017 16:33:20 +0200 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-Transfer-Encoding: 8bit Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Richard Cochran , Marcelo Tosatti , xen-devel , Boris Ostrovsky , Juergen Gross , Andy Lutomirski To: Joao Martins Return-path: Content-Disposition: inline In-Reply-To: <20171019133918.18367-2-joao.m.martins@oracle.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.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ář