Re: [PATCH 17/34] qemu: Extract vCPU onlining/offlining via agent into a separate function

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

 




On 11/20/2015 10:22 AM, Peter Krempa wrote:
> Separate the code so that qemuDomainSetVcpusFlags contains only code
> relevant to hardware hotplug/unplug.
> ---
>  src/qemu/qemu_driver.c | 137 +++++++++++++++++++++++++++----------------------
>  1 file changed, 77 insertions(+), 60 deletions(-)
> 


ACK 15, 16


> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index 95b9ede..ab22c65 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -4853,6 +4853,59 @@ qemuDomainHotplugVcpus(virQEMUDriverPtr driver,
> 
> 

This function relies on qemuAgentUpdateCPUInfo to perform the maxvcpus
checks that wouldn't be made by refactoring this code here.  Perhaps
something worthy to note in the commit message (at least that's my
assumption based on reading the code).

ACK -

John

>  static int
> +qemuDomainSetVcpusAgent(virDomainObjPtr vm,
> +                        unsigned int nvcpus)
> +{

[...]

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]