mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: allow running virtiofsd in session mode
https://gitlab.com/libvirt/libvirt/-/issues/535 Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d27b6e5f49
commit
42edb10f17
@ -4256,7 +4256,7 @@ qemuValidateDomainDeviceDefGraphics(const virDomainGraphicsDef *graphics,
|
|||||||
static int
|
static int
|
||||||
qemuValidateDomainDeviceDefFS(virDomainFSDef *fs,
|
qemuValidateDomainDeviceDefFS(virDomainFSDef *fs,
|
||||||
const virDomainDef *def,
|
const virDomainDef *def,
|
||||||
virQEMUDriver *driver,
|
virQEMUDriver *driver G_GNUC_UNUSED,
|
||||||
virQEMUCaps *qemuCaps)
|
virQEMUCaps *qemuCaps)
|
||||||
{
|
{
|
||||||
if (fs->type != VIR_DOMAIN_FS_TYPE_MOUNT) {
|
if (fs->type != VIR_DOMAIN_FS_TYPE_MOUNT) {
|
||||||
@ -4320,11 +4320,6 @@ qemuValidateDomainDeviceDefFS(virDomainFSDef *fs,
|
|||||||
_("virtiofs does not yet support read-only mode"));
|
_("virtiofs does not yet support read-only mode"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!driver->privileged) {
|
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
|
||||||
_("virtiofs is not yet supported in session mode"));
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
if (fs->accessmode != VIR_DOMAIN_FS_ACCESSMODE_PASSTHROUGH) {
|
if (fs->accessmode != VIR_DOMAIN_FS_ACCESSMODE_PASSTHROUGH) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("virtiofs only supports passthrough accessmode"));
|
_("virtiofs only supports passthrough accessmode"));
|
||||||
|
Loading…
Reference in New Issue
Block a user