}
-static int
-qemuProcessStartValidateShmem(virDomainObj *vm)
-{
- size_t i;
-
- for (i = 0; i < vm->def->nshmems; i++) {
- virDomainShmemDef *shmem = vm->def->shmems[i];
-
- if (strchr(shmem->name, '/')) {
- virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
- _("shmem name '%1$s' must not contain '/'"),
- shmem->name);
- return -1;
- }
- }
-
- return 0;
-}
-
-
/* 250 parts per million (ppm) is a half of NTP threshold */
#define TSC_TOLERANCE 250
if (qemuProcessStartValidateGraphics(vm) < 0)
return -1;
- if (qemuProcessStartValidateShmem(vm) < 0)
- return -1;
-
if (vm->def->cpu) {
if (virCPUValidateFeatures(vm->def->os.arch, vm->def->cpu) < 0)
return -1;
qemuValidateDomainDeviceDefShmem(virDomainShmemDef *shmem,
virQEMUCaps *qemuCaps)
{
+ if (strchr(shmem->name, '/')) {
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+ _("shmem name '%1$s' must not contain '/'"),
+ shmem->name);
+ return -1;
+ }
+
if (shmem->size > 0) {
if (shmem->size < 1024 * 1024 ||
!VIR_IS_POW2(shmem->size)) {