[PATCH v1 0/3] Introduce qemuDomainSetVcpuTuneParameters API

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

 



From: Hyman Huang <yong.huang@xxxxxxxxxx>

This patchset is the prerequisite for the vCPU dirty-limit feature:
https://patchew.org/Libvirt/cover.1703135535.git.yong.huang@xxxxxxxxxx/

As suggested by Daniel:

We've generally tried to avoid adding single purpose APIs for
tunable parameters, instead using APIs with virTypedParameter
arrays to allow bulk updates.

I note that we don't appear to have any mechanism currently
to set the VCPU scheduler tunables either

Perhaps we should have a more general

   virDomainSetVCPUTuneParameters(virDomainPtr domain,
                                  int vcpu,
				  virTypedParameterPtr params,
				  unsigned int params,
				  unsigned int flags);

Refer the following link to see more details:
https://patchew.org/Libvirt/169397083100.4628.15196043252714532301-0@xxxxxxxxx/169397083100.4628.15196043252714532301-3@xxxxxxxxx/

We present the qemuDomainSetVcpuTuneParameters API separately
because the patchset is somewhat self-contained.

Please review,

Yong

Hyman Huang (3):
  libvirt: Add virDomainSetVcpuTuneParameters API
  qemu_driver: Implement qemuDomainSetVcpuTuneParameters
  virsh: Use the new API to implement cmdSetvcpu

 include/libvirt/libvirt-domain.h | 25 ++++++++++++++
 src/driver-hypervisor.h          |  8 +++++
 src/libvirt-domain.c             | 56 ++++++++++++++++++++++++++++++++
 src/libvirt_public.syms          |  5 +++
 src/qemu/qemu_driver.c           | 29 +++++++++++++++++
 src/remote/remote_driver.c       |  1 +
 src/remote/remote_protocol.x     | 20 +++++++++++-
 tools/virsh-domain.c             | 10 +++++-
 8 files changed, 152 insertions(+), 2 deletions(-)

-- 
2.27.0



[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]

  Powered by Linux