Skip to content

Instantly share code, notes, and snippets.

@d-scott-phillips
Created April 3, 2020 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d-scott-phillips/d71d8d0c856301e5738ee73b68e56ad4 to your computer and use it in GitHub Desktop.
Save d-scott-phillips/d71d8d0c856301e5738ee73b68e56ad4 to your computer and use it in GitHub Desktop.
diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c
index 65e543510e14..139d57e5bc0e 100644
--- a/usr.sbin/bhyve/pci_nvme.c
+++ b/usr.sbin/bhyve/pci_nvme.c
@@ -2176,7 +2176,7 @@ pci_nvme_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
DPRINTF(("nvme membar size: %u", pci_membar_sz));
- error = pci_emul_alloc_bar(pi, 0, PCIBAR_MEM64, pci_membar_sz);
+ error = pci_emul_alloc_bar(pi, 0, PCIBAR_MEM32, pci_membar_sz);
if (error) {
WPRINTF(("%s pci alloc mem bar failed", __func__));
goto done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment