Page MenuHomeFreeBSD

bhyve: use a fixed 32 bit BAR base address
ClosedPublic

Authored by corvink on Jul 5 2021, 1:27 PM.
Tags
Referenced Files
Unknown Object (File)
Thu, Nov 7, 1:33 PM
Unknown Object (File)
Wed, Nov 6, 2:55 PM
Unknown Object (File)
Fri, Nov 1, 6:59 PM
Unknown Object (File)
Thu, Oct 24, 4:30 PM
Unknown Object (File)
Wed, Oct 16, 5:44 AM
Unknown Object (File)
Oct 11 2024, 5:59 AM
Unknown Object (File)
Oct 5 2024, 7:01 AM
Unknown Object (File)
Sep 27 2024, 10:12 PM

Details

Summary

OVMF always uses 0xC0000000 as base address for 32 bit PCI MMIO space.
For that reason, we should use that address too.

Note: You can have a look at https://github.com/Beckhoff/freebsd-src/commits/phab/corvink/fixed-bar-32

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

corvink updated this revision to Diff 91796.
corvink retitled this revision from bhyve: use fixed 32 bit BAR base address to bhyve: use a fixed 32 bit BAR base address.
corvink edited the summary of this revision. (Show Details)
  • rebase
corvink set the repository for this revision to rG FreeBSD src repository.
corvink added a subscriber: bhyve.

LGMT.
Will commit next monday unless someone have more comments until then.

This revision is now accepted and ready to land.Nov 18 2021, 3:30 PM
markj added inline comments.
usr.sbin/bhyve/pci_emul.c
1160

This limit is fixed in libvmmapi. Wouldn't it be cleaner to assert that it is using the value we want, rather than just assuming?

Add a check for lowmem_limit

This revision now requires review to proceed.Nov 22 2021, 10:13 AM
corvink added inline comments.
usr.sbin/bhyve/pci_emul.c
1160

Decreasing the lowmem_limit shouldn't hurt. However, bhyve should always use 0xC0000000 as membase32 because OVMF uses it too.

This revision is now accepted and ready to land.Nov 22 2021, 2:16 PM
This revision was automatically updated to reflect the committed changes.