From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa3.hc3370-68.iphmx.com (esa3.hc3370-68.iphmx.com []) by mx.groups.io with SMTP id smtpd.web12.3549.1580299958349481989 for ; Wed, 29 Jan 2020 04:12:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@citrix.com header.s=securemail header.b=CIT+/N44; spf=softfail (domain: citrix.com, ip: , mailfrom: anthony.perard@citrix.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1580299962; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ko7mPFESyttG6Cuo2jpDQQtOn5TR6/Qfkew50O7TNrQ=; b=CIT+/N44scEAfj9XjH218iQTC+FVV3EwuYcTYpDZKToakQVjIrromXt3 gJFKPKmZ5s7A3Cbn1Sv6YNdDXYjirfbIxGXd+gwo7gWHNE1Un82g/4NL3 woWgSaDDrwOqNJeb1rWMKdJ334sZK1mDTUbCQjrKJuNEaapCbuEzprsl5 4=; Authentication-Results: esa3.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 (esa3.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=esa3.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.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=esa3.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 ip4:168.245.78.127 ~all" Received-SPF: None (esa3.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=esa3.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: DZAls7KjEEPgtD69CE24aJpVJ4rWeEnQNyNqRqMNlSKdfNm1Tx4T9anLwckAfhYAdFemmYexW3 PGdASXZsOpxGgSRlHUBoKKqDzXxqTvTdVnPxP1dAMH/zNVryQmgJEDVCPl35XmRFpTKeBG4CWJ h2U/lVBqB2zZm+g1S5XxY1d/LoH4K42d//MZhEGhEQXV8q+OYQs9BYBAsi5eRy1oTRDjdlGikT Klo2TDvp6fUeU/EYbnptMX43WG3cTWSBjw1vLBbF3HWllP4b0/OPQnmJPSvT5Qg0v/bi9WnSlN WoU= X-SBRS: 2.7 X-MesageID: 11606521 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.70,377,1574139600"; d="scan'208";a="11606521" From: "Anthony PERARD" To: CC: Michael D Kinney , Ard Biesheuvel , Anthony Perard , , Laszlo Ersek , "Liming Gao" , Jordan Justen , "Julien Grall" , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH 4/5] OvmfPkg/XenPlatformPei: Calibrate APIC timer frequency Date: Wed, 29 Jan 2020 12:12:34 +0000 Message-ID: <20200129121235.1814563-5-anthony.perard@citrix.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200129121235.1814563-1-anthony.perard@citrix.com> References: <20200129121235.1814563-1-anthony.perard@citrix.com> MIME-Version: 1.0 Return-Path: anthony.perard@citrix.com Content-Type: text/plain; charset="UTF-8" Content-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