mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-08 19:34:20 +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_DIR_CLOSE(dirp);
|
||||
virCapsHostCacheBankFree(bank);
|
||||
virBitmapFree(cpus);
|
||||
return ret;
|
||||
}
|
||||
|
@@ -1764,6 +1764,13 @@ static int nodeStateInitialize(bool privileged,
|
||||
|
||||
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
|
||||
* notified by udev of device changes before we enumerate existing
|
||||
* devices because libvirt will simply recreate the device if we
|
||||
|
@@ -528,7 +528,7 @@ static void qemuMonitorJSONHandleShutdown(qemuMonitorPtr mon, virJSONValuePtr da
|
||||
bool guest = false;
|
||||
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;
|
||||
|
||||
qemuMonitorEmitShutdown(mon, guest_initiated);
|
||||
|
@@ -1093,7 +1093,7 @@ virHostCPUGetMap(unsigned char **cpumap,
|
||||
if (online)
|
||||
*online = virBitmapCountBits(cpus);
|
||||
|
||||
ret = virBitmapSize(cpus);
|
||||
ret = virHostCPUGetCount();
|
||||
|
||||
cleanup:
|
||||
if (ret < 0 && cpumap)
|
||||
|
Reference in New Issue
Block a user