From 038a03c7a7492865c3e714b2d36cd9bde6bf5fc8 Mon Sep 17 00:00:00 2001 From: Luyao Huang Date: Sun, 31 May 2015 22:07:58 +0800 Subject: [PATCH] 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 --- 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 4ea10d2ad..190003957 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); } -- 2.39.5