mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-22 19:34:08 +03:00
Compare commits
4 Commits
v3.4.0-rc1
...
v3.4.0-rc2
Author | SHA1 | Date | |
---|---|---|---|
|
f9b69c8289 | ||
|
4ae0f65669 | ||
|
d1eea6c12a | ||
|
6e9e1423e1 |
@@ -1643,5 +1643,6 @@ virCapabilitiesInitCaches(virCapsPtr caps)
|
|||||||
VIR_FREE(path);
|
VIR_FREE(path);
|
||||||
VIR_DIR_CLOSE(dirp);
|
VIR_DIR_CLOSE(dirp);
|
||||||
virCapsHostCacheBankFree(bank);
|
virCapsHostCacheBankFree(bank);
|
||||||
|
virBitmapFree(cpus);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@@ -1764,6 +1764,13 @@ static int nodeStateInitialize(bool privileged,
|
|||||||
|
|
||||||
udev_monitor_enable_receiving(priv->udev_monitor);
|
udev_monitor_enable_receiving(priv->udev_monitor);
|
||||||
|
|
||||||
|
/* mimic udevd's behaviour and override the systems rmem_max limit in case
|
||||||
|
* there's a significant number of device 'add' events
|
||||||
|
*/
|
||||||
|
if (geteuid() == 0)
|
||||||
|
udev_monitor_set_receive_buffer_size(priv->udev_monitor,
|
||||||
|
128 * 1024 * 1024);
|
||||||
|
|
||||||
/* We register the monitor with the event callback so we are
|
/* We register the monitor with the event callback so we are
|
||||||
* notified by udev of device changes before we enumerate existing
|
* notified by udev of device changes before we enumerate existing
|
||||||
* devices because libvirt will simply recreate the device if we
|
* devices because libvirt will simply recreate the device if we
|
||||||
|
@@ -528,7 +528,7 @@ static void qemuMonitorJSONHandleShutdown(qemuMonitorPtr mon, virJSONValuePtr da
|
|||||||
bool guest = false;
|
bool guest = false;
|
||||||
virTristateBool guest_initiated = VIR_TRISTATE_BOOL_ABSENT;
|
virTristateBool guest_initiated = VIR_TRISTATE_BOOL_ABSENT;
|
||||||
|
|
||||||
if (virJSONValueObjectGetBoolean(data, "guest", &guest) == 0)
|
if (data && virJSONValueObjectGetBoolean(data, "guest", &guest) == 0)
|
||||||
guest_initiated = guest ? VIR_TRISTATE_BOOL_YES : VIR_TRISTATE_BOOL_NO;
|
guest_initiated = guest ? VIR_TRISTATE_BOOL_YES : VIR_TRISTATE_BOOL_NO;
|
||||||
|
|
||||||
qemuMonitorEmitShutdown(mon, guest_initiated);
|
qemuMonitorEmitShutdown(mon, guest_initiated);
|
||||||
|
@@ -1093,7 +1093,7 @@ virHostCPUGetMap(unsigned char **cpumap,
|
|||||||
if (online)
|
if (online)
|
||||||
*online = virBitmapCountBits(cpus);
|
*online = virBitmapCountBits(cpus);
|
||||||
|
|
||||||
ret = virBitmapSize(cpus);
|
ret = virHostCPUGetCount();
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (ret < 0 && cpumap)
|
if (ret < 0 && cpumap)
|
||||||
|
Reference in New Issue
Block a user