All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zhai, Edwin" <edwin.zhai@intel.com>
To: bruce.ashfield@windriver.com
Cc: yocto@yoctoproject.org
Subject: Request to enable SMP and virtio for qemux86/x86-64
Date: Wed, 11 Jan 2012 15:01:57 +0800	[thread overview]
Message-ID: <20120111070157.GC10415@edwin-gen> (raw)

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

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

[-- Attachment #2: enable-smp-virtio-for-qemu.patch --]
[-- Type: text/x-diff, Size: 1389 bytes --]

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

             reply	other threads:[~2012-01-11  7:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-11  7:01 Zhai, Edwin [this message]
2012-01-11 12:43 ` Request to enable SMP and virtio for qemux86/x86-64 Bruce Ashfield
2012-01-12 13:14   ` Zhai, Edwin
2012-01-17 14:06     ` Bruce Ashfield
2012-01-26  4:49       ` Bruce Ashfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120111070157.GC10415@edwin-gen \
    --to=edwin.zhai@intel.com \
    --cc=bruce.ashfield@windriver.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.