When adding an HDD to a guest in QEMU/KVM in Virt-Manager, there are "qcow2" and "raw". "raw" seems to be storing the data in a file with the ".img" extension. It seems that I can pass the entire physical disk to the guest like this post says, but is using the whole physical disk like that any faster than using the raw ".img" file?
I am going to use a dedicated physical drive for a guest anyway, but I guess passing the whole raw disk to the guest may damage the file system metadata if I let the host access that disk at the same time by a mistake. If I use a raw ".img" file on that drive, than it will be safe from such accident. But if the former is significantly faster, then it may be worth the risk.
<disk> <disk type="block" device="disk"> <driver name="qemu" type="raw"/> <source dev="/dev/sdg"/> <======= whatever the device is on your system -- lsblk will show devices <target dev="vda" bus="virtio"/> (for 2nd virtio device then replace vda by vdb etc ) # <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/> this line is generated when the VM is booted so you don't enter this one </disk>