Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177065228
D61003.1793781395.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
643 B
Referenced Files
None
Subscribers
None
D61003.1793781395.diff
View Options
diff --git a/usr.sbin/bhyve/snapshot.c b/usr.sbin/bhyve/snapshot.c
--- a/usr.sbin/bhyve/snapshot.c
+++ b/usr.sbin/bhyve/snapshot.c
@@ -1224,6 +1224,17 @@
char *meta_filename = NULL;
char *kdata_filename = NULL;
FILE *meta_file = NULL;
+ struct pci_devinst *pdi;
+
+ /* Reject unsupported devices before creating files or touching RAM. */
+ pdi = NULL;
+ while ((pdi = pci_next(pdi)) != NULL) {
+ if (pdi->pi_d->pe_snapshot == NULL) {
+ EPRINTLN("%s does not support checkpointing",
+ pdi->pi_name);
+ return (ENOTSUP);
+ }
+ }
kdata_filename = strcat_extension(checkpoint_file, ".kern");
if (kdata_filename == NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 4, 8:36 AM (3 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41250417
Default Alt Text
D61003.1793781395.diff (643 B)
Attached To
Mode
D61003: bhyve: Reject unsupported checkpoints before saving RAM
Attached
Detach File
Event Timeline