Date: Fri, 23 Feb 2018 19:16:17 +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: <165aeb06e6eb089a6f32c43ceabdfc93@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_165aeb06e6eb089a6f32c43ceabdfc93 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 ZmFiaWFuLmZyZXllcl9waHlzaWsudHUtYmVybGluLmRlIHVwZGF0ZWQgdGhpcyByZXZpc2lvbiB0 byBEaWZmIDM5NjUzLgpmYWJpYW4uZnJleWVyX3BoeXNpay50dS1iZXJsaW4uZGUgYWRkZWQgYSBj b21tZW50LgpUaGlzIHJldmlzaW9uIG5vdyByZXF1aXJlcyByZXZpZXcgdG8gcHJvY2VlZC4KCgog IHBhc3MgYFVTRVJCT09UX1ZFUlNJT05fNWAgdG8gYGxvYWRlcl9tYWluYC4KClJFUE9TSVRPUlkK ICByUyBGcmVlQlNEIHNyYyByZXBvc2l0b3J5CgpDSEFOR0VTIFNJTkNFIExBU1QgVVBEQVRFCiAg aHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL0QxNDQ3Mz92cz0zOTYyMiZpZD0zOTY1MwoKUkVW SVNJT04gREVUQUlMCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL0QxNDQ3MwoKQUZGRUNU RUQgRklMRVMKICBzdGFuZC91c2VyYm9vdC91c2VyYm9vdC5oCiAgdXNyLnNiaW4vYmh5dmVsb2Fk L2JoeXZlbG9hZC5jCgpFTUFJTCBQUkVGRVJFTkNFUwogIGh0dHBzOi8vcmV2aWV3cy5mcmVlYnNk Lm9yZy9zZXR0aW5ncy9wYW5lbC9lbWFpbHByZWZlcmVuY2VzLwoKVG86IGZhYmlhbi5mcmV5ZXJf cGh5c2lrLnR1LWJlcmxpbi5kZSwgaW1wLCByZ3JpbWVzLCAjYmh5dmUsIGdyZWhhbgpDYzogZ3Jl aGFuLCBpbXAsIGZyZWVic2QtdmlydHVhbGl6YXRpb24tbGlzdCwgI2NvbnRyaWJ1dG9yX3Jldmll d3NfYmFzZQo= --b1_165aeb06e6eb089a6f32c43ceabdfc93 Content-Type: text/x-patch; charset=utf-8; name="D14473.39653.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D14473.39653.patch" ZGlmZiAtLWdpdCBhL3Vzci5zYmluL2JoeXZlbG9hZC9iaHl2ZWxvYWQuYyBiL3Vzci5zYmluL2Jo eXZlbG9hZC9iaHl2ZWxvYWQuYwotLS0gYS91c3Iuc2Jpbi9iaHl2ZWxvYWQvYmh5dmVsb2FkLmMK KysrIGIvdXNyLnNiaW4vYmh5dmVsb2FkL2JoeXZlbG9hZC5jCkBAIC01NjAsNiArNTYwLDMzIEBA CiAJcmV0dXJuICh2bV9zZXRfZGVzYyhjdHgsIHZjcHUsIHJlZywgYmFzZSwgbGltaXQsIGFjY2Vz cykpOwogfQogCitzdGF0aWMgaW50CitjYl92bV9nZXRfdW5yZXN0cmljdGVkX2d1ZXN0KHZvaWQq IGFyZywgaW50IHZjcHUsIGludCAqcmV0dmFsKQoreworCisJcmV0dXJuICh2bV9nZXRfY2FwYWJp bGl0eShjdHgsIHZjcHUsCisJICAgIFZNX0NBUF9VTlJFU1RSSUNURURfR1VFU1QsIHJldHZhbCkp OworfQorCitzdGF0aWMgaW50CitjYl92bV9zZXRfdW5yZXN0cmljdGVkX2d1ZXN0KHZvaWQqIGFy ZywgaW50IHZjcHUsIGludCB2YWwpCit7CisJaW50IGVycm9yLCB0bXA7CisKKwlpZiAoKGVycm9y ID0gY2Jfdm1fZ2V0X3VucmVzdHJpY3RlZF9ndWVzd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VAorCSAqIGNhcGFiaWxp dHkgYW5kIGlmIHN1cHBvcnRlZCwgc2V0cyAncmV0dmFsJy4gSWYgdW5zdXBwb3J0ZWQsIGFuIGVy cm9yCisJICogY29kZSBpcyByZXR1cm5lZC4KKwkgKgorCSAqIHZtX3NldF91bnJlc3RyaWN0ZWRf Z3Vlc3Qgc2V0cyB0aGUgVU5SRVNUUklDVEVEX0dVRVNUIGNhcGFiaWxpdHkgaWYKKwkgKiBzdXBw b3J0ZWQsIGFuZCByZXR1cm5zIGFuIGVycm9yIGNvZGUgb3RoZXJ3aXNlLgorCSAqCisJICogdmNw dV9yZXNldCBpbml0aWFsaXplcyB0aGUgdkNQVSBzdGF0ZSBhcyBkZWZpbmVkIGluCisJICogSW50 ZWwgVm9sIDNhLCBUYWJsZSA5LjEuIElBLTMyIFByb2Nlc3NvciBTdGF0ZXMgRm9sbG93aW5nIFBv d2VyLXVwLAorCSAqIFJlc2V0IG9yIElOSVQKKwkgKi8KKwlpbnQJKCp2bV9nZXRfdW5yZXN0cmlj dGVkX2d1ZXN0KSh2b2lkKiBhcmcsIGludCB2Y3B1LCBpbnQgKnJldHZhbCk7CisJaW50CSgqdm1f c2V0X3VucmVzdHJpY3RlZF9ndWVzdCkodm9pZCogYXJnLCBpbnQgdmNwdSwgaW50IHZhbCk7CisJ aW50CSgqdmNwdV9yZXNldCkodm9pZCogYXJnLCBpbnQgdmNwdSk7CiB9OwoK --b1_165aeb06e6eb089a6f32c43ceabdfc93--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?165aeb06e6eb089a6f32c43ceabdfc93>