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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,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 DF2FCC433E0 for ; Fri, 12 Jun 2020 15:54:37 +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 B667F207F7 for ; Fri, 12 Jun 2020 15:54:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B667F207F7 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.92) (envelope-from ) id 1jjm0V-0006B3-I6; Fri, 12 Jun 2020 15:54:15 +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 1jjm0U-0006Ay-E7 for xen-devel@lists.xenproject.org; Fri, 12 Jun 2020 15:54:14 +0000 X-Inumbo-ID: f5bc216a-acc4-11ea-b5e3-12813bfff9fa Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f5bc216a-acc4-11ea-b5e3-12813bfff9fa; Fri, 12 Jun 2020 15:54:13 +0000 (UTC) Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: YXrMwguBL+IgQnqDk0+ehaEcLNp0LZ5jt6xVp6hqo/xaZkWeBYdSSRXt/sg9Cj5K2Ld/6dJBR5 bMJeVWmatGTDj1Z46cEchT8IgwEQ2WR5MRCBckvvzN9B1LJRNdabRNQf+vrO4ry3ukIkfZV5HN ENcKRN/ELT1HOmWZc+GC0i0SOKDMegIY+iGW4DI/Ri04AsUaGGWnwyGXGzClpsTt3RuaQmf0nz zJCPkdLTex5/1QDAheQMzcdgiZw1GTtnx7zYXsDG3Me2tKVmZ2DFxEqAmtNg65P4VRnOk3g7Zy aO4= X-SBRS: 2.7 X-MesageID: 20213136 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.73,503,1583211600"; d="scan'208";a="20213136" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <24291.42247.159206.867256@mariner.uk.xensource.com> Date: Fri, 12 Jun 2020 16:53:43 +0100 To: "paul@xen.org" Subject: RE: [PATCH for-4.14] tools/libxc: Drop config_transformed parameter from xc_cpuid_set() In-Reply-To: <000301d640a9$743c5510$5cb4ff30$@xen.org> References: <20200612105519.18728-1-andrew.cooper3@citrix.com> <000301d640a9$743c5510$5cb4ff30$@xen.org> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , 'Wei Liu' , 'Xen-devel' Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Paul Durrant writes ("RE: [PATCH for-4.14] tools/libxc: Drop config_transformed parameter from xc_cpuid_set()"): > > -----Original Message----- > > From: Andrew Cooper > > Sent: 12 June 2020 11:55 > > To: Xen-devel > > Cc: Andrew Cooper ; Ian Jackson ; Wei Liu > > ; Paul Durrant > > Subject: [PATCH for-4.14] tools/libxc: Drop config_transformed parameter from xc_cpuid_set() > > > > libxl is now the sole caller of xc_cpuid_set(). The config_transformed output > > is ignored, and this patch trivially highlights the resulting memory leak. > > > > "transformed" config is now properly forwarded on migrate as part of the > > general VM state, so delete the transformation logic completely, rather than > > trying to adjust just libxl to avoid leaking memory. > > > > Signed-off-by: Andrew Cooper > > Reviewed-by: Paul Durrant > Release-acked-by: Paul Durrant Reviewed-by: Ian Jackson I will commit this in a moment. Ian.