qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

uuid: Make null_uuid static

So that it doesn't have to be zeroed at each call.

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Message-Id: <1474432046-325-3-git-send-email-famz@redhat.com>

+1 -1
+1 -1
util/uuid.c
··· 40 40 41 41 int qemu_uuid_is_null(const QemuUUID *uu) 42 42 { 43 - QemuUUID null_uuid = { 0 }; 43 + static QemuUUID null_uuid; 44 44 return memcmp(uu, &null_uuid, sizeof(QemuUUID)) == 0; 45 45 } 46 46