aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-03-24 18:49:06 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-03-24 18:49:06 +0000
commit0f735657aa762e3b226087a9be6edf95868bc62d (patch)
treeb159bcdfb70d549bc9f77ac363eb99c0730a3c9e /lib
parent7d9ef309bd09c061e9cad8ace6f7bb4c60f087e6 (diff)
Diffstat (limited to 'lib')
-rw-r--r--lib/libvmmapi/vmmapi.c4
-rw-r--r--lib/libvmmapi/vmmapi.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c
index 2d0cc21aeb25..3cbc885b82db 100644
--- a/lib/libvmmapi/vmmapi.c
+++ b/lib/libvmmapi/vmmapi.c
@@ -1712,10 +1712,10 @@ vm_restart_instruction(struct vcpu *vcpu)
}
int
-vm_snapshot_req(struct vm_snapshot_meta *meta)
+vm_snapshot_req(struct vmctx *ctx, struct vm_snapshot_meta *meta)
{
- if (ioctl(meta->ctx->fd, VM_SNAPSHOT_REQ, meta) == -1) {
+ if (ioctl(ctx->fd, VM_SNAPSHOT_REQ, meta) == -1) {
#ifdef SNAPSHOT_DEBUG
fprintf(stderr, "%s: snapshot failed for %s: %d\r\n",
__func__, meta->dev_name, errno);
diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h
index 322b47e4ee0e..459aad0fe1a3 100644
--- a/lib/libvmmapi/vmmapi.h
+++ b/lib/libvmmapi/vmmapi.h
@@ -265,7 +265,7 @@ void vm_setup_freebsd_gdt(uint64_t *gdtr);
/*
* Save and restore
*/
-int vm_snapshot_req(struct vm_snapshot_meta *meta);
+int vm_snapshot_req(struct vmctx *ctx, struct vm_snapshot_meta *meta);
int vm_restore_time(struct vmctx *ctx);
/*