Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2021 00:55:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 256422] bhyve and Centos/Rocky 8.4 no boot after install
Message-ID:  <bug-256422-27103-RgG7TQShRy@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-256422-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-256422-27103@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256422

--- Comment #10 from Chuck Tuffli <chuck@FreeBSD.org> ---
I think nvme_write_read_blockif() has a bug:

 }

 static void
@@ -1978,7 +1984,7 @@ nvme_write_read_blockif(struct pci_nvme_softc *sc,
                /* PRP2 is pointer to a physical region page list */
                while (bytes) {
                        /* Last entry in list points to the next list */
-                       if (prp_list == last) {
+                       if ((prp_list == last) && (bytes > PAGE_SIZE)) {
                                uint64_t prp = *prp_list;

                                prp_list = paddr_guest2host(vmctx, prp,

Note that I cleaned up some additional things and your line numbers won't quite
match up. But I believe this is the crux of the fix necessary.

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256422-27103-RgG7TQShRy>