git: b831c7732c71 - main - bhyve: increase SNAPSHOT_BUFFER_SIZE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Dec 2023 17:52:38 UTC
The branch main has been updated by rew:
URL: https://cgit.FreeBSD.org/src/commit/?id=b831c7732c718a46642e6237fefcb5b29872e966
commit b831c7732c718a46642e6237fefcb5b29872e966
Author: Vitaliy Gusev <gusev.vitaliy@gmail.com>
AuthorDate: 2023-12-29 17:37:43 +0000
Commit: Robert Wing <rew@FreeBSD.org>
CommitDate: 2023-12-29 17:52:40 +0000
bhyve: increase SNAPSHOT_BUFFER_SIZE
After commit fb51ddb20d57, suspending a vm fails with the error:
vm_snapshot_buf: buffer too small
Sponsored by: vStack
Reviewed by: markj, rew
Fixes: fb51ddb20d57 ("bhyve: increase fbuf display resolution limit")
Differential Revision: https://reviews.freebsd.org/D43218
---
usr.sbin/bhyve/snapshot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/bhyve/snapshot.c b/usr.sbin/bhyve/snapshot.c
index 5569cc065617..9bb7873f1d25 100644
--- a/usr.sbin/bhyve/snapshot.c
+++ b/usr.sbin/bhyve/snapshot.c
@@ -102,7 +102,7 @@ static sig_t old_winch_handler;
#define SNAPSHOT_CHUNK (4 * MB)
#define PROG_BUF_SZ (8192)
-#define SNAPSHOT_BUFFER_SIZE (20 * MB)
+#define SNAPSHOT_BUFFER_SIZE (40 * MB)
#define JSON_KERNEL_ARR_KEY "kern_structs"
#define JSON_DEV_ARR_KEY "devices"