summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Grehan <grehan@FreeBSD.org>2014-08-17 01:23:52 +0000
committerPeter Grehan <grehan@FreeBSD.org>2014-08-17 01:23:52 +0000
commit57793728b4ea86063a2b4bca1044bb8914e1a7f4 (patch)
tree3eccc4cc10658396ede1ae036b060d6802d92bbc /lib
parentaa569d2e627454bb8f80c039f769f63b0d55b556 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libvmmapi/vmmapi.c14
-rw-r--r--lib/libvmmapi/vmmapi.h2
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c
index 5ce3d8e7ae82..9fb2308731e7 100644
--- a/lib/libvmmapi/vmmapi.c
+++ b/lib/libvmmapi/vmmapi.c
@@ -274,6 +274,20 @@ vm_map_gpa(struct vmctx *ctx, vm_paddr_t gaddr, size_t len)
return (NULL);
}
+size_t
+vm_get_lowmem_size(struct vmctx *ctx)
+{
+
+ return (ctx->lowmem);
+}
+
+size_t
+vm_get_highmem_size(struct vmctx *ctx)
+{
+
+ return (ctx->highmem);
+}
+
int
vm_set_desc(struct vmctx *ctx, int vcpu, int reg,
uint64_t base, uint32_t limit, uint32_t access)
diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h
index 4cc429065e46..067eaa0aa26c 100644
--- a/lib/libvmmapi/vmmapi.h
+++ b/lib/libvmmapi/vmmapi.h
@@ -60,6 +60,8 @@ int vm_get_gpa_pmap(struct vmctx *, uint64_t gpa, uint64_t *pte, int *num);
uint32_t vm_get_lowmem_limit(struct vmctx *ctx);
void vm_set_lowmem_limit(struct vmctx *ctx, uint32_t limit);
void vm_set_memflags(struct vmctx *ctx, int flags);
+size_t vm_get_lowmem_size(struct vmctx *ctx);
+size_t vm_get_highmem_size(struct vmctx *ctx);
int vm_set_desc(struct vmctx *ctx, int vcpu, int reg,
uint64_t base, uint32_t limit, uint32_t access);
int vm_get_desc(struct vmctx *ctx, int vcpu, int reg,