Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/qemu/qemu_validate.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
index f750684414..d6aa2a58ab 100644
--- a/src/qemu/qemu_validate.c
+++ b/src/qemu/qemu_validate.c
@@ -1781,12 +1781,8 @@ qemuValidateNetSupportsCoalesce(virDomainNetType type)
*/
static int
qemuValidateDomainDefVhostUserRequireSharedMemory(const virDomainDef *def,
- const char *name,
- virQEMUCaps *qemuCaps G_GNUC_UNUSED)
+ const char *name)
{
- const char *defaultRAMId = virQEMUCapsGetMachineDefaultRAMid(qemuCaps,
- def->virtType,
- def->os.machine);
size_t numa_nodes = virDomainNumaGetNodeCount(def->numa);
size_t i;
@@ -3357,8 +3353,7 @@ qemuValidateDomainDeviceDefDisk(const virDomainDiskDef *disk,
return -1;
}
- if (qemuValidateDomainDefVhostUserRequireSharedMemory(def,
"vhostuser",
- qemuCaps) < 0) {
+ if (qemuValidateDomainDefVhostUserRequireSharedMemory(def, "vhostuser")
< 0) {
return -1;
}
}
@@ -4524,8 +4519,7 @@ qemuValidateDomainDeviceDefFS(virDomainFSDef *fs,
_("virtiofs does not support fmode and dmode"));
return -1;
}
- if (qemuValidateDomainDefVhostUserRequireSharedMemory(def, "virtiofs",
- qemuCaps) < 0) {
+ if (qemuValidateDomainDefVhostUserRequireSharedMemory(def, "virtiofs")
< 0) {
return -1;
}
if (fs->info.bootIndex &&
--
2.39.2