vmm_dev.h (268889) | vmm_dev.h (276428) |
---|---|
1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/amd64/include/vmm_dev.h 268889 2014-07-19 20:59:08Z neel $ | 26 * $FreeBSD: head/sys/amd64/include/vmm_dev.h 276428 2014-12-30 22:19:34Z neel $ |
27 */ 28 29#ifndef _VMM_DEV_H_ 30#define _VMM_DEV_H_ 31 32#ifdef _KERNEL 33void vmmdev_init(void); 34int vmmdev_cleanup(void); --- 155 unchanged lines hidden (view full) --- 190#define VM_SUSPENDED_CPUS 1 191 192struct vm_intinfo { 193 int vcpuid; 194 uint64_t info1; 195 uint64_t info2; 196}; 197 | 27 */ 28 29#ifndef _VMM_DEV_H_ 30#define _VMM_DEV_H_ 31 32#ifdef _KERNEL 33void vmmdev_init(void); 34int vmmdev_cleanup(void); --- 155 unchanged lines hidden (view full) --- 190#define VM_SUSPENDED_CPUS 1 191 192struct vm_intinfo { 193 int vcpuid; 194 uint64_t info1; 195 uint64_t info2; 196}; 197 |
198struct vm_rtc_time { 199 time_t secs; 200}; 201 202struct vm_rtc_data { 203 int offset; 204 uint8_t value; 205}; 206 |
|
198enum { 199 /* general routines */ 200 IOCNUM_ABIVERS = 0, 201 IOCNUM_RUN = 1, 202 IOCNUM_SET_CAPABILITY = 2, 203 IOCNUM_GET_CAPABILITY = 3, 204 IOCNUM_SUSPEND = 4, 205 IOCNUM_REINIT = 5, --- 43 unchanged lines hidden (view full) --- 249 IOCNUM_ISA_ASSERT_IRQ = 80, 250 IOCNUM_ISA_DEASSERT_IRQ = 81, 251 IOCNUM_ISA_PULSE_IRQ = 82, 252 IOCNUM_ISA_SET_IRQ_TRIGGER = 83, 253 254 /* vm_cpuset */ 255 IOCNUM_ACTIVATE_CPU = 90, 256 IOCNUM_GET_CPUSET = 91, | 207enum { 208 /* general routines */ 209 IOCNUM_ABIVERS = 0, 210 IOCNUM_RUN = 1, 211 IOCNUM_SET_CAPABILITY = 2, 212 IOCNUM_GET_CAPABILITY = 3, 213 IOCNUM_SUSPEND = 4, 214 IOCNUM_REINIT = 5, --- 43 unchanged lines hidden (view full) --- 258 IOCNUM_ISA_ASSERT_IRQ = 80, 259 IOCNUM_ISA_DEASSERT_IRQ = 81, 260 IOCNUM_ISA_PULSE_IRQ = 82, 261 IOCNUM_ISA_SET_IRQ_TRIGGER = 83, 262 263 /* vm_cpuset */ 264 IOCNUM_ACTIVATE_CPU = 90, 265 IOCNUM_GET_CPUSET = 91, |
266 267 /* RTC */ 268 IOCNUM_RTC_READ = 100, 269 IOCNUM_RTC_WRITE = 101, 270 IOCNUM_RTC_SETTIME = 102, 271 IOCNUM_RTC_GETTIME = 103, |
|
257}; 258 259#define VM_RUN \ 260 _IOWR('v', IOCNUM_RUN, struct vm_run) 261#define VM_SUSPEND \ 262 _IOW('v', IOCNUM_SUSPEND, struct vm_suspend) 263#define VM_REINIT \ 264 _IO('v', IOCNUM_REINIT) --- 66 unchanged lines hidden (view full) --- 331#define VM_ACTIVATE_CPU \ 332 _IOW('v', IOCNUM_ACTIVATE_CPU, struct vm_activate_cpu) 333#define VM_GET_CPUS \ 334 _IOW('v', IOCNUM_GET_CPUSET, struct vm_cpuset) 335#define VM_SET_INTINFO \ 336 _IOW('v', IOCNUM_SET_INTINFO, struct vm_intinfo) 337#define VM_GET_INTINFO \ 338 _IOWR('v', IOCNUM_GET_INTINFO, struct vm_intinfo) | 272}; 273 274#define VM_RUN \ 275 _IOWR('v', IOCNUM_RUN, struct vm_run) 276#define VM_SUSPEND \ 277 _IOW('v', IOCNUM_SUSPEND, struct vm_suspend) 278#define VM_REINIT \ 279 _IO('v', IOCNUM_REINIT) --- 66 unchanged lines hidden (view full) --- 346#define VM_ACTIVATE_CPU \ 347 _IOW('v', IOCNUM_ACTIVATE_CPU, struct vm_activate_cpu) 348#define VM_GET_CPUS \ 349 _IOW('v', IOCNUM_GET_CPUSET, struct vm_cpuset) 350#define VM_SET_INTINFO \ 351 _IOW('v', IOCNUM_SET_INTINFO, struct vm_intinfo) 352#define VM_GET_INTINFO \ 353 _IOWR('v', IOCNUM_GET_INTINFO, struct vm_intinfo) |
354#define VM_RTC_WRITE \ 355 _IOW('v', IOCNUM_RTC_WRITE, struct vm_rtc_data) 356#define VM_RTC_READ \ 357 _IOWR('v', IOCNUM_RTC_READ, struct vm_rtc_data) 358#define VM_RTC_SETTIME \ 359 _IOW('v', IOCNUM_RTC_SETTIME, struct vm_rtc_time) 360#define VM_RTC_GETTIME \ 361 _IOR('v', IOCNUM_RTC_GETTIME, struct vm_rtc_time) |
|
339#endif | 362#endif |