diff options
author | grehan <grehan@FreeBSD.org> | 2014-08-17 01:23:52 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2014-08-17 01:23:52 +0000 |
commit | 46d28d66fb3e9d4bfd5383e9b2ffa437115af6e6 (patch) | |
tree | 3eccc4cc10658396ede1ae036b060d6802d92bbc /lib/libvmmapi/vmmapi.c | |
parent | c00f011a6ecb134c74a4cf17b0cae12586601eb4 (diff) | |
download | FreeBSD-src-46d28d66fb3e9d4bfd5383e9b2ffa437115af6e6.zip FreeBSD-src-46d28d66fb3e9d4bfd5383e9b2ffa437115af6e6.tar.gz |
MFC r267311, r267330, r267811, r267884
Turn on interrupt window exiting unconditionally when an ExtINT is being
injected into the guest.
Add helper functions to populate VM exit information for rendezvous and
astpending exits.
Provide APIs to directly get 'lowmem' and 'highmem' size directly.
Expose the amount of resident and wired memory from the guest's vmspace
Diffstat (limited to 'lib/libvmmapi/vmmapi.c')
-rw-r--r-- | lib/libvmmapi/vmmapi.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 5ce3d8e..9fb2308 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) |