From b5c3aa95f3f97d5e71a1b5cdcbd337bebed08b88 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Wed, 18 Feb 2015 20:27:07 -0500 Subject: Support virDomainPinIOThread Support the libvirt_virDomainSetIOThreads method using code that mimics the existing libvirt_virDomainPinVcpuFlags method The following is a sample session assuming guest 'iothr-gst' has IOThreads configured (it's currently running, too) >>> import libvirt >>> con=libvirt.open("qemu:///system") >>> dom=con.lookupByName('iothr-gst') >>> dom.ioThreadsInfo() [(1, [False, False, True, False]), (2, [False, False, False, True]), (3, [True, True, True, True])] >>> cpumap=(True,True,True,False) >>> dom.pinIOThread(3,cpumap) 0 >>> print dom.ioThreadsInfo() [(1, [False, False, True, False]), (2, [False, False, False, True]), (3, [True, True, True, False])] >>> merge --- libvirt-override-api.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libvirt-override-api.xml') diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml index bb61a46..4660c9f 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -284,6 +284,14 @@ + + Dynamically change the real CPUs which can be allocated to an IOThread. This function requires privileged access to the hypervisor. + + + + + + Change the scheduler parameters -- cgit v1.2.1