qemu: capabilities: fill in domcaps <filesystem>

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Kristina Hanicova 2021-05-18 14:50:51 +02:00 committed by Michal Privoznik
parent f388aa5ff3
commit 42edef36fd
59 changed files with 389 additions and 0 deletions

View File

@ -6173,6 +6173,23 @@ virQEMUCapsFillDomainDeviceRNGCaps(virQEMUCaps *qemuCaps,
}
void
virQEMUCapsFillDomainDeviceFSCaps(virQEMUCaps *qemuCaps,
virDomainCapsDeviceFilesystem *filesystem)
{
filesystem->supported = VIR_TRISTATE_BOOL_YES;
filesystem->driverType.report = true;
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VHOST_USER_FS))
VIR_DOMAIN_CAPS_ENUM_SET(filesystem->driverType,
VIR_DOMAIN_FS_DRIVER_TYPE_VIRTIOFS);
VIR_DOMAIN_CAPS_ENUM_SET(filesystem->driverType,
VIR_DOMAIN_FS_DRIVER_TYPE_PATH,
VIR_DOMAIN_FS_DRIVER_TYPE_HANDLE);
}
/**
* virQEMUCapsSupportsGICVersion:
* @qemuCaps: QEMU capabilities
@ -6301,6 +6318,7 @@ virQEMUCapsFillDomainCaps(virQEMUCaps *qemuCaps,
virDomainCapsDeviceGraphics *graphics = &domCaps->graphics;
virDomainCapsDeviceVideo *video = &domCaps->video;
virDomainCapsDeviceRNG *rng = &domCaps->rng;
virDomainCapsDeviceFilesystem *filesystem = &domCaps->filesystem;
virQEMUCapsFillDomainFeaturesFromQEMUCaps(qemuCaps, domCaps);
@ -6329,6 +6347,7 @@ virQEMUCapsFillDomainCaps(virQEMUCaps *qemuCaps,
virQEMUCapsFillDomainDeviceVideoCaps(qemuCaps, video);
virQEMUCapsFillDomainDeviceHostdevCaps(qemuCaps, hostdev);
virQEMUCapsFillDomainDeviceRNGCaps(qemuCaps, rng);
virQEMUCapsFillDomainDeviceFSCaps(qemuCaps, filesystem);
virQEMUCapsFillDomainFeatureGICCaps(qemuCaps, domCaps);
virQEMUCapsFillDomainFeatureSEVCaps(qemuCaps, domCaps);

View File

@ -777,6 +777,9 @@ void virQEMUCapsFillDomainDeviceVideoCaps(virQEMUCaps *qemuCaps,
void virQEMUCapsFillDomainDeviceRNGCaps(virQEMUCaps *qemuCaps,
virDomainCapsDeviceRNG *rng);
void virQEMUCapsFillDomainDeviceFSCaps(virQEMUCaps *qemuCaps,
virDomainCapsDeviceFilesystem *filesystem);
bool virQEMUCapsGuestIsNative(virArch host,
virArch guest);

View File

@ -158,6 +158,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -171,6 +171,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -193,6 +193,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -158,6 +158,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -172,6 +172,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -182,6 +182,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -142,6 +142,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='yes'>

View File

@ -140,6 +140,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -110,6 +110,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -192,6 +192,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -172,6 +172,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -173,6 +173,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -185,6 +185,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -112,6 +112,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -199,6 +199,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -173,6 +173,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -176,6 +176,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -188,6 +188,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -112,6 +112,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -176,6 +176,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -176,6 +176,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -189,6 +189,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -149,6 +149,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='yes'>

View File

@ -147,6 +147,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -113,6 +113,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -209,6 +209,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -176,6 +176,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -182,6 +182,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -191,6 +191,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -182,6 +182,12 @@
<value>egd</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -189,6 +189,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -197,6 +197,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -150,6 +150,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='yes'>

View File

@ -148,6 +148,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -114,6 +114,12 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -223,6 +223,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -189,6 +189,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -191,6 +191,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -198,6 +198,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -151,6 +151,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='yes'>

View File

@ -149,6 +149,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -114,6 +114,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -191,6 +191,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -192,6 +192,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -198,6 +198,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -91,6 +91,12 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -192,6 +192,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -192,6 +192,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -198,6 +198,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -151,6 +151,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='yes'>

View File

@ -149,6 +149,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -114,6 +114,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -225,6 +225,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -192,6 +192,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -193,6 +193,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -199,6 +199,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>

View File

@ -193,6 +193,13 @@
<value>builtin</value>
</enum>
</rng>
<filesystem supported='yes'>
<enum name='driverType'>
<value>path</value>
<value>handle</value>
<value>virtiofs</value>
</enum>
</filesystem>
</devices>
<features>
<gic supported='no'/>