- 08 6月, 2016 2 次提交
-
-
由 Peter Krempa 提交于
Implement the RPC dispatcher and caller for the new API.
-
由 Peter Krempa 提交于
For logging one-shot entries to the VM log file it's quite a waste to hold open the file descriptor for logging that is provided by the current API. This new API will be ideal for logging one-shot entries to the file e.g. at the point when we shut the VM down rather than having to add the whole file-descriptor infrastructure. Additionally this will allow to add the messages even after restart of libvirtd since virtlogd doesn't allow to obtain a regular context with filedescriptors while the VM is still active.
-
- 07 6月, 2016 38 次提交
-
-
由 John Ferlan 提交于
Document the return value of virRandomBytes as 0 or some errno value and then make sure all callers make the proper checks.
-
由 Ján Tomko 提交于
-
由 Ján Tomko 提交于
This speeds up node_device_udev driver startup 11x.
-
由 Ján Tomko 提交于
Simplify the logic
-
由 Ján Tomko 提交于
Move out the code depending on HAVE_DECL_ETHTOOL_GFEATURES.
-
由 Ján Tomko 提交于
Split out the features that we probe via various ethtool commands and ETHTOOL_GFLAGS.
-
由 Ján Tomko 提交于
Rename struct elem to virNetDevEthtoolFeatureCmd and move it out of the function to allow reusing it.
-
由 Ján Tomko 提交于
-
由 Peter Krempa 提交于
The new flag was not added to virCheckFlags in commit '0d1c17aa' causing a regression where VMs were not able to start.
-
由 John Ferlan 提交于
Rather than intermixing the ATTRIBUTE_UNUSED - use HAVE_GNUTLS_CIPHER_ENCRYPT for the whole function instead.
-
由 Ján Tomko 提交于
Filter out some subsystems we are not interested in.
-
由 Ján Tomko 提交于
Instead of the custom out and out_unlock.
-
由 Ján Tomko 提交于
Remove ret variables and labels from functions where there is no cleanup to be done.
-
由 Peter Krempa 提交于
Introduce a validation callback for qemu and move checking of min_guarantee to the new callback.
-
由 Peter Krempa 提交于
Now with the proper domain config validation infrastructure the check can be moved to a place that doesn't make domains vanish.
-
由 Peter Krempa 提交于
Since it will not be called from outside of conf we can unexport it too if we move it to the appropriate place. Test suite change is necessary since the error will be reported sooner now.
-
由 Peter Krempa 提交于
To avoid duplicating all the checks when starting a fresh VM from a possibly unchecked config, call the domain def validator.
-
由 Peter Krempa 提交于
Validation of qemu process startup requires to know whether the process is used for a fresh VM or whether it's reloaded from a snapshot/migration. Pass this information in via a flag rather than calculating it from a bunch of bools.
-
由 Peter Krempa 提交于
-
由 Peter Krempa 提交于
Similarly to the domain definition validator add a device validator. The change to the prototype of the domain validator is necessary as virDomainDeviceInfoIterateInternal requires a non-const pointer.
-
由 Peter Krempa 提交于
It's passed to all places along with the structure.
-
由 Peter Krempa 提交于
Until now we weren't able to add checks that would reject configuration once accepted by the parser. This patch adds a new callback and infrastructure to add such checks. In this patch all the places where rejecting a now-invalid configuration wouldn't be a good idea are marked with a new parser flag.
-
由 Peter Krempa 提交于
Make it obvious that the flag is controlling RNG schema validation.
-
由 Ján Tomko 提交于
-
由 Ján Tomko 提交于
There is no cleanup to be done.
-
由 Ján Tomko 提交于
Remove unnecessary ret variable and return early if we have no media to save on indentation.
-
由 Ján Tomko 提交于
Use virTrimSpaces instead of a custom implementation.
-
由 Ján Tomko 提交于
Also use the more common "Unable to initialize mutex" string and virReportSystemError instead of virStrerror.
-
由 Ján Tomko 提交于
They are no longer used.
-
由 Ján Tomko 提交于
Open code the call to udev_device_get_sysattr_value in the one place where it's needed.
-
由 Ján Tomko 提交于
Callers only check for an error or a specific integer value.
-
由 Ján Tomko 提交于
The callers only care for an error, and a missing attribute is simply NULL.
-
由 Ján Tomko 提交于
Most of the code paths free it right after converting it to an integer.
-
由 Ján Tomko 提交于
We only care about the failure, not a missing property.
-
由 Ján Tomko 提交于
There is no need to differentiate between PROPERTY_FOUND and PROPERTY_MISSING - we can just look if the string is non-NULL.
-
由 Martin Kletzander 提交于
Historically, we added heads=1 to videos, but for example for qxl, we did not reflect that on the command line. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1283207Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
-
由 Martin Kletzander 提交于
Add capabilities for both qxl and qxl-vga devices. Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
-
由 Ján Tomko 提交于
Error out on parsing errors and use a local const char pointer instead of chained ifs to check whether we found a match.
-