Deleted Added
full compact
vmmapi.h (267216) vmmapi.h (267811)
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 267216 2014-06-07 21:36:52Z neel $
26 * $FreeBSD: head/lib/libvmmapi/vmmapi.h 267811 2014-06-24 02:02:51Z neel $
27 */
28
29#ifndef _VMMAPI_H_
30#define _VMMAPI_H_
31
32#include <sys/param.h>
33#include <sys/cpuset.h>
34

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

55int vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len,
56 int *wired);
57int vm_setup_memory(struct vmctx *ctx, size_t len, enum vm_mmap_style s);
58void *vm_map_gpa(struct vmctx *ctx, vm_paddr_t gaddr, size_t len);
59int vm_get_gpa_pmap(struct vmctx *, uint64_t gpa, uint64_t *pte, int *num);
60uint32_t vm_get_lowmem_limit(struct vmctx *ctx);
61void vm_set_lowmem_limit(struct vmctx *ctx, uint32_t limit);
62void vm_set_memflags(struct vmctx *ctx, int flags);
27 */
28
29#ifndef _VMMAPI_H_
30#define _VMMAPI_H_
31
32#include <sys/param.h>
33#include <sys/cpuset.h>
34

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

55int vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len,
56 int *wired);
57int vm_setup_memory(struct vmctx *ctx, size_t len, enum vm_mmap_style s);
58void *vm_map_gpa(struct vmctx *ctx, vm_paddr_t gaddr, size_t len);
59int vm_get_gpa_pmap(struct vmctx *, uint64_t gpa, uint64_t *pte, int *num);
60uint32_t vm_get_lowmem_limit(struct vmctx *ctx);
61void vm_set_lowmem_limit(struct vmctx *ctx, uint32_t limit);
62void vm_set_memflags(struct vmctx *ctx, int flags);
63size_t vm_get_lowmem_size(struct vmctx *ctx);
64size_t vm_get_highmem_size(struct vmctx *ctx);
63int vm_set_desc(struct vmctx *ctx, int vcpu, int reg,
64 uint64_t base, uint32_t limit, uint32_t access);
65int vm_get_desc(struct vmctx *ctx, int vcpu, int reg,
66 uint64_t *base, uint32_t *limit, uint32_t *access);
67int vm_set_register(struct vmctx *ctx, int vcpu, int reg, uint64_t val);
68int vm_get_register(struct vmctx *ctx, int vcpu, int reg, uint64_t *retval);
69int vm_run(struct vmctx *ctx, int vcpu, uint64_t rip,
70 struct vm_exit *ret_vmexit);

--- 76 unchanged lines hidden ---
65int vm_set_desc(struct vmctx *ctx, int vcpu, int reg,
66 uint64_t base, uint32_t limit, uint32_t access);
67int vm_get_desc(struct vmctx *ctx, int vcpu, int reg,
68 uint64_t *base, uint32_t *limit, uint32_t *access);
69int vm_set_register(struct vmctx *ctx, int vcpu, int reg, uint64_t val);
70int vm_get_register(struct vmctx *ctx, int vcpu, int reg, uint64_t *retval);
71int vm_run(struct vmctx *ctx, int vcpu, uint64_t rip,
72 struct vm_exit *ret_vmexit);

--- 76 unchanged lines hidden ---