Date: Thu, 22 Feb 2018 23:09:23 +0000 From: "fabian.freyer_physik.tu-berlin.de (Fabian Freyer)" <phabric-noreply@FreeBSD.org> To: freebsd-virtualization@freebsd.org Subject: [Differential] D14473: userboot: add callbacks to set unrestricted guest mode Message-ID: <34c44971aaaf76394bec47fc82468525@localhost.localdomain> In-Reply-To: <differential-rev-PHID-DREV-z4kdgdlru2lrsvfkw4bo-req@FreeBSD.org> References: <differential-rev-PHID-DREV-z4kdgdlru2lrsvfkw4bo-req@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--b1_34c44971aaaf76394bec47fc82468525 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 ZmFiaWFuLmZyZXllcl9waHlzaWsudHUtYmVybGluLmRlIHVwZGF0ZWQgdGhpcyByZXZpc2lvbiB0 byBEaWZmIDM5NjE5LgpmYWJpYW4uZnJleWVyX3BoeXNpay50dS1iZXJsaW4uZGUgZWRpdGVkIHRo ZSBzdW1tYXJ5IG9mIHRoaXMgcmV2aXNpb24uCmZhYmlhbi5mcmV5ZXJfcGh5c2lrLnR1LWJlcmxp bi5kZSBlZGl0ZWQgdGhlIHRlc3QgcGxhbiBmb3IgdGhpcyByZXZpc2lvbi4KZmFiaWFuLmZyZXll cl9waHlzaWsudHUtYmVybGluLmRlIGFkZGVkIGEgY29tbWVudC4KVGhpcyByZXZpc2lvbiBub3cg cmVxdWlyZXMgcmV2aWV3IHRvIHByb2NlZWQuCgoKICAtIHVwZGF0ZWQgdGhlIGNvbW1lbnQgYXQg dGhlIHZlcnNpb24gaWRlbnRpZmllciB0byBjb3JyZWN0bHkgbGlzdCB0aGUgY2hhbmdlcyBpbnRy b2R1Y2VkIGJ5IHRoaXMgdmVyc2lvbgogIC0gYWRkZWQgYSBjYWxsYmFjayB0byBgdmNwdV9yZXNl dGAKClJFUE9TSVRPUlkKICByUyBGcmVlQlNEIHNyYyByZXBvc2l0b3J5CgpDSEFOR0VTIFNJTkNF IExBU1QgVVBEQVRFCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL0QxNDQ3Mz92cz0zOTYw OSZpZD0zOTYxOQoKUkVWSVNJT04gREVUQUlMCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3Jn L0QxNDQ3MwoKQUZGRUNURUQgRklMRVMKICBzdGFuZC91c2VyYm9vdC91c2VyYm9vdC5oCiAgdXNy LnNiaW4vYmh5dmVsb2FkL2JoeXZlbG9hZC5jCgpFTUFJTCBQUkVGRVJFTkNFUwogIGh0dHBzOi8v cmV2aWV3cy5mcmVlYnNkLm9yZy9zZXR0aW5ncy9wYW5lbC9lbWFpbHByZWZlcmVuY2VzLwoKVG86 IGZhYmlhbi5mcmV5ZXJfcGh5c2lrLnR1LWJlcmxpbi5kZSwgaW1wLCAjYmh5dmUsIGdyZWhhbgpD YzogZ3JlaGFuLCBpbXAsIGZyZWVic2QtdmlydHVhbGl6YXRpb24tbGlzdCwgI2NvbnRyaWJ1dG9y X3Jldmlld3NfYmFzZQo= --b1_34c44971aaaf76394bec47fc82468525 Content-Type: text/x-patch; charset=utf-8; name="D14473.39619.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D14473.39619.patch" ZGlmZiAtLWdpdCBhL3Vzci5zYmluL2JoeXZlbG9hZC9iaHl2ZWxvYWQuYyBiL3Vzci5zYmluL2Jo eXZlbG9hZC9iaHl2ZWxvYWQuYwotLS0gYS91c3Iuc2Jpbi9iaHl2ZWxvYWQvYmh5dmVsb2FkLmMK KysrIGIvdXNyLnNiaW4vYmh5dmVsb2FkL2JoeXZlbG9hZC5jCkBAIC01NjAsNiArNTYwLDMwIEBA CiAJcmV0dXJuICh2bV9zZXRfZGVzYyhjdHgsIHZjcHUsIHJlZywgYmFzZSwgbGltaXQsIGFjY2Vz cykpOwogfQogCitzdGF0aWMgaW50CitjYl92bV9nZXRfdW5yZXN0cmljdGVkX2d1ZXN0KHZvaWQq IGFyZywgaW50IHZjcHUsIGludCAqcm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RoZSBVTlJFU1RSSUNURURfR1VFU1QKKwkgKiBjYXBhYmls aXR5IGFuZCBpZiBzdXBwb3J0ZWQsIHNldHMgJ3JldHZhbCcuIElmIHVuc3VwcG9ydGVkLCBhbiBl cnJvcgorCSAqIGNvZGUgaXMgcmV0dXJuZWQuCisJICoKKwkgKiB2bV9zZXRfdW5yZXN0cmljdGVk X2d1ZXN0IHNldHMgdGhlIFVOUkVTVFJJQ1RFRF9HVUVTVCBjYXBhYmlsaXR5IGlmCisJICogc3Vw cG9ydGVkLCBhbmQgcmV0dXJucyBhbiBlcnJvciBjb2RlIG90aGVyd2lzZS4KKwkgKgorCSAqIHZj cHVfcmVzZXQgaW5pdGlhbGl6ZXMgdGhlIHZDUFUgc3RhdGUgYXMgZGVmaW5lZCBpbiAKKwkgKiBJ bnRlbCBWb2wgM2EsIFRhYmxlIDkuMS4gSUEtMzIgUHJvY2Vzc29yIFN0YXRlcyBGb2xsb3dpbmcg UG93ZXItdXAsCisJICogUmVzZXQgb3IgSU5JVAorCSAqLworCWludAkoKnZtX2dldF91bnJlc3Ry aWN0ZWRfZ3Vlc3QpKHZvaWQqIGFyZywgaW50IHZjcHUsIGludCAqcmV0dmFsKTsKKwlpbnQJKCp2 bV9zZXRfdW5yZXN0cmljdGVkX2d1ZXN0KSh2b2lkKiBhcmcsIGludCB2Y3B1LCBpbnQgdmFsKTsK KwlpbnQJKCp2Y3B1X3Jlc2V0KSh2b2lkKiBhcmcsIGludCB2Y3B1KTsKIH07Cgo= --b1_34c44971aaaf76394bec47fc82468525--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34c44971aaaf76394bec47fc82468525>