mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-08 16:54:49 +00:00
conf: require target for external virtiofsd
When adding support for externally launched virtiofsd, I was too liberal and did not require a target. But the target is required, because it's passed to the QEMU device, not to virtiofsd. https://bugzilla.redhat.com/show_bug.cgi?id=1969232 Fixes:12967c3e13
Fixes:56dcdec1ac
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
2dabd16588
commit
e8863b91fb
@ -3261,6 +3261,7 @@ A directory on the host that can be accessed directly from the guest.
|
||||
<filesystem type='mount'>
|
||||
<driver type='virtiofs' queue='1024'/>
|
||||
<source socket='/tmp/sock'/>
|
||||
<target dir='tag'/>
|
||||
</filesystem>
|
||||
...
|
||||
</devices>
|
||||
|
@ -180,4 +180,5 @@ control and need to be set by the application running virtiofsd.
|
||||
<filesystem type='mount'/>
|
||||
<driver type='virtiofs' queue='1024'/>
|
||||
<source socket='/var/virtiofsd.sock'/>
|
||||
<target dir='tag'/>
|
||||
</filesystem>
|
||||
|
@ -2036,8 +2036,10 @@ virDomainShmemDefValidate(const virDomainShmemDef *shmem)
|
||||
static int
|
||||
virDomainFSDefValidate(const virDomainFSDef *fs)
|
||||
{
|
||||
if (fs->dst == NULL && !fs->sock) {
|
||||
if (fs->dst == NULL) {
|
||||
const char *source = fs->src->path;
|
||||
if (!source)
|
||||
source = fs->sock;
|
||||
|
||||
virReportError(VIR_ERR_NO_TARGET,
|
||||
source ? "%s" : NULL, source);
|
||||
|
@ -29,6 +29,7 @@
|
||||
<filesystem type='mount'>
|
||||
<driver type='virtiofs' queue='1024'/>
|
||||
<source socket='/tmp/sock'/>
|
||||
<target dir='tag'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
||||
</filesystem>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
|
Loading…
Reference in New Issue
Block a user