All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] cpu hotplug and windows guest (win2012r2)
@ 2015-01-09 10:26 Alexandre DERUMIER
  2015-01-09 13:35 ` Andrey Korolyov
  2015-01-19 16:06 ` Igor Mammedov
  0 siblings, 2 replies; 10+ messages in thread
From: Alexandre DERUMIER @ 2015-01-09 10:26 UTC (permalink / raw)
  To: qemu-devel

Hi,

I'm currently testing cpu hotplug with a windows 2012R2 standard guest,

and I can't get it too work. (works fine with linux guest).

host kernel : rhel7 3.10 kernel
qemu 2.2


qemu command line : -smp cpus=1,sockets=2,cores=1,maxcpus=2

Started with 1cpu, topogoly is 2sockets with 1cores.


Then

qmp# cpu-add 1


I can see a new cpu is windows device manager, and event log in the device said that it's online.

So it should be ok, but.

I can't see new processor in taskmanager or perfmon. (I had tried to relaunch them to be sure.).


So, it is a windows bug ? Does I need to do something else ?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
  2015-01-09 10:26 [Qemu-devel] cpu hotplug and windows guest (win2012r2) Alexandre DERUMIER
@ 2015-01-09 13:35 ` Andrey Korolyov
  2015-01-14 16:07   ` Andrey Korolyov
  2015-01-19 16:06 ` Igor Mammedov
  1 sibling, 1 reply; 10+ messages in thread
From: Andrey Korolyov @ 2015-01-09 13:35 UTC (permalink / raw)
  To: Alexandre DERUMIER; +Cc: qemu-devel

On Fri, Jan 9, 2015 at 1:26 PM, Alexandre DERUMIER <aderumier@odiso.com> wrote:
> Hi,
>
> I'm currently testing cpu hotplug with a windows 2012R2 standard guest,
>
> and I can't get it too work. (works fine with linux guest).
>
> host kernel : rhel7 3.10 kernel
> qemu 2.2
>
>
> qemu command line : -smp cpus=1,sockets=2,cores=1,maxcpus=2
>
> Started with 1cpu, topogoly is 2sockets with 1cores.
>
>
> Then
>
> qmp# cpu-add 1
>
>
> I can see a new cpu is windows device manager, and event log in the device said that it's online.
>
> So it should be ok, but.
>
> I can't see new processor in taskmanager or perfmon. (I had tried to relaunch them to be sure.).
>
>
> So, it is a windows bug ? Does I need to do something else ?
>

Did you populated appropriate topology in arguments? As far as I can
remember from pre-1.1 era CPU hotplug not worked with windows, so it
should be neither lack of configured NUMA or a simply OS-specific
issue.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
  2015-01-09 13:35 ` Andrey Korolyov
@ 2015-01-14 16:07   ` Andrey Korolyov
  2015-01-19 17:12     ` Alexandre DERUMIER
       [not found]     ` <1789085063.4708770.1421780811020.JavaMail.zimbra@oxygem.tv>
  0 siblings, 2 replies; 10+ messages in thread
From: Andrey Korolyov @ 2015-01-14 16:07 UTC (permalink / raw)
  To: Alexandre DERUMIER; +Cc: qemu-devel

On Fri, Jan 9, 2015 at 4:35 PM, Andrey Korolyov <andrey@xdel.ru> wrote:
> On Fri, Jan 9, 2015 at 1:26 PM, Alexandre DERUMIER <aderumier@odiso.com> wrote:
>> Hi,
>>
>> I'm currently testing cpu hotplug with a windows 2012R2 standard guest,
>>
>> and I can't get it too work. (works fine with linux guest).
>>
>> host kernel : rhel7 3.10 kernel
>> qemu 2.2
>>
>>
>> qemu command line : -smp cpus=1,sockets=2,cores=1,maxcpus=2
>>
>> Started with 1cpu, topogoly is 2sockets with 1cores.
>>
>>
>> Then
>>
>> qmp# cpu-add 1
>>
>>
>> I can see a new cpu is windows device manager, and event log in the device said that it's online.
>>
>> So it should be ok, but.
>>
>> I can't see new processor in taskmanager or perfmon. (I had tried to relaunch them to be sure.).
>>
>>
>> So, it is a windows bug ? Does I need to do something else ?
>>
>
> Did you populated appropriate topology in arguments? As far as I can
> remember from pre-1.1 era CPU hotplug not worked with windows, so it
> should be neither lack of configured NUMA or a simply OS-specific
> issue.

Just to let anyone know that it works well:

http://xdel.ru/downloads/windows-hotplugged-cpu.png

Topology is a bit rotten (I have two sockets with single CPU in each)
and I *need* to specify non-zero amount of memory for each numa node
to be seen, if each CPU belongs to different node for example but
everything else is just fine.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
  2015-01-09 10:26 [Qemu-devel] cpu hotplug and windows guest (win2012r2) Alexandre DERUMIER
  2015-01-09 13:35 ` Andrey Korolyov
