On Mon, Jun 27, 2016 at 15:50:44 +0200, Jiri Denemark wrote: > virQEMUCapsFillDomainCaps would use virHostCPUGetKVMMaxVCPUs for KVM > domains. > diff --git a/tests/domaincapsmock.c b/tests/domaincapsmock.c > new file mode 100644 > index 0000000..5266b73 > --- /dev/null > +++ b/tests/domaincapsmock.c > @@ -0,0 +1,26 @@ > +#include <config.h> > + > +#include "virhostcpu.h" > + > +int > +virHostCPUGetKVMMaxVCPUs(void) > +{ > + return -1; > +} Actually, this should return INT_MAX rather than an error. Jirka -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list