From 8d05d984e8a9a632b3de9eed9ad8c765b40f88d9 Mon Sep 17 00:00:00 2001 From: neel Date: Mon, 18 Mar 2013 22:38:30 +0000 Subject: Simplify the assignment of memory to virtual machines by requiring a single command line option "-m " to specify the memory size. Prior to this change the user needed to explicitly specify the amount of memory allocated below 4G (-m ) and the amount above 4G (-M ). The "-M" option is no longer supported by 'bhyveload' and 'bhyve'. The start of the PCI hole is fixed at 3GB and cannot be directly changed using command line options. However it is still possible to change this in special circumstances via the 'vm_set_lowmem_limit()' API provided by libvmmapi. Submitted by: Dinakar Medavaram (initial version) Reviewed by: grehan Obtained from: NetApp --- usr.sbin/bhyve/mptbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bhyve/mptbl.c') diff --git a/usr.sbin/bhyve/mptbl.c b/usr.sbin/bhyve/mptbl.c index 9c68b3d..ece71cd 100644 --- a/usr.sbin/bhyve/mptbl.c +++ b/usr.sbin/bhyve/mptbl.c @@ -349,7 +349,7 @@ mptable_build(struct vmctx *ctx, int ncpu, int ioapic) char *curraddr; char *startaddr; - startaddr = paddr_guest2host(MPTABLE_BASE, MPTABLE_MAX_LENGTH); + startaddr = paddr_guest2host(ctx, MPTABLE_BASE, MPTABLE_MAX_LENGTH); if (startaddr == NULL) { printf("mptable requires mapped mem\n"); return (ENOMEM); -- cgit v1.1