aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-11-12 00:51:53 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-11-12 00:51:53 +0000
commit670b364b76dff15ca08fcee27563a168aeaed350 (patch)
tree320e6bc626f7a68651a62be4fc01044e2c199720 /usr.sbin/bhyve
parent9922872ba29b1d985eefb5dd3d3cfa9e42d94656 (diff)
downloadsrc-670b364b76dff15ca08fcee27563a168aeaed350.tar.gz
src-670b364b76dff15ca08fcee27563a168aeaed350.zip
bhyve: increase allowed size for 64bit BAR allocation below 4G from 32 to 128 MB.
Reviewed by: grehan Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D27095
Notes
Notes: svn path=/head/; revision=367607
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r--usr.sbin/bhyve/pci_emul.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c
index 4d437523896a..c6c93b97d5e0 100644
--- a/usr.sbin/bhyve/pci_emul.c
+++ b/usr.sbin/bhyve/pci_emul.c
@@ -625,9 +625,9 @@ pci_emul_alloc_pbar(struct pci_devinst *pdi, int idx, uint64_t hostbase,
* Some drivers do not work well if the 64-bit BAR is allocated
* above 4GB. Allow for this by allocating small requests under
* 4GB unless then allocation size is larger than some arbitrary
- * number (32MB currently).
+ * number (128MB currently).
*/
- if (size > 32 * 1024 * 1024) {
+ if (size > 128 * 1024 * 1024) {
/*
* XXX special case for device requiring peer-peer DMA
*/