]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
audit: Audit number of iothreads at domain startup
authorLuyao Huang <lhuang@redhat.com>
Sun, 31 May 2015 14:07:58 +0000 (22:07 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 2 Jun 2015 18:03:48 +0000 (14:03 -0400)
If the domain has IOThreads defined, then audit the number started
at domain startup time.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/conf/domain_audit.c

index 4ea10d2ad7ef5e49be090271e05b98fc163064fa..1900039572d7b82c7331cfa1761cdd1768d7c5c4 100644 (file)
@@ -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);
 }