Deleted Added
full compact
vmm.h (241982) vmm.h (243640)
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

--- 136 unchanged lines hidden (view full) ---

145 return (vcpu_get_state(vm, vcpu) == VCPU_RUNNING);
146}
147
148void *vcpu_stats(struct vm *vm, int vcpu);
149void vm_interrupt_hostcpu(struct vm *vm, int vcpu);
150
151#endif /* KERNEL */
152
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

--- 136 unchanged lines hidden (view full) ---

145 return (vcpu_get_state(vm, vcpu) == VCPU_RUNNING);
146}
147
148void *vcpu_stats(struct vm *vm, int vcpu);
149void vm_interrupt_hostcpu(struct vm *vm, int vcpu);
150
151#endif /* KERNEL */
152
153#include <machine/vmm_instruction_emul.h>
154
153#define VM_MAXCPU 8 /* maximum virtual cpus */
154
155/*
156 * Identifiers for events that can be injected into the VM
157 */
158enum vm_event_type {
159 VM_EVENT_NONE,
160 VM_HW_INTR,

--- 102 unchanged lines hidden (view full) ---

263 uint16_t rep:1;
264 uint16_t port;
265 uint32_t eax; /* valid for out */
266 } inout;
267 struct {
268 uint64_t cr3;
269 uint64_t gpa;
270 int rwx;
155#define VM_MAXCPU 8 /* maximum virtual cpus */
156
157/*
158 * Identifiers for events that can be injected into the VM
159 */
160enum vm_event_type {
161 VM_EVENT_NONE,
162 VM_HW_INTR,

--- 102 unchanged lines hidden (view full) ---

265 uint16_t rep:1;
266 uint16_t port;
267 uint32_t eax; /* valid for out */
268 } inout;
269 struct {
270 uint64_t cr3;
271 uint64_t gpa;
272 int rwx;
273 struct vie vie;
271 } paging;
272 /*
273 * VMX specific payload. Used when there is no "better"
274 * exitcode to represent the VM-exit.
275 */
276 struct {
277 int error; /* vmx inst error */
278 uint32_t exit_reason;

--- 14 unchanged lines hidden ---
274 } paging;
275 /*
276 * VMX specific payload. Used when there is no "better"
277 * exitcode to represent the VM-exit.
278 */
279 struct {
280 int error; /* vmx inst error */
281 uint32_t exit_reason;

--- 14 unchanged lines hidden ---