Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
libvirt.10484
a05e2570-libxl-virDomainGetMaxVcpus.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File a05e2570-libxl-virDomainGetMaxVcpus.patch of Package libvirt.10484
commit a05e2570c9d76b0d1286f0c51d86dc0c2a38337d Author: Jim Fehlig <jfehlig@suse.com> Date: Fri Jan 6 12:19:31 2017 -0700 libxl: implement virDomainGetMaxVcpus The libxl driver already supports getting maximum vcpu count via libxlDomainGetVcpusFlags, allowing to trivially implement virDomainGetMaxVcpus. Index: libvirt-1.2.18.4/src/libxl/libxl_driver.c =================================================================== --- libvirt-1.2.18.4.orig/src/libxl/libxl_driver.c +++ libvirt-1.2.18.4/src/libxl/libxl_driver.c @@ -2305,6 +2305,13 @@ libxlDomainGetVcpusFlags(virDomainPtr do } static int +libxlDomainGetMaxVcpus(virDomainPtr dom) +{ + return libxlDomainGetVcpusFlags(dom, (VIR_DOMAIN_AFFECT_LIVE | + VIR_DOMAIN_VCPU_MAXIMUM)); +} + +static int libxlDomainPinVcpuFlags(virDomainPtr dom, unsigned int vcpu, unsigned char *cpumap, int maplen, unsigned int flags) @@ -5207,6 +5214,7 @@ static virHypervisorDriver libxlHypervis .domainSetVcpus = libxlDomainSetVcpus, /* 0.9.0 */ .domainSetVcpusFlags = libxlDomainSetVcpusFlags, /* 0.9.0 */ .domainGetVcpusFlags = libxlDomainGetVcpusFlags, /* 0.9.0 */ + .domainGetMaxVcpus = libxlDomainGetMaxVcpus, /* 1.2.18 */ .domainPinVcpu = libxlDomainPinVcpu, /* 0.9.0 */ .domainPinVcpuFlags = libxlDomainPinVcpuFlags, /* 1.2.1 */ .domainGetVcpus = libxlDomainGetVcpus, /* 0.9.0 */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor