vmm.h (268976) | vmm.h (270070) |
---|---|
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: stable/10/sys/amd64/include/vmm.h 268976 2014-07-22 04:39:16Z jhb $ | 26 * $FreeBSD: stable/10/sys/amd64/include/vmm.h 270070 2014-08-17 00:52:07Z grehan $ |
27 */ 28 29#ifndef _VMM_H_ 30#define _VMM_H_ 31 32enum vm_suspend_how { 33 VM_SUSPEND_NONE, 34 VM_SUSPEND_RESET, --- 100 unchanged lines hidden (view full) --- 135struct vlapic *vm_lapic(struct vm *vm, int cpu); 136struct vioapic *vm_ioapic(struct vm *vm); 137struct vhpet *vm_hpet(struct vm *vm); 138int vm_get_capability(struct vm *vm, int vcpu, int type, int *val); 139int vm_set_capability(struct vm *vm, int vcpu, int type, int val); 140int vm_get_x2apic_state(struct vm *vm, int vcpu, enum x2apic_state *state); 141int vm_set_x2apic_state(struct vm *vm, int vcpu, enum x2apic_state state); 142int vm_apicid2vcpuid(struct vm *vm, int apicid); | 27 */ 28 29#ifndef _VMM_H_ 30#define _VMM_H_ 31 32enum vm_suspend_how { 33 VM_SUSPEND_NONE, 34 VM_SUSPEND_RESET, --- 100 unchanged lines hidden (view full) --- 135struct vlapic *vm_lapic(struct vm *vm, int cpu); 136struct vioapic *vm_ioapic(struct vm *vm); 137struct vhpet *vm_hpet(struct vm *vm); 138int vm_get_capability(struct vm *vm, int vcpu, int type, int *val); 139int vm_set_capability(struct vm *vm, int vcpu, int type, int val); 140int vm_get_x2apic_state(struct vm *vm, int vcpu, enum x2apic_state *state); 141int vm_set_x2apic_state(struct vm *vm, int vcpu, enum x2apic_state state); 142int vm_apicid2vcpuid(struct vm *vm, int apicid); |
143void vm_activate_cpu(struct vm *vm, int vcpu); | 143int vm_activate_cpu(struct vm *vm, int vcpu); |
144cpuset_t vm_active_cpus(struct vm *vm); | 144cpuset_t vm_active_cpus(struct vm *vm); |
145cpuset_t vm_suspended_cpus(struct vm *vm); |
|
145struct vm_exit *vm_exitinfo(struct vm *vm, int vcpuid); 146void vm_exit_suspended(struct vm *vm, int vcpuid, uint64_t rip); 147 148/* 149 * Rendezvous all vcpus specified in 'dest' and execute 'func(arg)'. 150 * The rendezvous 'func(arg)' is not allowed to do anything that will 151 * cause the thread to be put to sleep. 152 * --- 340 unchanged lines hidden --- | 146struct vm_exit *vm_exitinfo(struct vm *vm, int vcpuid); 147void vm_exit_suspended(struct vm *vm, int vcpuid, uint64_t rip); 148 149/* 150 * Rendezvous all vcpus specified in 'dest' and execute 'func(arg)'. 151 * The rendezvous 'func(arg)' is not allowed to do anything that will 152 * cause the thread to be put to sleep. 153 * --- 340 unchanged lines hidden --- |