[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] conf:audit: fix no audit log when start a vm with iothread



Signed-off-by: Luyao Huang <lhuang redhat com>
---
 src/conf/domain_audit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/conf/domain_audit.c b/src/conf/domain_audit.c
index 4ea10d2..1900039 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);
 }
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]