Patch: Build acceleration module within linux kernel source (builtin or as module)
Hi,
attached is a patch for the linux 2.6.16 kernel that lets you build the qemu accelerator from within the kernel source (builtin or as a module). Due to the restricting license the binary module is not included of course.
I only tested it on x86, but it should also work on x86_64 (though I didn't test it, since I don't have a x86_64 box to play with).
Please cc me in any replies - I'm not subscribed to the list.
Regards,
Robert
drivers/char/Kconfig +2 -1
@@ -1020,5 +1020,6 @@ sysfs directory, /sys/devices/platform/telco_clock, with a number of files for controlling the behavior of this hardware. -endmenu +source "drivers/char/qemu/Kconfig" +endmenu
drivers/char/Makefile +1 -0
@@ -85,6 +85,7 @@ obj-$(CONFIG_GPIO_VR41XX) += vr41xx_giu.o obj-$(CONFIG_TANBAC_TB0219) += tb0219.o obj-$(CONFIG_TELCLOCK) += tlclk.o +obj-$(CONFIG_QEMU_ACCEL) += qemu/ obj-$(CONFIG_WATCHDOG) += watchdog/ obj-$(CONFIG_MWAVE) += mwave/
drivers/char/qemu/Kconfig +61 -0
61 lines not on this page · raw message
drivers/char/qemu/Makefile +7 -0
@@ -0,0 +1,7 @@ +kqemu-objs:= kqemu-linux.o kqemu-mod.o +qemu_path := $(shell echo $(CONFIG_QEMU_ACCEL_PATH)) + +$(obj)/kqemu-mod.o: $(qemu_path)/kqemu-mod-${ARCH}.o + cp $< $@ + +obj-$(CONFIG_QEMU_ACCEL):= kqemu.o
drivers/char/qemu/kqemu-kernel.h +47 -0
47 lines not on this page · raw message
drivers/char/qemu/kqemu-linux.c +372 -0
372 lines not on this page · raw message
drivers/char/qemu/kqemu.h +132 -0
132 lines not on this page · raw message