[libvirt] [PATCH] qemu: s/acceptible/acceptable/
by Ján Tomko
Prefer the contemporary spelling.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
Pushed as trivial
src/qemu/qemu_domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 580e0f830..136116cfe 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -4173,7 +4173,7 @@ qemuDomainDeviceDefValidateControllerAttributes(const virDomainControllerDef *co
*
* Using the @qemuCaps, let's ensure the provided @model can be supported
*
- * Returns true if acceptible, false otherwise with error message set.
+ * Returns true if acceptable, false otherwise with error message set.
*/
static bool
qemuDomainCheckSCSIControllerModel(virQEMUCapsPtr qemuCaps,
--
2.13.6
6 years, 7 months
[libvirt] [PATCH 0/4] vmx: allow more than 4 NICs (RHBZ#1560917)
by Pino Toscano
Hi,
the VMX parser, used in the esx driver, has currently hardcoded 4 NICs
possible, ignoring extra more than that. The following series removes
this limitation, allowing to parse all the 10 NICs in the VMX of
RHBZ#1560917.
Thanks,
Pino Toscano (4):
vmx: check for present/enabled devices earlier
vmx: allocate space for network interfaces if needed
internal: add STRCASEPREFIX
vmx: convert any amount of NICs
src/internal.h | 1 +
src/vmx/vmx.c | 150 +++++++++++-----------
tests/vmx2xmldata/vmx2xml-esx-in-the-wild-8.vmx | 163 ++++++++++++++++++++++++
tests/vmx2xmldata/vmx2xml-esx-in-the-wild-8.xml | 89 +++++++++++++
tests/vmx2xmltest.c | 1 +
5 files changed, 325 insertions(+), 79 deletions(-)
create mode 100644 tests/vmx2xmldata/vmx2xml-esx-in-the-wild-8.vmx
create mode 100644 tests/vmx2xmldata/vmx2xml-esx-in-the-wild-8.xml
--
2.14.3
6 years, 7 months
[libvirt] Release of libvirt-4.2.0
by Daniel Veillard
Not April fool one, I made the release on time :-)
It's signed in git and signed tarball and rpms are pushed to the usual place:
ftp://libvirt.org/libvirt/
I also pushed a python binding 4.2.0 release which can be found at:
ftp://libvirt.org/libvirt/python/
New features
- Support building with Python 3
Python is required to build libvirt, and up until now only Python 2
could be used as an interpreter. All scripts used during build have now
been made compatible with Python 3, which means both major releases of
the language are fully supported.
- qemu: Provide ccw address support for graphics and input devices
Support the virtio-gpu-ccw device as a video device and
virtio-{keyboard, mouse, tablet}-ccw devices as input devices on S390.
Improvements
- qemu: Add logging of guest crash information on S390
On S390, when the guest crashes and QEMU exposes the guest crash
information, log the relevant data to the domain log file.
- qemu: use arp table of host to get the IP address of guests
Find IP address of a VM by arp table on hosts. If someone customizing
IP address inside VM, it will be helpful.
- Xen: Remove hard-coded scheduler weight
The libxl driver was accidentally hard-coding the per-domain scheduler
weight to 1000, silently ignoring any user-provided <shares> in
<cputune>. The driver now honors <shares>, and defers setting a default
value to Xen. Note that the Xen default is 256, so any domains started
after this improvement will have one fourth the shares of previously
started domains. If all domains must have equal CPU shares,
administrators must manually set the weight of previously started
domains to 256, or restart them.
there is no documented bug fix but there is quite a few there too :-)
Thanks everybody for your help getting this release, with patches,
reviews, bug reports, documentation, etc.
Enjoy !
Daniel
--
Daniel Veillard | Red Hat Developers Tools http://developer.redhat.com/
veillard(a)redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | virtualization library http://libvirt.org/
6 years, 7 months
[libvirt] [PATCH] qemuDomainRemoveDevice: add qemuDomainRemoveWatchdog
by Ján Tomko
qemuDomainDetachWatchdog uses the infrastructure for waiting
for the DEVICE_DELETED event, but the asynchronous delete
was not implemented.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/qemu/qemu_hotplug.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 49af4d4ff..e840c8010 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -4493,12 +4493,15 @@ qemuDomainRemoveDevice(virQEMUDriverPtr driver,
ret = qemuDomainRemoveRedirdevDevice(driver, vm, dev->data.redirdev);
break;
+ case VIR_DOMAIN_DEVICE_WATCHDOG:
+ ret = qemuDomainRemoveWatchdog(driver, vm, dev->data.watchdog);
+ break;
+
case VIR_DOMAIN_DEVICE_NONE:
case VIR_DOMAIN_DEVICE_LEASE:
case VIR_DOMAIN_DEVICE_FS:
case VIR_DOMAIN_DEVICE_SOUND:
case VIR_DOMAIN_DEVICE_VIDEO:
- case VIR_DOMAIN_DEVICE_WATCHDOG:
case VIR_DOMAIN_DEVICE_GRAPHICS:
case VIR_DOMAIN_DEVICE_HUB:
case VIR_DOMAIN_DEVICE_SMARTCARD:
--
2.13.6
6 years, 7 months
[libvirt] [PATCH] qemu: Randomly deny starting domains
by Michal Privoznik
Libvirt works just too well. Deny starting domains at random so
users value our incredibly low number of bugs more.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/qemu/qemu_driver.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 7bcc4936de..4570c76db7 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -107,6 +107,7 @@
#include "virnuma.h"
#include "dirname.h"
#include "netdev_bandwidth_conf.h"
+#include "virrandom.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
@@ -7256,7 +7257,7 @@ qemuDomainObjStart(virConnectPtr conn,
qemuDomainAsyncJob asyncJob)
{
int ret = -1;
- char *managed_save;
+ char *managed_save = NULL;
bool start_paused = (flags & VIR_DOMAIN_START_PAUSED) != 0;
bool autodestroy = (flags & VIR_DOMAIN_START_AUTODESTROY) != 0;
bool bypass_cache = (flags & VIR_DOMAIN_START_BYPASS_CACHE) != 0;
@@ -7267,6 +7268,13 @@ qemuDomainObjStart(virConnectPtr conn,
start_flags |= start_paused ? VIR_QEMU_PROCESS_START_PAUSED : 0;
start_flags |= autodestroy ? VIR_QEMU_PROCESS_START_AUTODESTROY : 0;
+ if (virRandomInt(2)) {
+ virReportError(VIR_ERR_OPERATION_DENIED,
+ _("Starting domain %s denied. Today is not your day"),
+ vm->def->name);
+ goto cleanup;
+ }
+
/*
* If there is a managed saved state restore it instead of starting
* from scratch. The old state is removed once the restoring succeeded.
--
2.16.1
6 years, 7 months