qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [libvirt] [PATCH 2/4] QMP: add cpu-add command


From: Peter Krempa
Subject: Re: [Qemu-devel] [libvirt] [PATCH 2/4] QMP: add cpu-add command
Date: Tue, 30 Apr 2013 15:53:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

On 04/30/13 15:46, Eduardo Habkost wrote:
(CCing libvir-list)

On Tue, Apr 30, 2013 at 08:34:01AM +0200, Igor Mammedov wrote:
Adds "cpu-add id=xxx" QMP command.

cpu-add's "id" argument is a CPU number in a range [0..max-cpus)

Example QMP command:
  -> { "execute": "cpu-add", "arguments": { "id": 2 } }
  <- { "return": {} }

Signed-off-by: Igor Mammedov <address@hidden>
Acked-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>

The only way to find out if CPU hotplug is really available on a given
machine-type is by actually trying to run cpu-add, right? Is this
sufficient for libvirt requirements?




As long as the command fails when it's not supported it's okay.

(cpu_set HMP command does not fail when offlining a cpu even if it isn't supported and that's real pain to use)

Peter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]