Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Nov 2022 11:22:55 +0100
From:      =?UTF-8?Q?Corvin_K=c3=b6hne?= <corvink@FreeBSD.org>
To:        freebsd-virtualization@FreeBSD.org
Subject:   Re: bhyve nvlist constness bug
Message-ID:  <80881e5b-74d8-3831-85ac-cb8b8d3d0413@FreeBSD.org>
In-Reply-To: <924528458d3b4265a9bf36050c949c3f@beckhoff.com>
References:  <Y1WFjpZ8zzVOrhTK@nuc> <d158aa00-2639-a409-1fce-33538ab7eee0@FreeBSD.org> <924528458d3b4265a9bf36050c949c3f@beckhoff.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------r7DLUyWjeUWwd1gVv4KqTCoF
Content-Type: multipart/mixed; boundary="------------AROjg1WlGw903w7VyxgbAqkQ";
 protected-headers="v1"
From: =?UTF-8?Q?Corvin_K=c3=b6hne?= <corvink@FreeBSD.org>
To: freebsd-virtualization@FreeBSD.org
Message-ID: <80881e5b-74d8-3831-85ac-cb8b8d3d0413@FreeBSD.org>
Subject: Re: bhyve nvlist constness bug
References: <Y1WFjpZ8zzVOrhTK@nuc>
 <d158aa00-2639-a409-1fce-33538ab7eee0@FreeBSD.org>
 <924528458d3b4265a9bf36050c949c3f@beckhoff.com>
In-Reply-To: <924528458d3b4265a9bf36050c949c3f@beckhoff.com>

--------------AROjg1WlGw903w7VyxgbAqkQ
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64

PiBPbiAxMC8yMy8yMiAxMToxOCBBTSwgTWFyayBKb2huc3RvbiB3cm90ZToNCj4+IEknbSBn
b2luZyB0aHJvdWdoIGNvbXBpbGVyIHdhcm5pbmdzIGluIHRoZSBiaHl2ZSBjb2RlIHdpdGgg
dGhlIGFpbSBvZg0KPj4gYnVtcGluZyBXQVJOUywgc2luY2UgdGhlIGN1cnJlbnQgc2V0dGlu
ZyBoaWRlcyBidWdzLiAgVGhlcmUncyBvb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bW9kaWZ5IHRoZSANCmRhdGEgYW5kIHdyaXRlIGl0IGJhY2sg
d2l0aCBudmxpc3RfbW92ZS9udmxpc3RfYWRkLiBUaGlzIHJlcXVpcmVzIHRoYXQgDQp3ZSBw
YXRjaCB0aGUgY29uc3VtZXJzIHRvIGZvbGxvdyB0aGVzZSBydWxlcy4NCg0KSSBkb24ndCBr
bm93IGhvdyBtdWNoIHdvcmsgd291bGQgYmUgcmVxdWlyZWQgdG8gdHVybiBiaHl2ZSBpbnRv
IGEgQysrIA0KcHJvZ3JhbS4gSWYgaXQncyBkb2FibGUsIEkgdm90ZSBmb3IgdGhpcyBhcHBy
b2FjaC4NCg0KDQotLSANCkJlc3QgcmVnYXJkcywNCkNvcnZpbg0KDQo=

--------------AROjg1WlGw903w7VyxgbAqkQ--

--------------r7DLUyWjeUWwd1gVv4KqTCoF
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmNk5/8FAwAAAAAACgkQ2FTaVjFeAmow
qQ/+NyFJf03jje9QkE8ISoO4OJ7xFluE8XZbQ9iFYIfWAYctKNUuysR+ZAdVOz3KkVxW0D71fQwD
VCDhyQyu9bqqDdsGzqI0EtB71iufcvyg9hEUCF+tcJgLSa+7BjhGyfk9CpKm2ddMkS7DeWne2ofO
EU7Ap6o8rqZeYnoWLUv7uusOZ3JelXR9xXpwwiaYnkyqATN/XQm1E8hLKtkjURZJoUffr1Rs3cVY
np51MHs4P1rXlWUOshAkVKn3ecWq1TacU9mgKB/XobVB8BtMYkVf4+IAuYGaDVtgYaNeidZZKI9C
hC2RqG9jCwhHNIJDavx6HDVBhBepKuFwvfqyhUizwi/n1c40DeQdHtnjtMmmInCjVq+ko0oTDfnt
I12gGqkNI4DasS8TrT9kigM0+F0l1W5lzFVViEj8lVkaKfs3crhU3e02yejm5+0+0twvSL7uW6Jx
KhkOjmJSk3zLvdp+dCa39jULOhRKL5VwXbH5guc0MmMqk+W1MnrOOwuSYzfrsJvjt5Vc6MLjAcLe
QJppSp4lUbJ6Apn+LpLBQUsBIommkDrEpPuKJFFUubDoftM7Hq99HVW7T5FLmKS1xBVaE1878i4F
29z3Y9IqLNwa/1pcoLt55/aqqTDKWrxmJ3SDV/Yib3YiXR8PZKdpW3tamRka2Jl7IhmNeauIgiMq
m1M=
=JgsY
-----END PGP SIGNATURE-----

--------------r7DLUyWjeUWwd1gVv4KqTCoF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80881e5b-74d8-3831-85ac-cb8b8d3d0413>