Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932218AbcDFMJH (ORCPT ); Wed, 6 Apr 2016 08:09:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:47485 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbcDFMJG (ORCPT ); Wed, 6 Apr 2016 08:09:06 -0400 Date: Wed, 6 Apr 2016 14:09:01 +0200 (CEST) From: Miroslav Benes To: Chris J Arges cc: Josh Poimboeuf , Jiri Kosina , jeyu@redhat.com, eugene.shatokhin@rosalab.ru, live-patching@vger.kernel.org, Linux Kernel Mailing List , pmladek@suse.cz Subject: Re: Bug with paravirt ops and livepatches In-Reply-To: <20160406103821.GA4968@canonical.com> Message-ID: References: <20160401190704.GB7837@canonical.com> <20160404161428.3qap2i4vpgda66iw@treble.redhat.com> <20160405232729.GA18198@canonical.com> <20160406103821.GA4968@canonical.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 423 Lines: 15 On Wed, 6 Apr 2016, Chris J Arges wrote: > I think this approach needs more thought and my code has bug(s). And indeed there is... long (*__kvm_arch_vm_ioctl)(struct file *filp, unsigned long ioctl, unsigned long arg) = NULL; Use a different name than __kvm_arch_vm_ioctl and (ideally) make it static. kallsyms_lookup_name("__kvm_arch_vm_ioctl") returns the address of this variable from the patch module. Miroslav