Page MenuHomeFreeBSD

D60239.id188382.diff
No OneTemporary

D60239.id188382.diff

diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c
--- a/usr.sbin/bhyve/pci_emul.c
+++ b/usr.sbin/bhyve/pci_emul.c
@@ -2565,6 +2565,13 @@
SNAPSHOT_BUF_OR_LEAVE(pi->pi_cfgdata, sizeof(pi->pi_cfgdata),
meta, ret, done);
+ /*
+ * The kernel restores the assert count of the interrupt pin. Without
+ * the state here, a device that was asserting INTx could not deassert
+ * it after a restore.
+ */
+ SNAPSHOT_VAR_OR_LEAVE(pi->pi_lintr.state, meta, ret, done);
+
for (i = 0; i < (int)nitems(pi->pi_bar); i++) {
SNAPSHOT_VAR_OR_LEAVE(pi->pi_bar[i].type, meta, ret, done);
SNAPSHOT_VAR_OR_LEAVE(pi->pi_bar[i].size, meta, ret, done);

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 3, 10:35 AM (16 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40123734
Default Alt Text
D60239.id188382.diff (671 B)

Event Timeline