Date: Thu, 22 Feb 2018 23:21:08 +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: <f3a7a6f87bbecfef897ce5c7ed3b209f@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_f3a7a6f87bbecfef897ce5c7ed3b209f Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 ZmFiaWFuLmZyZXllcl9waHlzaWsudHUtYmVybGluLmRlIHVwZGF0ZWQgdGhpcyByZXZpc2lvbiB0 byBEaWZmIDM5NjIyLgpmYWJpYW4uZnJleWVyX3BoeXNpay50dS1iZXJsaW4uZGUgYWRkZWQgYSBj b21tZW50LgoKCiAgYWRkcmVzc2VkIEBncmVoYW4ncyBjb21tZW50cyByZWdhcmRpbmcgc3R5bGUo OSkKClJFUE9TSVRPUlkKICByUyBGcmVlQlNEIHNyYyByZXBvc2l0b3J5CgpDSEFOR0VTIFNJTkNF IExBU1QgVVBEQVRFCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL0QxNDQ3Mz92cz0zOTYx OSZpZD0zOTYyMgoKUkVWSVNJT04gREVUQUlMCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3Jn L0QxNDQ3MwoKQUZGRUNURUQgRklMRVMKICBzdGFuZC91c2VyYm9vdC91c2VyYm9vdC5oCiAgdXNy LnNiaW4vYmh5dmVsb2FkL2JoeXZlbG9hZC5jCgpFTUFJTCBQUkVGRVJFTkNFUwogIGh0dHBzOi8v cmV2aWV3cy5mcmVlYnNkLm9yZy9zZXR0aW5ncy9wYW5lbC9lbWFpbHByZWZlcmVuY2VzLwoKVG86 IGZhYmlhbi5mcmV5ZXJfcGh5c2lrLnR1LWJlcmxpbi5kZSwgaW1wLCAjYmh5dmUsIGdyZWhhbgpD YzogZ3JlaGFuLCBpbXAsIGZyZWVic2QtdmlydHVhbGl6YXRpb24tbGlzdCwgI2NvbnRyaWJ1dG9y X3Jldmlld3NfYmFzZQo= --b1_f3a7a6f87bbecfef897ce5c7ed3b209f Content-Type: text/x-patch; charset=utf-8; name="D14473.39622.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D14473.39622.patch" ZGlmZiAtLWdpdCBhL3Vzci5zYmluL2JoeXZlbG9hZC9iaHl2ZWxvYWQuYyBiL3Vzci5zYmluL2Jo eXZlbG9hZC9iaHl2ZWxvYWQuYwotLS0gYS91c3Iuc2Jpbi9iaHl2ZWxvYWQvYmh5dmVsb2FkLmMK KysrIGIvdXNyLnNiaW4vYmh5dmVsb2FkL2JoeXZlbG9hZC5jCkBAIC01NjAsNiArNTYwLDMzIEBA CiAJcmV0dXJuICh2bV9zZXRfZGVzYyhjdHgsIHZjcHUsIHJlZywgYmFzZSwgbGltaXQsIGFjY2Vz cykpOwogfQogCitzdGF0aWMgaW50CitjYl92bV9nZXRfdW5yZXN0cmljdGVkX2d1ZXN0KHZvaWQq IGFyZywgaW50IHZjcHUsIGludCAqcmV0dmFsKQoreworCisJcmV0dXJuICh2bV9nZXRfY2FwYWJp bGl0eShjdHgsIHZjcHUsCisJICAgIFZNX0NBUF9VTlJFU1RSSUNURURfR1VFU1QsIHJldHZhbCkp OworfQorCitzdGF0aWMgaW50CitjYl92bV9zZXRfdW5yZXN0cmljdGVkX2d1ZXN0KHZvaWQqIGFy ZywgaW50IHZjcHUsIGludCB2YWwpCit7CisJaW50IGVycm9yLCB0bXA7CisKKwlpZiAoKGVycm9y ID0gY2Jfdm1fZ2V0X3VucmVzdHJpY3RlZF9ndWVzdChhcmcsIHZjcHUsICZ0bXApKSkKKwkJcmV0 dXJuIChlcnJvcik7CisKKwlyZXR1cm4gKH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FsaXplcyB0aGUgdkNQVSBzdGF0ZSBhcyBkZWZp bmVkIGluIAorCSAqIEludGVsIFZvbCAzYSwgVGFibGUgOS4xLiBJQS0zMiBQcm9jZXNzb3IgU3Rh dGVzIEZvbGxvd2luZyBQb3dlci11cCwKKwkgKiBSZXNldCBvciBJTklUCisJICovCisJaW50CSgq dm1fZ2V0X3VucmVzdHJpY3RlZF9ndWVzdCkodm9pZCogYXJnLCBpbnQgdmNwdSwgaW50ICpyZXR2 YWwpOworCWludAkoKnZtX3NldF91bnJlc3RyaWN0ZWRfZ3Vlc3QpKHZvaWQqIGFyZywgaW50IHZj cHUsIGludCB2YWwpOworCWludAkoKnZjcHVfcmVzZXQpKHZvaWQqIGFyZywgaW50IHZjcHUpOwog fTsKCg== --b1_f3a7a6f87bbecfef897ce5c7ed3b209f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f3a7a6f87bbecfef897ce5c7ed3b209f>