mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
udev: Don't try to dump DMI on non-intel archs
DMI is Intel & Intel-compatible specific. Don't try to dump information on non-compatible architectures, which results only in error message in logs.
This commit is contained in:
parent
574953309f
commit
4f550a129e
@ -1477,6 +1477,8 @@ out:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* DMI is intel-compatible specific */
|
||||||
|
#if defined(__x86_64__) || defined(__i386__) || defined(__amd64__)
|
||||||
static void
|
static void
|
||||||
udevGetDMIData(union _virNodeDevCapData *data)
|
udevGetDMIData(union _virNodeDevCapData *data)
|
||||||
{
|
{
|
||||||
@ -1549,6 +1551,7 @@ out:
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static int udevSetupSystemDev(void)
|
static int udevSetupSystemDev(void)
|
||||||
@ -1573,7 +1576,9 @@ static int udevSetupSystemDev(void)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__x86_64__) || defined(__i386__) || defined(__amd64__)
|
||||||
udevGetDMIData(&def->caps->data);
|
udevGetDMIData(&def->caps->data);
|
||||||
|
#endif
|
||||||
|
|
||||||
dev = virNodeDeviceAssignDef(&driverState->devs, def);
|
dev = virNodeDeviceAssignDef(&driverState->devs, def);
|
||||||
if (dev == NULL) {
|
if (dev == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user