[libvirt] [PATCH v9 16/17] conf: Use resrc=tpm in case of TPM passthrough following docs

Stefan Berger stefanb at linux.vnet.ibm.com
Mon Jun 4 15:46:55 UTC 2018


Fix the resrc field for the TPM passthrough case to show tpm.
This fixes the code to follow the documentation.

Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
---
 src/conf/domain_audit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conf/domain_audit.c b/src/conf/domain_audit.c
index 8335938c29..d9be638f05 100644
--- a/src/conf/domain_audit.c
+++ b/src/conf/domain_audit.c
@@ -593,7 +593,7 @@ virDomainAuditTPM(virDomainObjPtr vm, virDomainTPMDefPtr tpm,
         }
 
         VIR_AUDIT(VIR_AUDIT_RECORD_RESOURCE, success,
-                  "virt=%s resrc=dev reason=%s %s uuid=%s %s",
+                  "virt=%s resrc=tpm reason=%s %s uuid=%s %s",
                   virt, reason, vmname, uuidstr, device);
         break;
     case VIR_DOMAIN_TPM_TYPE_EMULATOR:
-- 
2.14.3




More information about the libvir-list mailing list