Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174327438
D60239.id188382.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
671 B
Referenced Files
None
Subscribers
None
D60239.id188382.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D60239: bhyve: save the state of a PCI device's INTx in a snapshot
Attached
Detach File
Event Timeline
Log In to Comment