@ 2015-01-19 16:06 ` Igor Mammedov
  2015-01-19 17:13   ` Alexandre DERUMIER
  1 sibling, 1 reply; 10+ messages in thread
From: Igor Mammedov @ 2015-01-19 16:06 UTC (permalink / raw)
  To: Alexandre DERUMIER; +Cc: qemu-devel

On Fri, 9 Jan 2015 11:26:08 +0100 (CET)
Alexandre DERUMIER <aderumier@odiso.com> wrote:

> Hi,
> 
> I'm currently testing cpu hotplug with a windows 2012R2 standard guest,
> 
> and I can't get it too work. (works fine with linux guest).
> 
> host kernel : rhel7 3.10 kernel
> qemu 2.2
> 
> 
> qemu command line : -smp cpus=1,sockets=2,cores=1,maxcpus=2
> 
> Started with 1cpu, topogoly is 2sockets with 1cores.
> 
> 
> Then
> 
> qmp# cpu-add 1
> 
> 
> I can see a new cpu is windows device manager, and event log in the device said that it's online.
> 
> So it should be ok, but.
> 
> I can't see new processor in taskmanager or perfmon. (I had tried to relaunch them to be sure.).
> 
> 
> So, it is a windows bug ? Does I need to do something else ?
it might be a limitation of specific Windows edition,
I've tested it with W2012R2 Datacenter edition where it's supported for sure.

> 
> 
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
  2015-01-14 16:07   ` Andrey Korolyov
@ 2015-01-19 17:12     ` Alexandre DERUMIER
  2015-01-19 17:15       ` Andrey Korolyov
       [not found]     ` <1789085063.4708770.1421780811020.JavaMail.zimbra@oxygem.tv>
  1 sibling, 1 reply; 10+ messages in thread
From: Alexandre DERUMIER @ 2015-01-19 17:12 UTC (permalink / raw)
  To: Andrey Korolyov; +Cc: qemu-devel

>> I *need* to specify non-zero amount of memory for each numa node
>>to be seen, if each CPU belongs to different node for example but
>>everything else is just fine.

Ok, thanks I'll try to enable numa to see if it's helping

(I known that numa is mandatory for memory hotplug, maybe for cpu too)

----- Mail original -----
De: "Andrey Korolyov" <andrey@xdel.ru>
À: "aderumier" <aderumier@odiso.com>
Cc: "qemu-devel" <qemu-devel@nongnu.org>
Envoyé: Mercredi 14 Janvier 2015 17:07:41
Objet: Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)

