From nobody Mon Feb 9 20:46:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eu.citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1571835700; cv=none; d=zoho.com; s=zohoarc; b=ONr682J3azg6TjEFxo0KMiDeLUID7xIWw/hTQkQdSaV94MT5gElqOfeKAMW9xT1J2Q5V/V2hvG0HwqDkKhLkLwr7CmZ5wS4KRZJtZgl46sozRzc7zODvvK4I0d8pLEupDmcmIHYKno6HW+tW2kghsqlXr+ejTCKxudXcap8UFbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571835700; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Y11FNwS1RESPABy8uIdR4/VoXhRjR5zj1I/VUD72jOA=; b=QRLUxKiS/ViVNfOnBkuJSDY+TFiduZwimsPQAXOgcTm6FDM4lLCa5QhFrj21rPYZadV99vkWPKYPeqRfAni6GsR9IDO+c81xupJagwueyKxlampcUHEyQzWbspUIY4dzyJyvjYoPRmoib7LdrQaLN1TivtslL3+G9qhS0QETrGY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1571835700443975.1211084034766; Wed, 23 Oct 2019 06:01:40 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNGFV-0005tb-Ox; Wed, 23 Oct 2019 13:00:25 +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 1iNGFT-0005tP-Ty for xen-devel@lists.xenproject.org; Wed, 23 Oct 2019 13:00:23 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 129cbdaf-f595-11e9-947c-12813bfff9fa; Wed, 23 Oct 2019 13:00:23 +0000 (UTC) X-Inumbo-ID: 129cbdaf-f595-11e9-947c-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1571835623; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=Zzusm/RjFNRE7hHrONeMgqDs0JYfYY3tV4/RvhfMiVc=; b=fM5O45k7aTEED5rzXamwk3GY5OUACc5GbOpaQPow/ZuYBs0C6wbvDmke SdaIoeYlJB3fwVDOrCF/gRjtA8R65tAmhZjcyqOJVTEHOE/8E5KSystx2 JMnbLfTfEZUCSFbLjZAE7ouXnJmU7RHOh1rK/RO0ZtSlxQ3yUTxv11jTE o=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@eu.citrix.com; spf=Pass smtp.mailfrom=Ian.Jackson@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of ian.jackson@eu.citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="ian.jackson@eu.citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of Ian.Jackson@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="Ian.Jackson@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 (esa2.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=esa2.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: X/4Gn0cguiAyVNNvqcMzR1m1/kqMUq4+80mkVvFKG5NXM/O0ej4IK+9ZpLb67Jrd0U1rreD4zh Uj/viI6PQykq4pwA5wVtcHvk2OSs5clE6HKU1AN2yt9fITE6A+/8yz705DqlrLqbD+JypeDd1v H/aqR5CfcyNrq2kUpTuDaWGsOGUDNSUBNMZrcdHuvz7J8ZTEQ0eaXqL0YONKuLzNAzzvdCFmuc gNpJ8UivpgZNIYoSv9TkzFyZNIQjglQWB/0YjDqwDcI7a2FZ5xpUWA/1t/79qAWuy27C+CAdNk o+k= X-SBRS: 2.7 X-MesageID: 7317937 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.68,220,1569297600"; d="scan'208";a="7317937" From: Ian Jackson To: Date: Wed, 23 Oct 2019 14:00:04 +0100 Message-ID: <20191023130013.32382-3-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191023130013.32382-1-ian.jackson@eu.citrix.com> References: <20191023130013.32382-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [XEN PATCH for-4.13 v7 02/11] xl: Pass libxl_domain_config to freemem(), instead of b_info 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: =?UTF-8?q?J=C3=BCrgen=20Gro=C3=9F?= , Ian Jackson , Wei Liu Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We are going to change the libxl API in a moment and this change will make it simpler. Signed-off-by: Ian Jackson Reviewed-by: Anthony PERARD --- tools/xl/xl_vmcontrol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/xl/xl_vmcontrol.c b/tools/xl/xl_vmcontrol.c index b20582e15b..d33c6b38c9 100644 --- a/tools/xl/xl_vmcontrol.c +++ b/tools/xl/xl_vmcontrol.c @@ -314,7 +314,7 @@ static int domain_wait_event(uint32_t domid, libxl_even= t **event_r) * Returns true in case there is already, or we manage to free it, enough * memory, but also if autoballoon is false. */ -static bool freemem(uint32_t domid, libxl_domain_build_info *b_info) +static bool freemem(uint32_t domid, libxl_domain_config *d_config) { int rc, retries =3D 3; uint64_t need_memkb, free_memkb; @@ -322,7 +322,7 @@ static bool freemem(uint32_t domid, libxl_domain_build_= info *b_info) if (!autoballoon) return true; =20 - rc =3D libxl_domain_need_memory(ctx, b_info, &need_memkb); + rc =3D libxl_domain_need_memory(ctx, &d_config->b_info, &need_memkb); if (rc < 0) return false; =20 @@ -879,7 +879,7 @@ start: goto error_out; =20 if (domid_soft_reset =3D=3D INVALID_DOMID) { - if (!freemem(domid, &d_config.b_info)) { + if (!freemem(domid, &d_config)) { fprintf(stderr, "failed to free memory for the domain\n"); ret =3D ERROR_FAIL; goto error_out; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel