From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@citrix.com header.s=securemail header.b=AFnFDFCY; spf=pass (domain: citrix.com, ip: 216.71.145.142, mailfrom: anthony.perard@citrix.com) Received: from esa1.hc3370-68.iphmx.com (esa1.hc3370-68.iphmx.com [216.71.145.142]) by groups.io with SMTP; Fri, 13 Sep 2019 07:51:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1568386267; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8kxur/mrODtHigFPsFoV90xNxdXr64amXia1NhFTkes=; b=AFnFDFCYiiq6rjJBxC9OGOXgy/eAfjlnhxaOlE6OGuTxTIbgQlgucmeP XTkkM6heYvhfvSrWp7UUfiqIO0OXD+H1YMBrlUctj2k9KJMNts0fnWXqw 7IECAnMN4GOePWE9U+WOjIQyOMk1/61VbN2rGzM9IV0Y/eq5jmL2xmrX5 U=; Authentication-Results: esa1.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 (esa1.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=esa1.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa1.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=esa1.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 (esa1.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=esa1.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: gA8UT5Ch/OGw3w+nTY3r6fio4u+BqYgSmlqKBXYupu999GYVV1zWWNJMsTOlVTQEyEErzLtXLU mLzxzSmCiCVgWqDW53Y+5bwfcIU0U1BqnnpheC4Wtt2VxFFnCTWffh7V5aBu5dxIeJFFsPJ27Z yYf4HTPPw1syuAYKXHZgzu8X6tmAR1FOwsdtomnRs0imfr+As4/BQ3io9d7+fBB8zNKurs0nav FTZoL0DNZfnYVjdaXjLfggT7kUxErUZCtbJKqf5lvKvGvzCiKL6wJO7HO+617LRq6MYVETNG+0 3mA= X-SBRS: 2.7 X-MesageID: 5595140 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.64,501,1559534400"; d="scan'208";a="5595140" From: "Anthony PERARD" To: CC: Ard Biesheuvel , Julien Grall , Jordan Justen , , Anthony Perard , Laszlo Ersek Subject: [PATCH 04/11] OvmfPkg/XenBusDxe: Avoid Allocate in XenStoreVSPrint Date: Fri, 13 Sep 2019 15:50:53 +0100 Message-ID: <20190913145100.303433-5-anthony.perard@citrix.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913145100.303433-1-anthony.perard@citrix.com> References: <20190913145100.303433-1-anthony.perard@citrix.com> MIME-Version: 1.0 Return-Path: anthony.perard@citrix.com Content-Transfer-Encoding: base64 Content-Type: text/plain SW4gb3JkZXIgdG8gYmUgYWJsZSB0byB1c2UgWGVuU3RvcmVWU1ByaW50IGR1cmluZyB0aGUKRXhp d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