On Fri, Jan 9, 2015 at 4:35 PM, Andrey Korolyov <andrey@xdel.ru> wrote: 
> On Fri, Jan 9, 2015 at 1:26 PM, Alexandre DERUMIER <aderumier@odiso.com> wrote: 
>> Hi, 
>> 
>> I'm currently testing cpu hotplug with a windows 2012R2 standard guest, 
>> 
>> and I can't get it too work. (works fine with linux guest). 
>> 
>> host kernel : rhel7 3.10 kernel 
>> qemu 2.2 
>> 
>> 
>> qemu command line : -smp cpus=1,sockets=2,cores=1,maxcpus=2 
>> 
>> Started with 1cpu, topogoly is 2sockets with 1cores. 
>> 
>> 
>> Then 
>> 
>> qmp# cpu-add 1 
>> 
>> 
>> I can see a new cpu is windows device manager, and event log in the device said that it's online. 
>> 
>> So it should be ok, but. 
>> 
>> I can't see new processor in taskmanager or perfmon. (I had tried to relaunch them to be sure.). 
>> 
>> 
>> So, it is a windows bug ? Does I need to do something else ? 
>> 
> 
> Did you populated appropriate topology in arguments? As far as I can 
> remember from pre-1.1 era CPU hotplug not worked with windows, so it 
> should be neither lack of configured NUMA or a simply OS-specific 
> issue. 

Just to let anyone know that it works well: 

http://xdel.ru/downloads/windows-hotplugged-cpu.png 

Topology is a bit rotten (I have two sockets with single CPU in each) 
and I *need* to specify non-zero amount of memory for each numa node 
to be seen, if each CPU belongs to different node for example but 
everything else is just fine. 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
  2015-01-19 16:06 ` Igor Mammedov
@ 2015-01-19 17:13   ` Alexandre DERUMIER
  0 siblings, 0 replies; 10+ messages in thread
From: Alexandre DERUMIER @ 2015-01-19 17:13 UTC (permalink / raw)
  To: Igor Mammedov; +Cc: qemu-devel

>>it might be a limitation of specific Windows edition,
>>I've tested it with W2012R2 Datacenter edition where it's supported for sure.

>From the ovirt documentation:

http://www.ovirt.org/Hot_plug_cpu

It should work with any win2012 version. 
(Indeed for win2008, datacenter edition was needed)


----- Mail original -----
De: "Igor Mammedov" <imammedo@redhat.com>
À: "aderumier" <aderumier@odiso.com>
Cc: "qemu-devel" <qemu-devel@nongnu.org>
Envoyé: Lundi 19 Janvier 2015 17:06:37
Objet: Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)

On Fri, 9 Jan 2015 11:26:08 +0100 (CET) 
Alexandre DERUMIER <aderumier@odiso.com> wrote: 

> Hi, 
> 
> I'm currently testing cpu hotplug with a windows 2012R2 standard guest, 
> 
> and I can't get it too work. (works fine with linux guest). 
> 
> host kernel : rhel7 3.10 kernel 
> qemu 2.2 
> 
> 
> qemu command line : -smp cpus=1,sockets=2,cores=1,maxcpus=2 
> 
> Started with 1cpu, topogoly is 2sockets with 1cores. 
> 
> 
> Then 
> 
> qmp# cpu-add 1 
> 
> 
> I can see a new cpu is windows device manager, and event log in the device said that it's online. 
> 
> So it should be ok, but. 
> 
> I can't see new processor in taskmanager or perfmon. (I had tried to relaunch them to be sure.). 
> 
> 
> So, it is a windows bug ? Does I need to do something else ? 
it might be a limitation of specific Windows edition, 
I've tested it with W2012R2 Datacenter edition where it's supported for sure. 

> 
> 
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
  2015-01-19 17:12     ` Alexandre DERUMIER
@ 2015-01-19 17:15       ` Andrey Korolyov
  0 siblings, 0 replies; 10+ messages in thread
From: Andrey Korolyov @ 2015-01-19 17:15 UTC (permalink / raw)
  To: Alexandre DERUMIER; +Cc: qemu-devel

