Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/vmm_dev.c
| Show First 20 Lines • Show All 427 Lines • ▼ Show 20 Lines | #endif | ||||
| int *regnums; | int *regnums; | ||||
| enum { NONE, SINGLE, ALL } vcpus_locked; | enum { NONE, SINGLE, ALL } vcpus_locked; | ||||
| bool memsegs_locked; | bool memsegs_locked; | ||||
| #ifdef BHYVE_SNAPSHOT | #ifdef BHYVE_SNAPSHOT | ||||
| struct vm_snapshot_meta *snapshot_meta; | struct vm_snapshot_meta *snapshot_meta; | ||||
| #ifdef COMPAT_FREEBSD13 | #ifdef COMPAT_FREEBSD13 | ||||
| struct vm_snapshot_meta_old *snapshot_old; | struct vm_snapshot_meta_old *snapshot_old; | ||||
| #endif | #endif | ||||
| struct vm_get_dirty_page_list *page_list; | |||||
| #endif | #endif | ||||
| error = vmm_priv_check(curthread->td_ucred); | error = vmm_priv_check(curthread->td_ucred); | ||||
| if (error) | if (error) | ||||
| return (error); | return (error); | ||||
| sc = vmmdev_lookup2(cdev); | sc = vmmdev_lookup2(cdev); | ||||
| if (sc == NULL) | if (sc == NULL) | ||||
| ▲ Show 20 Lines • Show All 536 Lines • ▼ Show 20 Lines | case VM_SNAPSHOT_REQ_OLD: | ||||
| snapshot_old = (struct vm_snapshot_meta_old *)data; | snapshot_old = (struct vm_snapshot_meta_old *)data; | ||||
| snapshot_meta = | snapshot_meta = | ||||
| (struct vm_snapshot_meta *)&snapshot_old->dev_data; | (struct vm_snapshot_meta *)&snapshot_old->dev_data; | ||||
| error = vm_snapshot_req(sc->vm, snapshot_meta); | error = vm_snapshot_req(sc->vm, snapshot_meta); | ||||
| break; | break; | ||||
| #endif | #endif | ||||
| case VM_RESTORE_TIME: | case VM_RESTORE_TIME: | ||||
| error = vm_restore_time(sc->vm); | error = vm_restore_time(sc->vm); | ||||
| break; | |||||
| case VM_GET_DIRTY_PAGE_LIST: | |||||
| page_list = (struct vm_get_dirty_page_list *)data; | |||||
| error = vm_get_dirty_page_list(sc->vm, page_list); | |||||
| break; | break; | ||||
| #endif | #endif | ||||
| default: | default: | ||||
| error = ENOTTY; | error = ENOTTY; | ||||
| break; | break; | ||||
| } | } | ||||
| if (vcpus_locked == SINGLE) | if (vcpus_locked == SINGLE) | ||||
| ▲ Show 20 Lines • Show All 368 Lines • Show Last 20 Lines | |||||