Bug#495950: [Pkg-libvirt-maintainers] Bug#495950: libvirt assumes kvm can't do SMP

2008-08-22 Thread Guido Günther
On Thu, Aug 21, 2008 at 11:32:40PM +0100, Sjoerd Simons wrote:
[..snip..] 
 Like i said in my mail, using virtsh setvcpu doesn't accept a number of cpu's
 more then 1. Changing the XML or running kvm by hand works fine ofcourse.
I overread the virsh - sorry.

 To summarize running:
   virtsh setvcpu 2
 returns an error (i can't acces the machine, so can't give you the exact 
 error)

/* XXX future KVM will support SMP. Need to probe
   kernel to figure out KVM module version i guess */
if (STRCASEEQ(type, kvm))
   return 1;

There's a KVM_NR_MAX_VCPUS capability in recent KVM but this won't be
working until 2.6.27 so there's little point in fixing this for lenny
yet. I'll push a patch upstream - should we get 2.6.27 into lenny I'll
backport it, otherwise it will get into unstable with the new upstream
libvirt version.
Cheers,
 -- Guido



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#495950: [Pkg-libvirt-maintainers] Bug#495950: libvirt assumes kvm can't do SMP

2008-08-21 Thread Guido Günther
On Thu, Aug 21, 2008 at 03:58:22PM +0100, Sjoerd Simons wrote:
   libvirt currently assumes that KVM can't do SMP yet, so it sets the maximum
   number of cpus to 1. Which means that you can't change the number of cpu's
   using virsh setvcpu to more then 1...
Even in 0.4.0 SMP worked with KVM. Increase the number of CPUs in the
XML and it'll work. Please describe what you tried to do.
 -- Guido



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#495950: [Pkg-libvirt-maintainers] Bug#495950: libvirt assumes kvm can't do SMP

2008-08-21 Thread Sjoerd Simons
On Thu, Aug 21, 2008 at 06:51:00PM +0200, Guido Günther wrote:
 On Thu, Aug 21, 2008 at 03:58:22PM +0100, Sjoerd Simons wrote:
libvirt currently assumes that KVM can't do SMP yet, so it sets the 
  maximum
number of cpus to 1. Which means that you can't change the number of cpu's
using virsh setvcpu to more then 1...
 Even in 0.4.0 SMP worked with KVM. Increase the number of CPUs in the
 XML and it'll work. Please describe what you tried to do.

Like i said in my mail, using virtsh setvcpu doesn't accept a number of cpu's
more then 1. Changing the XML or running kvm by hand works fine ofcourse.

To summarize running:
  virtsh setvcpu 2
returns an error (i can't acces the machine, so can't give you the exact error)

  Sjoerd
-- 
Interchangeable parts won't.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]