| raw e-mail | index | archive | help
--=-7OuE1F3YU0+mfEpfmESN Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2024-06-14 at 17:50 +1000, Peter Grehan wrote: > > I don't know why bhyve validates the BAR size. The commit adding > > this > > check is old [1] and doesn't explain it. What bhyve could do is > > rounding up the BAR size to a full page size when allocating memory > > for > > the BAR. > >=20 > > [1] https://github.com/freebsd/freebsd- > > src/commit/7a902ec0eccc752c9c38533ed123121eaaea1225 >=20 > =C2=A0 At the time, BIOSs would often place device BARs of less than a > page=20 > size in the same physical page. Since EPT only gives page > granularity,=20 > this would result in all those devices being available to the guest > even=20 > if they hadn't been passed through. >=20 > later, >=20 > Peter. >=20 >=20 Thanks for the explanation! What can we do about it? Does FreeBSD remaps BARs if they aren't page aligned? If not, can we verify that the page is only used by a specific device? --=20 Kind regards, Corvin --=-7OuE1F3YU0+mfEpfmESN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmZv1eQACgkQ2FTaVjFe AmruthAAlp36SQVZpvIh2x1njku3QtX6n8YOPviDzqlz5yaQD9tqyQC0qe6lQeqJ dcTO7lSidprSklXQmba+X0ZAppCVsOq13MSQrWR757C5c/oUXBgudQ4klaB4vI7o eGlHM2ju9hSGq8r2IJJoxJma0eZs448Nb6k1wC9+i93IO9arOFmY4Qyji4gln6cW FYbpaIRi4mNQvX4V9322DuG2DsIg7iuTQ2LyHhIZaWY0X4Q+goU77wElK5G95oY/ ouvxuZCXpo2lL1v68J+Jz5GE6wfkKVTIcuWJ+M+dRM2EAHKc6pVtwikU+4l4FvNK whLcdoBxfepDpcxhYXLqtWVnJQFjkm45bZJVq71heRmjfs+Z9zrnWi94k+DDJJgV +UcT0OJNAyQqjyIElBOrUirTXNtUZfHT6pzCRoeWYnPTAoXS7h8NRJ0KeLCuZ9Lm jmpQyjePyg2ekL6l0SilqG8qjoYPa/EHsSRjBDP6wrmj6ADRXk6oG9FUo/gPGcpr evuNeH4EQEsRYTvgHaChhYPPDWHxqqCTTETQEH/yaWh1iakHjYYVhZIBMdq1QAyJ C1ckzL2eqXJzwJic9NOD+wzLHU7FazJI0Iybht5VinI7/GTPoRPCw4GcG1nGDdgq nai6B96OX7WjiJcPUhNXkt9CGG02lM0+HENPf0XnSXLACIhSiIU= =w7Hl -----END PGP SIGNATURE----- --=-7OuE1F3YU0+mfEpfmESN--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>