ba9b7bf73a
On a nested page table fault the hypervisor will: - fetch the instruction using the guest %rip and %cr3 - decode the instruction in 'struct vie' - emulate the instruction in host kernel context for local apic accesses - any other type of mmio access is punted up to user-space (e.g. ioapic) The decoded instruction is passed as collateral to the user-space process that is handling the PAGING exit. The emulation code is fleshed out to include more addressing modes (e.g. SIB) and more types of operands (e.g. imm8). The source code is unified into a single file (vmm_instruction_emul.c) that is compiled into vmm.ko as well as /usr/sbin/bhyve. Reviewed by: grehan Obtained from: NetApp
28 lines
550 B
Makefile
28 lines
550 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PROG= bhyve
|
|
|
|
DEBUG_FLAGS= -g -O0
|
|
|
|
SRCS= acpi.c atpic.c consport.c dbgport.c elcr.c fbsdrun.c inout.c
|
|
SRCS+= ioapic.c mem.c mevent.c mptbl.c
|
|
SRCS+= pci_emul.c pci_hostbridge.c pci_passthru.c pci_virtio_block.c
|
|
SRCS+= pci_virtio_net.c pci_uart.c pit_8254.c pmtmr.c post.c rtc.c uart.c
|
|
SRCS+= xmsr.c spinup_ap.c
|
|
|
|
.PATH: ${.CURDIR}/../../sys/amd64/vmm
|
|
SRCS+= vmm_instruction_emul.c
|
|
|
|
NO_MAN=
|
|
|
|
DPADD= ${LIBVMMAPI} ${LIBMD} ${LIBPTHREAD}
|
|
LDADD= -lvmmapi -lmd -lpthread
|
|
|
|
WARNS?= 2
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys
|
|
|
|
.include <bsd.prog.mk>
|