Deleted Added
full compact
vmm.h (249396) vmm.h (249879)
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.h 249396 2013-04-12 01:16:52Z neel $
26 * $FreeBSD: head/sys/amd64/include/vmm.h 249879 2013-04-25 04:56:43Z grehan $
27 */
28
29#ifndef _VMM_H_
30#define _VMM_H_
31
32#ifdef _KERNEL
33
34#define VM_MAX_NAMELEN 32

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

130
131enum vcpu_state {
132 VCPU_IDLE,
133 VCPU_RUNNING,
134 VCPU_CANNOT_RUN,
135};
136
137int vcpu_set_state(struct vm *vm, int vcpu, enum vcpu_state state);
27 */
28
29#ifndef _VMM_H_
30#define _VMM_H_
31
32#ifdef _KERNEL
33
34#define VM_MAX_NAMELEN 32

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

130
131enum vcpu_state {
132 VCPU_IDLE,
133 VCPU_RUNNING,
134 VCPU_CANNOT_RUN,
135};
136
137int vcpu_set_state(struct vm *vm, int vcpu, enum vcpu_state state);
138enum vcpu_state vcpu_get_state(struct vm *vm, int vcpu);
138enum vcpu_state vcpu_get_state(struct vm *vm, int vcpu, int *hostcpu);
139
140static int __inline
139
140static int __inline
141vcpu_is_running(struct vm *vm, int vcpu)
141vcpu_is_running(struct vm *vm, int vcpu, int *hostcpu)
142{
142{
143 return (vcpu_get_state(vm, vcpu) == VCPU_RUNNING);
143 return (vcpu_get_state(vm, vcpu, hostcpu) == VCPU_RUNNING);
144}
145
146void *vcpu_stats(struct vm *vm, int vcpu);
147void vm_interrupt_hostcpu(struct vm *vm, int vcpu);
148
149#endif /* KERNEL */
150
151#include <machine/vmm_instruction_emul.h>

--- 140 unchanged lines hidden ---
144}
145
146void *vcpu_stats(struct vm *vm, int vcpu);
147void vm_interrupt_hostcpu(struct vm *vm, int vcpu);
148
149#endif /* KERNEL */
150
151#include <machine/vmm_instruction_emul.h>

--- 140 unchanged lines hidden ---