summaryrefslogtreecommitdiffstats
path: root/lib/libvmmapi/vmmapi.c
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2012-10-26 13:40:12 +0000
committergrehan <grehan@FreeBSD.org>2012-10-26 13:40:12 +0000
commit1372a368e0c75317b5fcf37426faaabc995735c9 (patch)
tree30ac51b1ff13c133148c0f32361982bc2c0ec0a2 /lib/libvmmapi/vmmapi.c
parentcbd59fc940c5caaf0cde3410c8772176220fd1a1 (diff)
downloadFreeBSD-src-1372a368e0c75317b5fcf37426faaabc995735c9.zip
FreeBSD-src-1372a368e0c75317b5fcf37426faaabc995735c9.tar.gz
Remove mptable generation code from libvmmapi and move it to bhyve.
Firmware tables require too much knowledge of system configuration, and it's difficult to pass that information in general terms to a library. The upcoming ACPI work exposed this - it will also livein bhyve. Also, remove code specific to NetApp from the mptable name, and remove the -n option from bhyve. Reviewed by: neel Obtained from: NetApp
Diffstat (limited to 'lib/libvmmapi/vmmapi.c')
-rw-r--r--lib/libvmmapi/vmmapi.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c
index fdbbbcb..cfb42d0 100644
--- a/lib/libvmmapi/vmmapi.c
+++ b/lib/libvmmapi/vmmapi.c
@@ -47,10 +47,6 @@ __FBSDID("$FreeBSD$");
#include <machine/vmm_dev.h>
#include "vmmapi.h"
-#include "mptable.h"
-
-#define BIOS_ROM_BASE (0xf0000)
-#define BIOS_ROM_SIZE (0x10000)
struct vmctx {
int fd;
@@ -329,15 +325,6 @@ vm_inject_event2(struct vmctx *ctx, int vcpu, enum vm_event_type type,
}
int
-vm_build_tables(struct vmctx *ctxt, int ncpu, int ioapic,
- void *oemtbl, int oemtblsz)
-{
-
- return (vm_build_mptable(ctxt, BIOS_ROM_BASE, BIOS_ROM_SIZE, ncpu,
- ioapic, oemtbl, oemtblsz));
-}
-
-int
vm_apicid2vcpu(struct vmctx *ctx, int apicid)
{
/*
OpenPOWER on IntegriCloud