[libvirt] QEMU CPU model versioning/compatibility (was Re: KVM call minutes July 31th)
by Eduardo Habkost
On Tue, Jul 31, 2012 at 04:32:05PM +0200, Juan Quintela wrote:
> - 1.2 plans for CPU model versioning/compatibility (eduardo)
> (global properties vs QOM vs qdev)
> how to do it ? configuration file? moving back to the code?
> different external interface from internal one
(CCing libvir-list)
So, the problem is (please correct me if I am wrong):
- libvirt expects the CPU models from the current config file to be
provided by QEMU. libvirt won't write a cpudef config file.
- Fixing compatibility problems on the CPU models (even the ones that
are in config files) are expected to be QEMU's responsibility.
Moving the CPU models inside the code is a step backwards, IMO. I don't
think loading some kind of data from an external file (provided and
maintained by QEMU itself) should be considered something special and
magic, and make the data there a second-class citizen (that QEMU refuses
to give proper support and keep compatibility).
But if it will make us stop running in circles every time something
related to those files needs to be changed (remember the -no-user-config
discussion?), I think I will accept that.
--
Eduardo
12 years, 3 months
[libvirt] [PATCH] Add missing parallels_utils.h to Makefile.am
by Daniel Veillard
Otherwise the file is missing from the dist tarball and distcheck fails
Pushed under the build breaker rule
Daniel
diff --git a/src/Makefile.am b/src/Makefile.am
index c5dc28a..b48ce65 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -532,7 +532,8 @@ HYPERV_DRIVER_EXTRA_DIST = \
PARALLELS_DRIVER_SOURCES = \
parallels/parallels_driver.h \
parallels/parallels_driver.c \
- parallels/parallels_utils.c \
+ parallels/parallels_utils.c \
+ parallels/parallels_utils.h \
parallels/parallels_storage.c
NETWORK_DRIVER_SOURCES = \
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
12 years, 3 months
[libvirt] [test-API][PATCH 1/2] Fix the undefined local variable problem in remote_exec
by Wayne Sun
* subproc_flag should be global when used between functions
* print error msg when exception happened
Signed-off-by: Wayne Sun <gsun(a)redhat.com>
---
utils/utils.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/utils/utils.py b/utils/utils.py
index 455e9cf..be87cdc 100644
--- a/utils/utils.py
+++ b/utils/utils.py
@@ -32,6 +32,8 @@ import subprocess
from xml.dom import minidom
from urlparse import urlparse
+subproc_flag = 0
+
def get_hypervisor():
if commands.getoutput("lsmod | grep kvm"):
return 'kvm'
@@ -439,10 +441,12 @@ def support_virt(self):
return True
def subproc(a, b):
+ global subproc_flag
subproc_flag = 1
def remote_exec(hostname, username, password, cmd):
"""Remote execution on specified host"""
+ global subproc_flag
pid, fd = pty.fork()
if pid == 0:
try:
@@ -479,6 +483,7 @@ def remote_exec(hostname, username, password, cmd):
subproc_flag = 0
return ret
except Exception, e:
+ print e
subproc_flag = 0
return -1
--
1.7.1
12 years, 3 months
[libvirt] [PATCH] ESX: Add "Byte" datatype
by Ata E Husain Bohra
Append "Byte" datatype to esx_vi_types predefined datatype set.
Ata E Husain Bohra (1):
ESX: Add "Byte" datatype
src/esx/esx_vi_generator.py | 1 +
src/esx/esx_vi_types.c | 57 +++++++++++++++++++++++++++++++++++++++++++
src/esx/esx_vi_types.h | 28 +++++++++++++++++++++
3 files changed, 86 insertions(+)
--
1.7.9.5
12 years, 3 months
[libvirt] [PATCH v2 0/5] Introduce API for dumping domain IP addresses
by Michal Privoznik
This feature has been requested for a very long time. However,
we had to wait for guest agent to obtain reliable results as
user might create totally different structure of interfaces than
seen from outside (e.g. bonding, virtual interfaces, etc.).
That's the main reason why sniffing for domain traffic can
return bogus results. Fortunately, qemu guest agent implement
requested part for a while so nothing holds us back anymore.
To make matters worse, guest OS can assign whatever name to
an interface and changing MAC inside guest isn't propagated
to the host which in the end see original one.
Therefore, finding correlation between interface within guest
and the host side end is left as exercise for mgmt applications.
This API is called virDomainGetInterfacesAddresses (okay, maybe
too many plurals) and returns a XML document containing all
interesting data.
diff to v1:
-switch from struct to XML doc
Michal Privoznik (5):
Introduce virDomainGetInterfacesAddresses API
virsh: Expose virDomainGetInterfacesAddresses
qemu_agent: Implement 'guest-network-get-interfaces' command handling
qemu: Implement virDomainInterfacesAddresses
python: create example for dumping domain IP addresses
docs/schemas/interfaces.rng | 57 +++++++++++++++++
examples/python/Makefile.am | 2 +-
examples/python/README | 1 +
examples/python/domipaddrs.py | 62 +++++++++++++++++++
include/libvirt/libvirt.h.in | 2 +
src/driver.h | 4 +
src/libvirt.c | 49 +++++++++++++++
src/libvirt_public.syms | 1 +
src/qemu/qemu_agent.c | 135 +++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_agent.h | 2 +
src/qemu/qemu_driver.c | 68 +++++++++++++++++++++
src/remote/remote_driver.c | 1 +
src/remote/remote_protocol.x | 12 +++-
src/remote_protocol-structs | 8 +++
tools/virsh.c | 41 ++++++++++++
tools/virsh.pod | 9 +++
16 files changed, 452 insertions(+), 2 deletions(-)
create mode 100644 docs/schemas/interfaces.rng
create mode 100644 examples/python/domipaddrs.py
--
1.7.8.5
12 years, 3 months