vmmapi.h (245678) | vmmapi.h (246686) |
---|---|
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/lib/libvmmapi/vmmapi.h 245678 2013-01-20 03:42:49Z neel $ | 26 * $FreeBSD: head/lib/libvmmapi/vmmapi.h 246686 2013-02-11 20:36:07Z neel $ |
27 */ 28 29#ifndef _VMMAPI_H_ 30#define _VMMAPI_H_ 31 32struct vmctx; 33enum x2apic_state; 34 --- 16 unchanged lines hidden (view full) --- 51 char **mapaddr); 52char * vm_map_memory(struct vmctx *ctx, vm_paddr_t gpa, size_t len); 53int vm_set_desc(struct vmctx *ctx, int vcpu, int reg, 54 uint64_t base, uint32_t limit, uint32_t access); 55int vm_get_desc(struct vmctx *ctx, int vcpu, int reg, 56 uint64_t *base, uint32_t *limit, uint32_t *access); 57int vm_set_register(struct vmctx *ctx, int vcpu, int reg, uint64_t val); 58int vm_get_register(struct vmctx *ctx, int vcpu, int reg, uint64_t *retval); | 27 */ 28 29#ifndef _VMMAPI_H_ 30#define _VMMAPI_H_ 31 32struct vmctx; 33enum x2apic_state; 34 --- 16 unchanged lines hidden (view full) --- 51 char **mapaddr); 52char * vm_map_memory(struct vmctx *ctx, vm_paddr_t gpa, size_t len); 53int vm_set_desc(struct vmctx *ctx, int vcpu, int reg, 54 uint64_t base, uint32_t limit, uint32_t access); 55int vm_get_desc(struct vmctx *ctx, int vcpu, int reg, 56 uint64_t *base, uint32_t *limit, uint32_t *access); 57int vm_set_register(struct vmctx *ctx, int vcpu, int reg, uint64_t val); 58int vm_get_register(struct vmctx *ctx, int vcpu, int reg, uint64_t *retval); |
59int vm_get_pinning(struct vmctx *ctx, int vcpu, int *host_cpuid); 60int vm_set_pinning(struct vmctx *ctx, int vcpu, int host_cpuid); | |
61int vm_run(struct vmctx *ctx, int vcpu, uint64_t rip, 62 struct vm_exit *ret_vmexit); 63int vm_apicid2vcpu(struct vmctx *ctx, int apicid); 64int vm_inject_event(struct vmctx *ctx, int vcpu, enum vm_event_type type, 65 int vector); 66int vm_inject_event2(struct vmctx *ctx, int vcpu, enum vm_event_type type, 67 int vector, int error_code); 68int vm_lapic_irq(struct vmctx *ctx, int vcpu, int vector); --- 37 unchanged lines hidden --- | 59int vm_run(struct vmctx *ctx, int vcpu, uint64_t rip, 60 struct vm_exit *ret_vmexit); 61int vm_apicid2vcpu(struct vmctx *ctx, int apicid); 62int vm_inject_event(struct vmctx *ctx, int vcpu, enum vm_event_type type, 63 int vector); 64int vm_inject_event2(struct vmctx *ctx, int vcpu, enum vm_event_type type, 65 int vector, int error_code); 66int vm_lapic_irq(struct vmctx *ctx, int vcpu, int vector); --- 37 unchanged lines hidden --- |