Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/include/vmm_dev.h
Show All 25 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _VMM_DEV_H_ | #ifndef _VMM_DEV_H_ | ||||
#define _VMM_DEV_H_ | #define _VMM_DEV_H_ | ||||
struct vm_snapshot_meta; | |||||
jhb: These are a lot of nested includes for this header. Certainly <sys/param.h> shouldn't be a… | |||||
Done Inline ActionsRemoved all includes from this header. Replaced 'struct vm_snapshot_req' with 'struct vm_snapshot_meta' since the former had only one member of the latter type. darius.mihaim_gmail.com: Removed all includes from this header. Replaced 'struct vm_snapshot_req' with 'struct… | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
void vmmdev_init(void); | void vmmdev_init(void); | ||||
int vmmdev_cleanup(void); | int vmmdev_cleanup(void); | ||||
#endif | #endif | ||||
struct vm_memmap { | struct vm_memmap { | ||||
vm_paddr_t gpa; | vm_paddr_t gpa; | ||||
int segid; /* memory segment */ | int segid; /* memory segment */ | ||||
▲ Show 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | enum { | ||||
IOCNUM_SUSPEND_CPU = 92, | IOCNUM_SUSPEND_CPU = 92, | ||||
IOCNUM_RESUME_CPU = 93, | IOCNUM_RESUME_CPU = 93, | ||||
/* RTC */ | /* RTC */ | ||||
IOCNUM_RTC_READ = 100, | IOCNUM_RTC_READ = 100, | ||||
IOCNUM_RTC_WRITE = 101, | IOCNUM_RTC_WRITE = 101, | ||||
IOCNUM_RTC_SETTIME = 102, | IOCNUM_RTC_SETTIME = 102, | ||||
IOCNUM_RTC_GETTIME = 103, | IOCNUM_RTC_GETTIME = 103, | ||||
/* checkpoint */ | |||||
IOCNUM_SNAPSHOT_REQ = 113, | |||||
IOCNUM_RESTORE_TIME = 115 | |||||
}; | }; | ||||
#define VM_RUN \ | #define VM_RUN \ | ||||
_IOWR('v', IOCNUM_RUN, struct vm_run) | _IOWR('v', IOCNUM_RUN, struct vm_run) | ||||
#define VM_SUSPEND \ | #define VM_SUSPEND \ | ||||
_IOW('v', IOCNUM_SUSPEND, struct vm_suspend) | _IOW('v', IOCNUM_SUSPEND, struct vm_suspend) | ||||
#define VM_REINIT \ | #define VM_REINIT \ | ||||
_IO('v', IOCNUM_REINIT) | _IO('v', IOCNUM_REINIT) | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
#define VM_RTC_READ \ | #define VM_RTC_READ \ | ||||
_IOWR('v', IOCNUM_RTC_READ, struct vm_rtc_data) | _IOWR('v', IOCNUM_RTC_READ, struct vm_rtc_data) | ||||
#define VM_RTC_SETTIME \ | #define VM_RTC_SETTIME \ | ||||
_IOW('v', IOCNUM_RTC_SETTIME, struct vm_rtc_time) | _IOW('v', IOCNUM_RTC_SETTIME, struct vm_rtc_time) | ||||
#define VM_RTC_GETTIME \ | #define VM_RTC_GETTIME \ | ||||
_IOR('v', IOCNUM_RTC_GETTIME, struct vm_rtc_time) | _IOR('v', IOCNUM_RTC_GETTIME, struct vm_rtc_time) | ||||
#define VM_RESTART_INSTRUCTION \ | #define VM_RESTART_INSTRUCTION \ | ||||
_IOW('v', IOCNUM_RESTART_INSTRUCTION, int) | _IOW('v', IOCNUM_RESTART_INSTRUCTION, int) | ||||
#define VM_SNAPSHOT_REQ \ | |||||
_IOWR('v', IOCNUM_SNAPSHOT_REQ, struct vm_snapshot_meta) | |||||
#define VM_RESTORE_TIME \ | |||||
_IOWR('v', IOCNUM_RESTORE_TIME, int) | |||||
#endif | #endif |
These are a lot of nested includes for this header. Certainly <sys/param.h> shouldn't be a nested include. I wonder if we can get rid of all of these nested includes? It's fine to make certain things in the header conditional as the existing headers do with _SYS_CPUSET_H_ if you need to.