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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 38F16C433E0 for ; Thu, 14 Jan 2021 18:40:41 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 E2AC223A55 for ; Thu, 14 Jan 2021 18:40:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2AC223A55 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=alien8.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.67476.120475 (Exim 4.92) (envelope-from ) id 1l07Xm-0001g8-Cc; Thu, 14 Jan 2021 18:40:26 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 67476.120475; Thu, 14 Jan 2021 18:40:26 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l07Xm-0001g1-8h; Thu, 14 Jan 2021 18:40:26 +0000 Received: by outflank-mailman (input) for mailman id 67476; Thu, 14 Jan 2021 18:40:24 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l07Xk-0001fw-SY for xen-devel@lists.xenproject.org; Thu, 14 Jan 2021 18:40:24 +0000 Received: from mail.skyhub.de (unknown [5.9.137.197]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 7409bdaa-3d1e-400a-90ed-2463393de392; Thu, 14 Jan 2021 18:40:22 +0000 (UTC) Received: from zn.tnic (p200300ec2f1aa900e8e9bea65a049b95.dip0.t-ipconnect.de [IPv6:2003:ec:2f1a:a900:e8e9:bea6:5a04:9b95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B5AAB1EC026D; Thu, 14 Jan 2021 19:40:21 +0100 (CET) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7409bdaa-3d1e-400a-90ed-2463393de392 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1610649621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F2/CB4ABPbBP1pW0IHsNbg4sOTm1wt6DrSPmMYPRbnU=; b=n0DECMJBD+hRD5D+iJkaXzpobjvEpELqD0R/Fz0hEUw8JJh9zA2jL0CgOSJX/ORDYzl91p 9AXA5RNhHacP4LLsbnYYjiwDc+fVe8HmSOJiaAztxeCiAfb3JsfcsV5PvAdpc0ztuyQb+C IxHDnh6e6d/SVResNuJ0O4cx+Eo3tQg= Date: Thu, 14 Jan 2021 19:40:21 +0100 From: Borislav Petkov To: Juergen Gross Cc: kernel test robot , xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org, kbuild-all@lists.01.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Subject: Re: [PATCH v3 08/15] x86: add new features for paravirt patching Message-ID: <20210114184021.GG12284@zn.tnic> References: <20201217093133.1507-9-jgross@suse.com> <202012172021.VSDLPK5D-lkp@intel.com> <20210114183024.GF12284@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210114183024.GF12284@zn.tnic> On Thu, Jan 14, 2021 at 07:30:24PM +0100, Borislav Petkov wrote: > On Thu, Dec 17, 2020 at 09:12:57PM +0800, kernel test robot wrote: > > ld: arch/x86/kernel/alternative.o: in function `paravirt_set_cap': > > >> arch/x86/kernel/alternative.c:605: undefined reference to `pv_is_native_spin_unlock' > > >> ld: arch/x86/kernel/alternative.c:608: undefined reference to `pv_is_native_vcpu_is_preempted' > > Looks like alternative.c needs #include . Nah, that needs paravirt_set_cap() to be inside CONFIG_PARAVIRT_SPINLOCKS-enabled ifdeffery. Jürgen, why don't you move it to arch/x86/kernel/paravirt.c? That should keep the ifdeffery low. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette