summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2012-09-19 10:06:55 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-21 11:10:20 +0100
commit51048acb2d89b260651963ddb9b57c9bd642fc21 (patch)
tree48dfa0f69f64059b34ac0b6798c5f63c391b6b22
parentab2b2a1f2a931258a80ea4e7ed9430aacac591b7 (diff)
downloadpoky-51048acb2d89b260651963ddb9b57c9bd642fc21.tar.gz
qemux86-64: Support for KVM, paravirt and virtio added
KVM, paravirtualization and virtio drivers are now activated in runqemu using the kvm option flag for qemux86-64. Host CPU features are also exported to guest OS (Yocto Linux). Usage example: runqemu qemux86-64 core-image-x11 kvm Implements [YOCTO #2550]. (From OE-Core rev: cbb6431b3ee9128ea15c9ae0a19e7d2998ffc561) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/linux/linux-yocto_3.4.bb3
-rwxr-xr-xscripts/runqemu-internal4
2 files changed, 4 insertions, 3 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto_3.4.bb b/meta/recipes-kernel/linux/linux-yocto_3.4.bb
index 32ae02b512..06dd677fcb 100644
--- a/meta/recipes-kernel/linux/linux-yocto_3.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_3.4.bb
@@ -15,7 +15,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.4.git;protocol=git;nocheckou
15 15
16LINUX_VERSION ?= "3.4.10" 16LINUX_VERSION ?= "3.4.10"
17 17
18PR = "${INC_PR}.1" 18PR = "${INC_PR}.3"
19PV = "${LINUX_VERSION}+git${SRCPV}" 19PV = "${LINUX_VERSION}+git${SRCPV}"
20 20
21KMETA = "meta" 21KMETA = "meta"
@@ -28,4 +28,5 @@ KERNEL_FEATURES_append = " features/netfilter"
28KERNEL_FEATURES_append_qemux86=" cfg/sound" 28KERNEL_FEATURES_append_qemux86=" cfg/sound"
29KERNEL_FEATURES_append_qemux86-64=" cfg/sound" 29KERNEL_FEATURES_append_qemux86-64=" cfg/sound"
30KERNEL_FEATURES_append_qemux86=" cfg/paravirt_kvm" 30KERNEL_FEATURES_append_qemux86=" cfg/paravirt_kvm"
31KERNEL_FEATURES_append_qemux86-64=" cfg/paravirt_kvm"
31KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32", "" ,d)}" 32KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32", "" ,d)}"
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index f2c8d8309f..6e20dd7512 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -350,8 +350,8 @@ if [ "$MACHINE" = "qemux86-64" ]; then
350 QEMU=qemu-system-x86_64 350 QEMU=qemu-system-x86_64
351 QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga vmware" 351 QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga vmware"
352 if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then 352 if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then
353 KERNCMDLINE="vga=0 root=/dev/hda rw mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD" 353 KERNCMDLINE="vga=0 root=$DROOT rw mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
354 QEMUOPTIONS="$QEMU_NETWORK_CMD -hda $ROOTFS $QEMU_UI_OPTIONS" 354 QEMUOPTIONS="$QEMU_NETWORK_CMD $ROOTFS_OPTIONS $QEMU_UI_OPTIONS"
355 fi 355 fi
356 if [ "$FSTYPE" = "nfs" ]; then 356 if [ "$FSTYPE" = "nfs" ]; then
357 if [ "x$ROOTFS" = "x" ]; then 357 if [ "x$ROOTFS" = "x" ]; then