Bruce,
Can we enable SMP and virtio by default for qemux86/x86-64? This can achieve 
huge perf boost for workload inside qemu. E.g. we enabled self-hosted image, 
where we build yocto inside qemu.

Attached patch showes the kernel config option.

Is it reasonable?

Thanks,
Edwin

-- 
best rgds,
edwin
commit 8f2268237c5cb97052c2c9a6ea6c0f818d1a658d
Author: gzhai <gzhai@gzhai-xps.(none)>
Date:   Fri Dec 9 10:32:50 2011 +0800

    linux-yocto: enable smp for qemux86
    
    Signed-off-by: None <None>

diff --git a/meta/recipes-kernel/linux/linux-yocto/extra.cfg b/meta/recipes-kernel/linux/linux-yocto/extra.cfg
new file mode 100644
index 0000000..efe1d9b
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-yocto/extra.cfg
@@ -0,0 +1,7 @@
+CONFIG_SMP=y
+CONFIG_VIRTIO=y
+CONFIG_VIRTIO_PCI=y
+CONFIG_VIRTIO_BALLOON=y
+CONFIG_VIRTIO_RING=y
+CONFIG_VIRTIO_NET=y
+CONFIG_VIRTIO_BLK=y
diff --git a/meta/recipes-kernel/linux/linux-yocto_3.0.bb b/meta/recipes-kernel/linux/linux-yocto_3.0.bb
index 4032567..850310a 100644
--- a/meta/recipes-kernel/linux/linux-yocto_3.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_3.0.bb
@@ -20,11 +20,13 @@ SRCREV_machine_qemux86-64 ?= "988fcbe64829f0a03ccfcc08d45cedb26cabe9ed"
 SRCREV_machine ?= "ab1de8c21d2b1d084b8488496d75cc54fcd94f02"
 SRCREV_meta ?= "67ce7623909cef63927fd145026aaf371cf4abf1"
 
-PR = "r2"
+PR = "r3"
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta"
 
+SRC_URI += "file://extra.cfg"
+
 COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
 
 # Functionality flags
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to