BTW both 2008r2 and 2012r2 are supporting this. 2008r2 is kind enough
to tell me that the cpu count is changed and I should relaunch task
manager.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
       [not found]     ` <1789085063.4708770.1421780811020.JavaMail.zimbra@oxygem.tv>
@ 2015-01-20 19:06       ` Alexandre DERUMIER
  2015-01-20 23:16         ` Andrey Korolyov
  0 siblings, 1 reply; 10+ messages in thread
From: Alexandre DERUMIER @ 2015-01-20 19:06 UTC (permalink / raw)
  To: Andrey Korolyov; +Cc: qemu-devel

Hi,

I have tried with numa enabled, and it's still don't work.
Can you send me your vm qemu command line ?


Also, with numa I have notice something strange with "info numa" command.

starting with -smp socket=2,cores=1

# info numa
2 nodes
node 0 cpus: 0
node 0 size: 2048 MB
node 1 cpus: 1
node 1 size: 2048 MB

ok


now:

starting with -smp 1,socket=2,cores=1,maxcpus=2

# info numa
2 nodes
node 0 cpus: 0
node 0 size: 2048 MB
node 1 cpus:
node 1 size: 2048 MB

ok


now hotplug cpu

# cpu-add 1
# info numa
2 nodes
node 0 cpus: 0 1
node 0 size: 2048 MB
node 1 cpus:
node 1 size: 2048 MB


cpu1 has been hotplugged on numa node0 ??????


----- Mail original -----
De: "Andrey Korolyov" <andrey@xdel.ru>
À: "aderumier" <aderumier@odiso.com>
Cc: "qemu-devel" <qemu-devel@nongnu.org>
Envoyé: Mercredi 14 Janvier 2015 17:07:41
Objet: Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)

On Fri, Jan 9, 2015 at 4:35 PM, Andrey Korolyov <andrey@xdel.ru> wrote: 
> On Fri, Jan 9, 2015 at 1:26 PM, Alexandre DERUMIER <aderumier@odiso.com> wrote: 
>> Hi, 
>> 
>> I'm currently testing cpu hotplug with a windows 2012R2 standard guest, 
>> 
>> and I can't get it too work. (works fine with linux guest). 
>> 
>> host kernel : rhel7 3.10 kernel 
>> qemu 2.2 
>> 
>> 
>> qemu command line : -smp cpus=1,sockets=2,cores=1,maxcpus=2 
>> 
>> Started with 1cpu, topogoly is 2sockets with 1cores. 
>> 
>> 
>> Then 
>> 
>> qmp# cpu-add 1 
>> 
>> 
>> I can see a new cpu is windows device manager, and event log in the device said that it's online. 
>> 
>> So it should be ok, but. 
>> 
>> I can't see new processor in taskmanager or perfmon. (I had tried to relaunch them to be sure.). 
>> 
>> 
>> So, it is a windows bug ? Does I need to do something else ? 
>> 
> 
> Did you populated appropriate topology in arguments? As far as I can 
> remember from pre-1.1 era CPU hotplug not worked with windows, so it 
> should be neither lack of configured NUMA or a simply OS-specific 
> issue. 

Just to let anyone know that it works well: 

http://xdel.ru/downloads/windows-hotplugged-cpu.png 

Topology is a bit rotten (I have two sockets with single CPU in each) 
and I *need* to specify non-zero amount of memory for each numa node 
to be seen, if each CPU belongs to different node for example but 
everything else is just fine. 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
  2015-01-20 19:06       ` Alexandre DERUMIER
@ 2015-01-20 23:16         ` Andrey Korolyov
       [not found]           ` <860823709.4718817.1421808140331.JavaMail.zimbra@oxygem.tv>
  0 siblings, 1 reply; 10+ messages in thread
From: Andrey Korolyov @ 2015-01-20 23:16 UTC (permalink / raw)
  To: Alexandre DERUMIER; +Cc: qemu-devel

On Tue, Jan 20, 2015 at 10:06 PM, Alexandre DERUMIER
<aderumier@odiso.com> wrote:
> Hi,
>
> I have tried with numa enabled, and it's still don't work.
> Can you send me your vm qemu command line ?
>
>
> Also, with numa I have notice something strange with "info numa" command.
>
> starting with -smp socket=2,cores=1
>
> # info numa
> 2 nodes
> node 0 cpus: 0
> node 0 size: 2048 MB
> node 1 cpus: 1
> node 1 size: 2048 MB
>
> ok
>
>
> now:
>
> starting with -smp 1,socket=2,cores=1,maxcpus=2
>
> # info numa
> 2 nodes
> node 0 cpus: 0
> node 0 size: 2048 MB
> node 1 cpus:
> node 1 size: 2048 MB
>
> ok
>
>
> now hotplug cpu
>
> # cpu-add 1
> # info numa
> 2 nodes
> node 0 cpus: 0 1
> node 0 size: 2048 MB
> node 1 cpus:
> node 1 size: 2048 MB
>
>
> cpu1 has been hotplugged on numa node0 ??????
>
>

