Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/include/vmm.h
Show First 20 Lines • Show All 735 Lines • ▼ Show 20 Lines | union { | ||||
} ioapic_eoi; | } ioapic_eoi; | ||||
struct { | struct { | ||||
enum vm_suspend_how how; | enum vm_suspend_how how; | ||||
} suspended; | } suspended; | ||||
struct vm_task_switch task_switch; | struct vm_task_switch task_switch; | ||||
} u; | } u; | ||||
}; | }; | ||||
enum vm_acpi_device_info_type { | |||||
VM_ACPI_DEVICE_INFO_CRS, | |||||
}; | |||||
/* APIs to inject faults into the guest */ | /* APIs to inject faults into the guest */ | ||||
void vm_inject_fault(void *vm, int vcpuid, int vector, int errcode_valid, | void vm_inject_fault(void *vm, int vcpuid, int vector, int errcode_valid, | ||||
int errcode); | int errcode); | ||||
static __inline void | static __inline void | ||||
vm_inject_ud(void *vm, int vcpuid) | vm_inject_ud(void *vm, int vcpuid) | ||||
{ | { | ||||
vm_inject_fault(vm, vcpuid, IDT_UD, 0, 0); | vm_inject_fault(vm, vcpuid, IDT_UD, 0, 0); | ||||
Show All 25 Lines |