From nobody Mon Feb 9 09:15:45 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 ARC-Seal: i=1; a=rsa-sha256; t=1568914911; cv=none; d=zoho.com; s=zohoarc; b=JYADJl/H+UY7FD+UwPzR4LOFsaj3OgUauXLRdgsfuyqTRx1OtqYPpVbjxmABXyaat/yGuRFvmC8GXYc8qrDj3KB2k1VhcxfWRlmg9c4vVSyFqPr+EjOwBjZnemHHCfJArwtYhF/K1OsBgEL+ZXNjEhASXmzMnyHYqi9FpTbCrXw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568914911; 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:ARC-Authentication-Results; bh=wmjWVxaz3gC2iMX+MjSqOSOSWCgSj82f6NP1+aI5rA0=; b=W4rrKyaRhQSAKtWVgbKHZ09VkiRsQsxLrsB0o8RICAc/cylmGXfCrH8NW06ZozdV72mjvNnYG7qc60tYGDs8+JXp4xl6dgboR3u3s7feqkONGr8lnI/9wj3jJjCWpECxQ2gNvXpKQzQdosv0dNkDHu+S28wuUuKJLD9ZmbrTJMo= 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 Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1568914911053695.9872446494409; Thu, 19 Sep 2019 10:41:51 -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 1iB0QI-0004DQ-LJ; Thu, 19 Sep 2019 17:40:54 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iB0QH-0004CN-4e for xen-devel@lists.xenproject.org; Thu, 19 Sep 2019 17:40:53 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 99251016-db04-11e9-b299-bc764e2007e4; Thu, 19 Sep 2019 17:40:40 +0000 (UTC) X-Inumbo-ID: 99251016-db04-11e9-b299-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1568914840; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=P5gXE6loAUwR0Noo3tNpKxWqPNrwXEFLSMhwKLpISw4=; b=LwARxg7xsysCmsu9FVlo2UD+3AXf5LjmOATGqXAJwSnSB+gB6ZGTCMhl NNEXKvbmU6rzyShfA5/Qw5I4hxG/J3YT1hxUYDyPt/Esh5fegSCAkR37w naAmsqFemUjqFFKvFoh2MApbSlcqTw7O4tqTiEjtSEvIj9DuRuwtRNH8t Y=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=anthony.perard@citrix.com; spf=Pass smtp.mailfrom=anthony.perard@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 anthony.perard@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of anthony.perard@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="anthony.perard@citrix.com"; x-sender="anthony.perard@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 ~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="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: T/4CIALplJSiaTi7Zo6kd1ZX1uvRN3k9L4KMpxVRy/wp8/PcPXPvcGgkm03pZ24AJdGQhpJBg/ wn4dfGgbbBnVKE8FS6K+lKcfyYS02S6YScHWR2obd8md6aVsNxckuCRmqPSOUnAaINged2FVDJ fHTOb1AsBdHLs/NjmfQzMe6YYvM6XFThIOJG7JljNAKvrNf3DnOIgvM5Mp5oyxgiSbI5UjfjTM Z/5K351ta+79WiI1mJNqbewSdVWggcOMq29HEnEySL5yj3OnlzDvoCJXPxfES4wqKZZSXpR5JZ 9/E= X-SBRS: 2.7 X-MesageID: 5801748 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.64,524,1559534400"; d="scan'208";a="5801748" From: Anthony PERARD To: Date: Thu, 19 Sep 2019 18:16:31 +0100 Message-ID: <20190919171656.899649-12-anthony.perard@citrix.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919171656.899649-1-anthony.perard@citrix.com> References: <20190919171656.899649-1-anthony.perard@citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2 11/35] libxl_domain: Convert libxl_domain_resume to use libxl__domain_resume 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: Anthony PERARD , 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) Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- tools/libxl/libxl_domain.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_domain.c b/tools/libxl/libxl_domain.c index 80797c5ed21c..d78ffa6b6019 100644 --- a/tools/libxl/libxl_domain.c +++ b/tools/libxl/libxl_domain.c @@ -174,15 +174,32 @@ int libxl_domain_rename(libxl_ctx *ctx, uint32_t domi= d, return rc; } =20 +static void domain_resume_done(libxl__egc *egc, + libxl__dm_resume_state *, + int rc); + int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid, int suspend_cancel, const libxl_asyncop_how *ao_how) { AO_CREATE(ctx, domid, ao_how); - int rc =3D libxl__domain_resume_deprecated(gc, domid, suspend_cancel); - libxl__ao_complete(egc, ao, rc); + libxl__dm_resume_state *dmrs; + + GCNEW(dmrs); + dmrs->ao =3D ao; + dmrs->domid =3D domid; + dmrs->callback =3D domain_resume_done; + libxl__domain_resume(egc, dmrs, suspend_cancel); return AO_INPROGRESS; } =20 +static void domain_resume_done(libxl__egc *egc, + libxl__dm_resume_state *dmrs, + int rc) +{ + STATE_AO_GC(dmrs->ao); + libxl__ao_complete(egc, ao, rc); +} + /* * Preserves a domain but rewrites xenstore etc to make it unique so * that the domain can be restarted. --=20 Anthony PERARD _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel