diff options
author | Tang Chen <tangchen@cn.fujitsu.com> | 2012-08-21 17:18:36 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-08-22 16:29:57 +0800 |
commit | 151eee5a062bfb38f2dff694b162e1c3ebb65782 (patch) | |
tree | c19c0af123869e06e060dea177a53963b30cc3bf /src/conf/domain_conf.h | |
parent | Introduce virDomainPinEmulator and virDomainGetEmulatorPinInfo functions. (diff) | |
download | libvirt-151eee5a062bfb38f2dff694b162e1c3ebb65782.tar.gz libvirt-151eee5a062bfb38f2dff694b162e1c3ebb65782.tar.bz2 libvirt-151eee5a062bfb38f2dff694b162e1c3ebb65782.zip |
Introduce virDomainEmulatorPinAdd and virDomainEmulatorPinDel functions
Introduce 2 APIs to support emulator threads pin.
1) virDomainEmulatorPinAdd: setup emulator threads pin with a given cpumap string.
2) virDomainEmulatorPinDel: remove all emulator threads pin.
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Diffstat (limited to 'src/conf/domain_conf.h')
-rw-r--r-- | src/conf/domain_conf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 8cd685e4c..5a02323ea 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1998,6 +1998,12 @@ int virDomainVcpuPinAdd(virDomainVcpuPinDefPtr *vcpupin_list, int virDomainVcpuPinDel(virDomainDefPtr def, int vcpu); +int virDomainEmulatorPinAdd(virDomainDefPtr def, + unsigned char *cpumap, + int maplen); + +int virDomainEmulatorPinDel(virDomainDefPtr def); + int virDomainDiskIndexByName(virDomainDefPtr def, const char *name, bool allow_ambiguous); const char *virDomainDiskPathByName(virDomainDefPtr, const char *name); |