From owner-freebsd-virtualization@freebsd.org Mon Mar 6 09:34:48 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01572CFA0BE for ; Mon, 6 Mar 2017 09:34:48 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from reviews.nyi.freebsd.org (reviews.nyi.freebsd.org [IPv6:2610:1c1:1:607c::16:b]) by mx1.freebsd.org (Postfix) with ESMTP id BF81B1892 for ; Mon, 6 Mar 2017 09:34:47 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by reviews.nyi.freebsd.org (Postfix, from userid 1346) id CBF771BFB4; Mon, 6 Mar 2017 09:34:46 +0000 (UTC) Date: Mon, 6 Mar 2017 09:34:46 +0000 To: freebsd-virtualization@freebsd.org From: Phabricator Reply-to: D9904+333+15c447118e0d9ac4@reviews.freebsd.org Subject: [Differential] D9904: fix UEFI boot on physical machines Message-ID: X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , Thread-Topic: D9904: fix UEFI boot on physical machines X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: Precedence: bulk In-Reply-To: References: Thread-Index: MmEyZWEyODFhYTg3NzNlYWNkNzZjZGQzOTA3IFi9LTY= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_f75ce32fc0f5f61a5074dd7b0964ec30" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 09:34:48 -0000 --b1_f75ce32fc0f5f61a5074dd7b0964ec30 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 VGhpcyByZXZpc2lvbiB3YXMgYXV0b21hdGljYWxseSB1cGRhdGVkIHRvIHJlZmxlY3QgdGhlIGNv bW1pdHRlZCBjaGFuZ2VzLgpDbG9zZWQgYnkgY29tbWl0IHJTMzE0NzcwOiBsb2FkZXIuZWZpOiBm aXggcmVjZW50IFVFRkktYm9vdCByZWdyZXNzaW9uIG9uIHBoeXNpY2FsIG1hY2hpbmVzIChhdXRo b3JlZCBieSBkZXh1YW4pLgoKQ0hBTkdFRCBQUklPUiBUTyBDT01NSVQKICBodHRwczovL3Jldmll d3MuZnJlZWJzZC5vcmcvRDk5MDQ/dnM9MjYwMjMmaWQ9MjYwMjcjdG9jCgpSRVBPU0lUT1JZCiAg clMgRnJlZUJTRCBzcmMgcmVwb3NpdG9yeQoKQ0hBTkdFUyBTSU5DRSBMQVNUIFVQREFURQogIGh0 dHBzOi8vcmV2aWV3cy5mcmVlYnNkLm9yZy9EOTkwND92cz0yNjAyMyZpZD0yNjAyNwoKUkVWSVNJ T04gREVUQUlMCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL0Q5OTA0CgpBRkZFQ1RFRCBG SUxFUwogIGhlYWQvc3lzL2Jvb3QvZWZpL2xvYWRlci9jb3B5LmMKCkVNQUlMIFBSRUZFUkVOQ0VT CiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL3NldHRpbmdzL3BhbmVsL2VtYWlscHJlZmVy ZW5jZXMvCgpUbzogZGVjdWlfbWljcm9zb2Z0LmNvbSwgaW1wLCBqaGIsIHdpbGwsIGtpYiwgZGVs cGhpaiwgZW1hc3RlLCBtYXJjZWwsIGhvbnpoYW5fbWljcm9zb2Z0LmNvbSwgaG93YXJkMHN1X2dt YWlsLmNvbSwgdHNvb21lLCBnb256bywgbWFudSwgYW5kcmV3LCBzYnJ1bm8sIGFtYnJpc2tvLCBh bGxhbmp1ZGUsIGJhcHQsIGNlbSwgc21oLCBpYW4sIHNlcGhlcm9zYV9nbWFpbC5jb20KQ2M6IGZy ZWVic2QtdmlydHVhbGl6YXRpb24tbGlzdAo= --b1_f75ce32fc0f5f61a5074dd7b0964ec30 Content-Type: text/x-patch; charset=utf-8; name="D9904.26027.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D9904.26027.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Jvb3QvZWZpL2xvYWRlci9jb3B5LmMgYi9oZWFkL3N5cy9i b290L2VmaS9sb2FkZXIvY29weS5jCi0tLSBhL2hlYWQvc3lzL2Jvb3QvZWZpL2xvYWRlci9jb3B5 LmMKKysrIGIvaGVhZC9zeXMvYm9vdC9lZmkvbG9hZGVyL2NvcHkuYwpAQCAtNTMsNyArNTMsNyBA QAogCVVJTlQzMiBkdmVyOwogCUVGSV9TVEFUVVMgc3RhdHVzOwogCWludCBpLCBuZGVzYzsKLQl1 bnNpZ25lZCBsb25nIGF2YWlsYWJsZV9wYWdlczsKKwl1bnNpZ25lZCBsb25nIGF2YWlsYWJsZV9w YWdlcyA9IDA7CiAKIAlzeiA9IDA7CiAJc3RhdHVzID0gQlMtPkdldE1lbW9yeU1hcCgmc3osIDAs ICZrZXksICZkc3osICZkdmVyKTsKQEAgLTcwLDcgKzcwLDYgQEAKIAl9CiAKIAluZGVzYyA9IHN6 IC8gZHN6OwotCiAJZm9yIChpID0gMCwgcCA9IG1hcDsgaSA8IG5kZXNjOwogCSAgICAgaSsrLCBw ID0gTmV4dE1lbW9yeURlc2NyaXB0b3IocCwgZHN6KSkgewogCQlzdGFydCA9IHAtPlBoeXNpY2Fs U3RhcnQ7CkBAIC04MSwyMC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