http://lists.gnu.org/archive/html/qemu-devel/2015-01/msg02240.html
here are working examples. Yes, everything goes to the node0 unless
specified (you can see an example for bounded sockets in this url
too).

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)
       [not found]           ` <860823709.4718817.1421808140331.JavaMail.zimbra@oxygem.tv>
@ 2015-01-21  2:43             ` Alexandre DERUMIER
  0 siblings, 0 replies; 10+ messages in thread
From: Alexandre DERUMIER @ 2015-01-21  2:43 UTC (permalink / raw)
  To: Andrey Korolyov; +Cc: qemu-devel

Ok,
I think it's a windows bug,
I have the same topology than you, I don't work.
(I see the new vcpu in device manager, but not in taskmgr or perform)

Rebooting the os make the new vcpu display, so it's seem to be ok on qemu side.


(Just to known, which version of win2012r2 do you use ? standard or datacenter ?)


Thanks for your help!

Regards,

Alexandre
----- Mail original -----
De: "Andrey Korolyov" <andrey@xdel.ru>
À: "aderumier" <aderumier@odiso.com>
Cc: "qemu-devel" <qemu-devel@nongnu.org>
Envoyé: Mercredi 21 Janvier 2015 00:16:45
Objet: Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)

On Tue, Jan 20, 2015 at 10:06 PM, Alexandre DERUMIER 
<aderumier@odiso.com> wrote: 
> Hi, 
> 
> I have tried with numa enabled, and it's still don't work. 
> Can you send me your vm qemu command line ? 
> 
> 
> Also, with numa I have notice something strange with "info numa" command. 
> 
> starting with -smp socket=2,cores=1 
> 
> # info numa 
> 2 nodes 
> node 0 cpus: 0 
> node 0 size: 2048 MB 
> node 1 cpus: 1 
> node 1 size: 2048 MB 
> 
> ok 
> 
> 
> now: 
> 
> starting with -smp 1,socket=2,cores=1,maxcpus=2 
> 
> # info numa 
> 2 nodes 
> node 0 cpus: 0 
> node 0 size: 2048 MB 
> node 1 cpus: 
> node 1 size: 2048 MB 
> 
> ok 
> 
> 
> now hotplug cpu 
> 
> # cpu-add 1 
> # info numa 
> 2 nodes 
> node 0 cpus: 0 1 
> node 0 size: 2048 MB 
> node 1 cpus: 
> node 1 size: 2048 MB 
> 
> 
> cpu1 has been hotplugged on numa node0 ?????? 
> 
> 

http://lists.gnu.org/archive/html/qemu-devel/2015-01/msg02240.html 
here are working examples. Yes, everything goes to the node0 unless 
specified (you can see an example for bounded sockets in this url 
too). 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-01-21  2:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-09 10:26 [Qemu-devel] cpu hotplug and windows guest (win2012r2) Alexandre DERUMIER
2015-01-09 13:35 ` Andrey Korolyov
2015-01-14 16:07   ` Andrey Korolyov
2015-01-19 17:12     ` Alexandre DERUMIER
2015-01-19 17:15       ` Andrey Korolyov
     [not found]     ` <1789085063.4708770.1421780811020.JavaMail.zimbra@oxygem.tv>
2015-01-20 19:06       ` Alexandre DERUMIER
2015-01-20 23:16         ` Andrey Korolyov
     [not found]           ` <860823709.4718817.1421808140331.JavaMail.zimbra@oxygem.tv>
2015-01-21  2:43             ` Alexandre DERUMIER
2015-01-19 16:06 ` Igor Mammedov
2015-01-19 17:13   ` Alexandre DERUMIER

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.