Date: Thu, 22 Feb 2018 17:47:30 +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: <differential-rev-PHID-DREV-z4kdgdlru2lrsvfkw4bo-req@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
--b1_a9c59b379b8ee92a2d8db348a3c77877 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 ZmFiaWFuLmZyZXllcl9waHlzaWsudHUtYmVybGluLmRlIGNyZWF0ZWQgdGhpcyByZXZpc2lvbi4K ZmFiaWFuLmZyZXllcl9waHlzaWsudHUtYmVybGluLmRlIGFkZGVkIGEgcHJvamVjdDogYmh5dmUu CkhlcmFsZCBhZGRlZCBzdWJzY3JpYmVyczogQ29udHJpYnV0b3IgUmV2aWV3cyAoYmFzZSksIGlt cC4KClJFVklTSU9OIFNVTU1BUlkKICBUaGUgY3VycmVudCB1c2VyYm9vdCBpbnRlcmZhY2Ugc2V0 cyB0aGlzIGNhcGFiaWxpdHkgdXNpbmcgYHZtX3NldHVwX2ZyZWVic2RfcmVnaXN0ZXJzX2kzODZg IGluIGxpYi9saWJ2bW1hcGkvbGlidm1tYXBpX2ZyZWVic2QuYy4gVGhpcyBwYXRjaCBhZGRzIHN1 cHBvcnQgZm9yIGxvYWRlcnMgdG8gZXhwbGljaXRseSBxdWVyeSBhbmQvb3Igc2V0IHRoaXMgY2Fw YWJpbGl0eSB3aXRob3V0IGhhdmluZyB0byBnbyB0aHJvdWdoIHRoZSBgZXhlY2AgY2FsbGJhY2ss IGJ1dCBzZXQgdXAgcmVnaXN0ZXJzIHRoZW1zZWx2ZXMuCiAgCiAgVGhpcyBjaGFuZ2UgaXMgYmFj a3dhcmRzLWNvbXBhdGlibGUgYXMgYWxsIG5ldyBjYWxsYmFja3MgYXJlIGFkZGVkIHRvIHRoZSBl bmQgb2YgdGhlIGNhbGxiYWNrIHN0cnVjdHVyZS4KClRFU1QgUExBTgogIHRlc3Qgd2l0aCBhIGxp YnJhcnkgaW1wbGVtZW50aW5nIGBsb2FkZXJfbWFpbmAgYW5kIGNhbGxpbmcgdGhlc2UgY2FsbGJh Y2tzLiBDaGVjayB3aGV0aGVyIGNhcGFiaWxpdHkgaXMgc2V0LgoKUkVQT1NJVE9SWQogIHJTIEZy ZWVCU0Qgc3JjIHJlcG9zaXRvcnkKClJFVklTSU9OIERFVEFJTAogIGh0dHBzOi8vcmV2aWV3cy5m cmVlYnNkLm9yZy9EMTQ0NzMKCkFGRkVDVEVEIEZJTEVTCiAgc3RhbmQvdXNlcmJvb3QvdXNlcmJv b3QuaAogIHVzci5zYmluL2JoeXZlbG9hZC9iaHl2ZWxvYWQuYwoKRU1BSUwgUFJFRkVSRU5DRVMK ICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5vcmcvc2V0dGluZ3MvcGFuZWwvZW1haWxwcmVmZXJl bmNlcy8KClRvOiBmYWJpYW4uZnJleWVyX3BoeXNpay50dS1iZXJsaW4uZGUKQ2M6IGltcCwgZnJl ZWJzZC12aXJ0dWFsaXphdGlvbi1saXN0LCAjY29udHJpYnV0b3JfcmV2aWV3c19iYXNlCg== --b1_a9c59b379b8ee92a2d8db348a3c77877 Content-Type: text/x-patch; charset=utf-8; name="D14473.39609.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D14473.39609.patch" ZGlmZiAtLWdpdCBhL3Vzci5zYmluL2JoeXZlbG9hZC9iaHl2ZWxvYWQuYyBiL3Vzci5zYmluL2Jo eXZlbG9hZC9iaHl2ZWxvYWQuYwotLS0gYS91c3Iuc2Jpbi9iaHl2ZWxvYWQvYmh5dmVsb2FkLmMK KysrIGIvdXNyLnNiaW4vYmh5dmVsb2FkL2JoeXZlbG9hZC5jCkBAIC01NjAsNiArNTYwLDI0IEBA CiAJcmV0dXJuICh2bV9zZXRfZGVzYyhjdHgsIHZjcHUsIHJlZywgYmFzZSw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zdXBwb3J0ZWQsIHNldHMgJ3JldHZhbCcuIElmIHVuc3VwcG9ydGVkLCBhbiBlcnJvcgorCSAq IGNvZGUgaXMgcmV0dXJuZWQuCisJICoKKwkgKiB2bV9zZXRfdW5yZXN0cmljdGVkX2d1ZXN0IHNl dHMgdGhlIFVOUkVTVFJJQ1RFRF9HVUVTVCBjYXBhYmlsaXR5IGlmCisJICogc3VwcG9ydGVkLCBh bmQgcmV0dXJucyBhbiBlcnJvciBjb2RlIG90aGVyd2lzZS4KKwkgKi8KKwlpbnQJKCp2bV9nZXRf dW5yZXN0cmljdGVkX2d1ZXN0KSh2b2lkKiBhcmcsIGludCB2Y3B1LCBpbnQgKnJldHZhbCk7CisJ aW50CSgqdm1fc2V0X3VucmVzdHJpY3RlZF9ndWVzdCkodm9pZCogYXJnLCBpbnQgdmNwdSwgaW50 IHZhbCk7CiB9OwoK --b1_a9c59b379b8ee92a2d8db348a3c77877--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-z4kdgdlru2lrsvfkw4bo-req>