git: 16d0360d3399 - stable/13 - vmm: VM_GET/SET_KERNEMU_DEV should run with the vCPU locked.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Jan 2023 22:12:20 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=16d0360d3399a148841bc095893a08da653f257d
commit 16d0360d3399a148841bc095893a08da653f257d
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-09 18:25:30 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 22:07:18 +0000
vmm: VM_GET/SET_KERNEMU_DEV should run with the vCPU locked.
Reviewed by: corvink, kib, markj
Differential Revision: https://reviews.freebsd.org/D37638
(cherry picked from commit 62be9ffd82fb1a03db5e04d32ab75550f1f4f2c7)
---
sys/amd64/vmm/vmm_dev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/amd64/vmm/vmm_dev.c b/sys/amd64/vmm/vmm_dev.c
index 20aee0ea5776..9afcd1796173 100644
--- a/sys/amd64/vmm/vmm_dev.c
+++ b/sys/amd64/vmm/vmm_dev.c
@@ -460,6 +460,8 @@ vmmdev_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag,
case VM_SET_INTINFO:
case VM_GET_INTINFO:
case VM_RESTART_INSTRUCTION:
+ case VM_GET_KERNEMU_DEV:
+ case VM_SET_KERNEMU_DEV:
/*
* ioctls that can operate only on vcpus that are not running.
*/