I've posted a patch that fixes this: https://listman.redhat.com/archives/libvir-list/2022-June/232541.html