summaryrefslogtreecommitdiffstats
path: root/lib/libvmmapi
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-10-04 03:07:05 +0000
committerneel <neel@FreeBSD.org>2012-10-04 03:07:05 +0000
commit09939583a708e1199d76573009937c49606d19e5 (patch)
tree8652ba823a090652d210b531554b6bb1e123bfd8 /lib/libvmmapi
parent18dd2c0d511c600e708ac8f756e8e51151b43656 (diff)
downloadFreeBSD-src-09939583a708e1199d76573009937c49606d19e5.zip
FreeBSD-src-09939583a708e1199d76573009937c49606d19e5.tar.gz
The ioctl VM_GET_MEMORY_SEG is no longer able to return the host physical
address associated with the guest memory segment. This is because there is no longer a 1:1 mapping between GPA and HPA. As a result 'vmmctl' can only display the guest physical address and the length of the lowmem and highmem segments.
Diffstat (limited to 'lib/libvmmapi')
-rw-r--r--lib/libvmmapi/vmmapi.c3
-rw-r--r--lib/libvmmapi/vmmapi.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c
index 8364dd5..e083fde 100644
--- a/lib/libvmmapi/vmmapi.c
+++ b/lib/libvmmapi/vmmapi.c
@@ -143,8 +143,7 @@ vmm_get_mem_free(void)
}
int
-vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa,
- vm_paddr_t *ret_hpa, size_t *ret_len)
+vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len)
{
int error;
struct vm_memory_segment seg;
diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h
index b918409..3f434ab 100644
--- a/lib/libvmmapi/vmmapi.h
+++ b/lib/libvmmapi/vmmapi.h
@@ -37,8 +37,7 @@ struct vmctx *vm_open(const char *name);
void vm_destroy(struct vmctx *ctx);
size_t vmm_get_mem_total(void);
size_t vmm_get_mem_free(void);
-int vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa,
- vm_paddr_t *ret_hpa, size_t *ret_len);
+int vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len);
/*
* Create a memory segment of 'len' bytes in the guest physical address space
* at offset 'gpa'.
OpenPOWER on IntegriCloud