kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jim Paris <jim@jtan.com>
To: Binarus <lists@binarus.de>
Cc: kvm@vger.kernel.org
Subject: Re: Unable to pass multiple cores / CPUs to guests
Date: Mon, 30 Jan 2012 12:44:45 -0500	[thread overview]
Message-ID: <20120130174445.GA23238@psychosis.jim.sh> (raw)
In-Reply-To: <4F24FDBC.6000902@binarus.de>

Binarus wrote:
> Dear all,
> 
> it seems that I am unable to pass multiple cores / CPUs to KVM
> guests. Whatever I do, the guests only report one CPU / core.
...
> /usr/bin/qemu-system-x86_64 -M pc -cpu host -smp cores=2,threads=1,sockets=1 -drive file=/dev/sda6,if=virtio,cache=none,index=0 -drive file=/dev/sdb,if=virtio,cache=none,index=1 -cdrom /dev/cdrom -pidfile ./qemu-garak.pid -boot c -k de -m 4096 -smp 1 -device pci-assign,host=01:05.0 -daemonize -usb -usbdevice "tablet" -name garak -net nic,vlan=0,model=virtio,macaddr=02:01:01:01:01:01 -net tap,vlan=0,ifname=virtnet1,script=/etc/qemu-ifup,downscript=/etc/qemu-ifup -vnc :1

Remove the "-smp 1".

-jim

  reply	other threads:[~2012-01-30 17:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-29  8:05 Unable to pass multiple cores / CPUs to guests Binarus
2012-01-30 17:44 ` Jim Paris [this message]
2012-02-04  9:03   ` Binarus

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=20120130174445.GA23238@psychosis.jim.sh \
    --to=jim@jtan.com \
    --cc=kvm@vger.kernel.org \
    --cc=lists@binarus.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).