From: Luyao Huang Date: Sun, 31 May 2015 14:07:58 +0000 (+0800) Subject: audit: Audit number of iothreads at domain startup X-Git-Tag: v1.2.17-rc1~316 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=038a03c7a7492865c3e714b2d36cd9bde6bf5fc8;p=thirdparty%2Flibvirt.git audit: Audit number of iothreads at domain startup If the domain has IOThreads defined, then audit the number started at domain startup time. Signed-off-by: Luyao Huang --- diff --git a/src/conf/domain_audit.c b/src/conf/domain_audit.c index 4ea10d2ad7..1900039572 100644 --- a/src/conf/domain_audit.c +++ b/src/conf/domain_audit.c @@ -885,6 +885,8 @@ virDomainAuditStart(virDomainObjPtr vm, const char *reason, bool success) virDomainAuditMemory(vm, 0, vm->def->mem.cur_balloon, "start", true); virDomainAuditVcpu(vm, 0, vm->def->vcpus, "start", true); + if (vm->def->iothreads) + virDomainAuditIOThread(vm, 0, vm->def->iothreads, "start", true); virDomainAuditLifecycle(vm, "start", reason, success); }