aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-05 23:18:51 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-05 23:18:51 +0000
commit46870ff9e27ed8e5b07fb0d5a9ebb97426a5796c (patch)
tree20c9302fee5e0aac91c349dc9023da10e2bfef38 /target/linux/x86
parent5f3d84fcebadf6dbecce2e57c5c36eb1d610f6e9 (diff)
downloadupstream-46870ff9e27ed8e5b07fb0d5a9ebb97426a5796c.tar.gz
upstream-46870ff9e27ed8e5b07fb0d5a9ebb97426a5796c.tar.bz2
upstream-46870ff9e27ed8e5b07fb0d5a9ebb97426a5796c.zip
[PATCH v5 3/4] x86: add kvm_guest subtarget
Add a KVM guest subtarget to the x86 target. Since VirtIO is the preferred I/O virtualization platform for kvm, this target expects it's root device to be /dev/vda. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22944 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86')
-rw-r--r--target/linux/x86/kvm_guest/base-files/etc/inittab5
-rw-r--r--target/linux/x86/kvm_guest/config-default50
-rw-r--r--target/linux/x86/kvm_guest/target.mk2
3 files changed, 57 insertions, 0 deletions
diff --git a/target/linux/x86/kvm_guest/base-files/etc/inittab b/target/linux/x86/kvm_guest/base-files/etc/inittab
new file mode 100644
index 0000000000..469b8a9a9f
--- /dev/null
+++ b/target/linux/x86/kvm_guest/base-files/etc/inittab
@@ -0,0 +1,5 @@
+::sysinit:/etc/init.d/rcS S boot
+::shutdown:/etc/init.d/rcS K stop
+tts/0::askfirst:/bin/ash --login
+hvc0::askfirst:/bin/ash --login
+tty1::askfirst:/bin/ash --login
diff --git a/target/linux/x86/kvm_guest/config-default b/target/linux/x86/kvm_guest/config-default
new file mode 100644
index 0000000000..655d18ca6a
--- /dev/null
+++ b/target/linux/x86/kvm_guest/config-default
@@ -0,0 +1,50 @@
+CONFIG_ACPI=y
+# CONFIG_ACPI_PROC_EVENT is not set
+# CONFIG_ACPI_AC is not set
+# CONFIG_ACPI_ASUS is not set
+# CONFIG_ACPI_BATTERY is not set
+CONFIG_ACPI_BLACKLIST_YEAR=0
+CONFIG_ACPI_BUTTON=y
+# CONFIG_ACPI_CONTAINER is not set
+# CONFIG_ACPI_CUSTOM_DSDT is not set
+# CONFIG_ACPI_DEBUG is not set
+# CONFIG_ACPI_DOCK is not set
+# CONFIG_ACPI_FAN is not set
+CONFIG_ACPI_HOTPLUG_CPU=y
+# CONFIG_ACPI_PCI_SLOT is not set
+CONFIG_ACPI_PROCESSOR=y
+# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
+# CONFIG_ACPI_PROCFS is not set
+# CONFIG_ACPI_PROCFS_POWER is not set
+# CONFIG_ACPI_SBS is not set
+CONFIG_ACPI_SYSFS_POWER=y
+# CONFIG_ACPI_TOSHIBA is not set
+# CONFIG_ACPI_THERMAL is not set
+# CONFIG_ACPI_WMI is not set
+# CONFIG_HW_RANDOM_VIRTIO is not set
+CONFIG_INPUT=y
+CONFIG_INPUT_KEYBOARD=y
+# CONFIG_KVM is not set
+CONFIG_KVM_CLOCK=y
+CONFIG_KVM_GUEST=y
+# CONFIG_LGUEST is not set
+# CONFIG_LGUEST_GUEST is not set
+# CONFIG_MICROCODE is not set
+CONFIG_PARAVIRT=y
+CONFIG_PARAVIRT_GUEST=y
+CONFIG_PNPACPI=y
+# CONFIG_THINKPAD_ACPI is not set
+CONFIG_VIRTIO=y
+# CONFIG_VIRTIO_BALLOON is not set
+CONFIG_VIRTIO_BLK=y
+CONFIG_VIRTIO_CONSOLE=y
+# CONFIG_VIRTIO_NET is not set
+CONFIG_VIRTIO_PCI=y
+# CONFIG_VIRTIO_RANDOM is not set
+CONFIG_VIRTIO_RING=y
+CONFIG_VIRTUALIZATION=y
+# CONFIG_VMI is not set
+CONFIG_VT=y
+CONFIG_VT_CONSOLE=y
+# CONFIG_VT_HW_CONSOLE_BINDING is not set
+# CONFIG_X86_PAT is not set
diff --git a/target/linux/x86/kvm_guest/target.mk b/target/linux/x86/kvm_guest/target.mk
new file mode 100644
index 0000000000..7e48f64173
--- /dev/null
+++ b/target/linux/x86/kvm_guest/target.mk
@@ -0,0 +1,2 @@
+BOARDNAME:=KVM Guest
+DEFAULT_PACKAGES += kmod-virtio-balloon kmod-virtio-net kmod-virtio-random