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.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 5F627C2BA19 for ; Thu, 9 Apr 2020 23:00:46 +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 2D173206C0 for ; Thu, 9 Apr 2020 23:00:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="YEglQ+Zd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D173206C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jMg9t-00075x-0e; Thu, 09 Apr 2020 23:00:29 +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.89) (envelope-from ) id 1jMg9r-00075s-4q for xen-devel@lists.xenproject.org; Thu, 09 Apr 2020 23:00:27 +0000 X-Inumbo-ID: e56f69a2-7ab5-11ea-8382-12813bfff9fa Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e56f69a2-7ab5-11ea-8382-12813bfff9fa; Thu, 09 Apr 2020 23:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1586473225; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=qsCljqHfqOYQgRx/j72JrDk5S6xLjMHFrL7UGwyVWMo=; b=YEglQ+ZdL4JkrTxk8GLnhvAOh0DAAQyhVYdVjmI3y6LAvyFfa12ZOCQC wj8+YmVpli8M/NQegBXT3QmEjB6QdgLEstcIoEotb1+sn4x2axe8YfxPq weQIXch9fhaJRkfK+vaFXSoWRQaBnt7g7+eWgs55H2kP+QL/HRyM04vCY o=; Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: 0CXPQm+I7qF7PS4eJWI68nPRcDi6fBvRIJzi0NrVkN7fsA2KdtP+Nw3lS1OgyH7GgmZ60rYk75 Y9PQp/JHemWZ0VExuFJn1EaHyxbY+raEExC1asct4XLfJFpasjXMBF3BpivLXfva0NQhDSZifx lsjQ2jEHa0tr9pjV3k1fYkmSR8jrhClbSeIG9jExV+J+rp+rzyui0EDM3/8yfu+c886mRkCCcL rzZcz66kk0sQvYuX7NcZuKZzMD1uPrc91uLCoGR5Xk7Be/mAIB+1cGMfZxBS9LFxEZeclQdwas F6c= X-SBRS: 2.7 X-MesageID: 15876183 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.72,364,1580792400"; d="scan'208";a="15876183" Subject: Re: [PATCH] x86/mem_sharing: Fix build folloing VM Fork work To: Tamas K Lengyel References: <20200409204837.7017-1-andrew.cooper3@citrix.com> <769887ee-c381-ff58-bdf9-bd1a3032cbfb@citrix.com> From: Andrew Cooper Message-ID: Date: Fri, 10 Apr 2020 00:00:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-GB X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Xen-devel , Wei Liu , Jan Beulich , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 09/04/2020 23:38, Tamas K Lengyel wrote: > On Thu, Apr 9, 2020 at 4:05 PM Andrew Cooper wrote: >> On 09/04/2020 22:24, Tamas K Lengyel wrote: >>> On Thu, Apr 9, 2020 at 2:48 PM Andrew Cooper wrote: >>>> A default build fails with: >>>> >>>> mem_sharing.c: In function ‘copy_special_pages’: >>>> mem_sharing.c:1649:9: error: ‘HVM_PARAM_STORE_PFN’ undeclared (first use in this function) >>>> HVM_PARAM_STORE_PFN, >>>> ^~~~~~~~~~~~~~~~~~~ >>>> >>>> I suspect this is a rebasing issue with respect to c/s 12f0c69f2709 "x86/HVM: >>>> reduce hvm.h include dependencies". >>>> >>>> Fixes: 41548c5472a "mem_sharing: VM forking" >>>> Signed-off-by: Andrew Cooper >>> So staging definitely compiles for me both with and without >>> CONFIG_MEM_SHARING enabled. By default its off, so this shouldn't even >>> be compiled so I'm curious what's happening in your build. That said, >>> I have no objection to the extra include if it turns out to be >>> actually necessary. >> Exact config attached. I've just double checked that staging fails. >> >> We should get to the bottom of exactly what is going on here, if it >> isn't the obvious thing. > Strange, with your config it does produce the error. With "echo > CONFIG_MEM_SHARING=y > .config && XEN_CONFIG_EXPERT=y make > olddefconfig && make" it does compile. You lose XEN_CONFIG_EXPERT=y in the second make, so it rewrites your .config behind your back.  (This behaviour is totally obnoxious). Diff the current config against original? ~Andrew