[libvirt] pci-assign fails with read error on config-space file
by Henning Schild
Hey,
i am running an unusual setup where i assign pci devices behind the
back of libvirt. I have two options to do that:
1. a wrapper script for qemu that takes care of suid-root and appends
arguments for pci-assign
2. virsh qemu-monitor-command ... 'device_add pci-assign...'
I know i should probably not be doing this, it is a workaround to
introduce fine-grained pci-assignment in an openstack setup, where
vendor and device id are not enough to pick the right device for a vm.
In both cases qemu will crash with the following output:
> qemu: hardware error: pci read failed, ret = 0 errno = 22
followed by the usual machine state dump. With strace i found it to be
a failing read on the config space file of my device.
/sys/bus/pci/devices/0000:xx:xx.x/config
A few reads out of that file succeeded, as well as accesses on vendor
etc.
Manually launching a qemu with the pci-assign works without a problem,
so i "blame" libvirt and the cgroup environment the qemu ends up in.
So i put a bash into the exact same cgroup setup - next to a running
qemu, expecting a dd or hexdump on the config-space file to fail. But
from that bash i can read the file without a problem.
Has anyone seen that problem before? Right now i do not know what i
am missing, maybe qemu is hitting some limits configured for the
cgroups or whatever. I can not use pci-assign from libvirt, but if i
did would it configure cgroups in a different way or relax some limits?
What would be a good next step to debug that? Right now i am looking at
kernel event traces, but the machine is pretty big and so is the trace.
That assignment used to work and i do not know how it broke, i have
tried combinations of several kernels, versions of libvirt and qemu.
(kernel 3.18 and 4.4, libvirt 1.3.2 and 2.0.0, and qemu 2.2.1 and 2.7)
All combinations show the same problem, even the ones that work on
other machines. So when it comes to software versions the problem could
well be caused by a software update of another component, that i
got with the package manager and did not compile myself. It is a debian
8.6 with all recent updates installed. My guess would be that systemd
could have an influence on cgroups or limits causing such a problem.
regards,
Henning
8 years, 1 month
[libvirt] [PATCH] Fill out more fields for PKG-INFO file
by Daniel P. Berrange
Ensure the description and license are set in PKG-INFO,
and clarify the summary field.
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
setup.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 683dc93..5ad4101 100755
--- a/setup.py
+++ b/setup.py
@@ -311,7 +311,13 @@ setup(name = 'libvirt-python',
url = 'http://www.libvirt.org',
maintainer = 'Libvirt Maintainers',
maintainer_email = 'libvir-list(a)redhat.com',
- description = 'The libvirt virtualization API',
+ description = 'The libvirt virtualization API python binding',
+ long_description =
+ '''The libvirt-python package provides a module that permits applications
+written in the Python programming language to call the interface
+supplied by the libvirt library, to manage the virtualization capabilities
+of recent versions of Linux (and other OSes).''',
+ license = 'LGPLv2+',
ext_modules = _c_modules,
py_modules = _py_modules,
package_dir = {
--
2.9.3
8 years, 1 month
[libvirt] [PATCH v3 0/6] New libssh transport
by Pino Toscano
Hi,
this series introduces a new libssh transport in libvirt, based on the
libssh C library. This library supports what libssh2 does, and more:
- easier API for known_hosts handling (there's a ticket upstream to
request extensions for it, but what is implemented now works well)
- potential GSSAPI authentication (not enabled yet because of a libssh
bug [1])
- easier API for ssh-agent support
The implementation for the new transport is based on the libssh2 one,
hence it shares origin and style.
[1] https://red.libssh.org/issues/242
Thanks,
Changes from v2 to v3:
- split into more commits
- integrate all the issues spotted by Daniel P. Berrange and
Peter Krempa
- restore the specified order of authentication methods (as in libssh2)
- add a related documentation fix
- minor coding fixes
Changes from v1 to v2:
- implemented keyboard interactive
- code polish, and fixes
Pino Toscano (6):
virNetSocket: allow to not close FD
virerror: add error for libssh transport
libssh_transport: add new libssh-based transport
remote: expose a new libssh transport
spec: enable libssh transport on Fedora
docs: fix default value for sshauth option of libssh2/libssh
config-post.h | 2 +
configure.ac | 3 +
docs/remote.html.in | 39 +-
include/libvirt/virterror.h | 2 +
libvirt.spec.in | 10 +
m4/virt-libssh.m4 | 26 +
po/POTFILES.in | 1 +
src/Makefile.am | 21 +-
src/libvirt_libssh.syms | 22 +
src/remote/remote_driver.c | 41 ++
src/rpc/virnetclient.c | 118 ++++
src/rpc/virnetclient.h | 13 +
src/rpc/virnetlibsshsession.c | 1458 +++++++++++++++++++++++++++++++++++++++++
src/rpc/virnetlibsshsession.h | 80 +++
src/rpc/virnetsocket.c | 184 +++++-
src/rpc/virnetsocket.h | 13 +
src/util/virerror.c | 9 +-
17 files changed, 2024 insertions(+), 18 deletions(-)
create mode 100644 m4/virt-libssh.m4
create mode 100644 src/libvirt_libssh.syms
create mode 100644 src/rpc/virnetlibsshsession.c
create mode 100644 src/rpc/virnetlibsshsession.h
--
2.7.4
8 years, 1 month
[libvirt] [PATCH v2] qemu: report block job errors from qemu to the user
by Nikolay Shirokovskiy
So that you can see nice report on migration:
"error: operation failed: migration of disk sda failed: No space left on device"
diff from v1:
1. drop 1 patch. Avoiding default label in switches is desired style.
2. drop 2 patch. I do not investigate enough to touch that place.
3. fix 3 patch
a) as suggested by Jiri
* fix leaks
* s/hint/error/g
* don't show <NULL> in error message
* take suggested code simplifications
b) extra
* print error string from qemu to log in case we have to drop it
Nikolay Shirokovskiy (1):
qemu: report block job errors from qemu to the user
src/qemu/qemu_blockjob.c | 13 +++++++++--
src/qemu/qemu_blockjob.h | 3 ++-
src/qemu/qemu_domain.c | 1 +
src/qemu/qemu_domain.h | 1 +
src/qemu/qemu_driver.c | 4 ++--
src/qemu/qemu_migration.c | 54 +++++++++++++++++++++++++++++++-------------
src/qemu/qemu_monitor.c | 5 ++--
src/qemu/qemu_monitor.h | 4 +++-
src/qemu/qemu_monitor_json.c | 4 +++-
src/qemu/qemu_process.c | 4 ++++
10 files changed, 68 insertions(+), 25 deletions(-)
--
1.8.3.1
8 years, 1 month
[libvirt] [PATCH] Post-release version bump to 2.5.0
by Jiri Denemark
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index dfc536f..9785e66 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@ dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library. If not, see
dnl <http://www.gnu.org/licenses/>.
-AC_INIT([libvirt], [2.4.0], [libvir-list(a)redhat.com], [], [http://libvirt.org])
+AC_INIT([libvirt], [2.5.0], [libvir-list(a)redhat.com], [], [http://libvirt.org])
AC_CONFIG_SRCDIR([src/libvirt.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
--
2.10.2
8 years, 1 month
[libvirt] Release of libvirt-2.4.0
by Daniel Veillard
It's out ! Not hearing any negative feedback on the release candidates
I went ahead, this is tagged in git and signed tarball and rpms are now
at the usual place:
ftp://libvirt.org/libvirt/
I also made a libvirt-python release though it is virtually identical to
2.3.0, to be found at:
ftp://libvirt.org/libvirt/python/
this release is on the small side, leass than 250 commits were pulled in,
mostly bugfixes and incremental improvement. Main user visible one being
the one for I/O throtling and tuning:
Documentation:
- docs: remove obsolete library.xen file (Daniel P. Berrange)
- doc: update virsh domstats documentation for vcpu statistics (Viktor Mihajlovski)
- doc: Describe the VCPU states returned by virsh vcpuinfo (Viktor Mihajlovski)
- virsh: Fix typos in manpage (Nitesh Konkar)
- virsh: Fix commas in manpage to enhance readability. (Nitesh Konkar)
- docs: Alter descriptions of perf cpu_cycles (John Ferlan)
- docs: Add PCP as monitoring application (Marko Myllynen)
- docs: Fix typo in libvirt-domain.h parameter description (John Ferlan)
Portability:
- virLogDefineOutputs: Fix build without syslog.h (Michal Privoznik)
- virt-yajl: Fix detection of yajl requirements (Martin Kletzander)
Bug Fixes:
- vsh: Pass correct values for command line completion (John Ferlan)
- vsh: Using VSH_REQUIRE_OPTION rather than virReportError (Kothapally Madhu Pavan)
- network: fix endless loop when starting network with multiple IPs and no dhcp (Laine Stump)
- qemu_driver: unlink new domain cfg file when rollback (Chen Hanxiao)
- qemu: Fix crash during qemuStateCleanup (Nikolay Shirokovskiy)
- daemon: Fix crash during daemon cleanup (Nikolay Shirokovskiy)
- qemu: Forbid pinning vCPUs for TCG domain (Chen Hanxiao)
- Recreate the USB address cache at reconnect (Ján Tomko)
- Fix crash on usb-serial hotplug (Ján Tomko)
- virsh: Fix on_shutdown to on_poweroff (Martin Kletzander)
- qemu, lxc: Raise error message when resuming running domain (Sławek Kapłoński)
- qemu: Fix depedency order in qemuRemoveDiskDevice (John Ferlan)
- qemu: Move TLS object remove from DetachChr to RemoveChr (John Ferlan)
- libxl: fix leaking of allocated migration ports (Jim Fehlig)
- domain: fix migration to older libvirt (Pavel Hrdina)
- domain_conf: fix memory leak in virDomainDefAddConsoleCompat (Pavel Hrdina)
- bhyve: Need to add parameter to virDomainChrDefNew (John Ferlan)
- networkValidate: Forbid new-line char in network name (Sławek Kapłoński)
- qemu: always generate the same alias for tls-creds-x509 object (Pavel Hrdina)
- qemu_hotplug: fix crash in hot(un)plugging chardev devices (Pavel Hrdina)
- util: Alter return value of virReadFCHost and fix mem leak (John Ferlan)
- schema: smbios: allow any strings (Peter Krempa)
- qemu: command: escape smbios entry strings (Peter Krempa)
- testNodeGetCellsFreeMemory: Fix off by one error (Michal Privoznik)
- virsh: vcpuinfo: Report proper vcpu numbers and data for offline VMs (Peter Krempa)
- virsh: Fix xpath queries for retrieving vcpu count (Peter Krempa)
- conf: Fix virDomainShmemDefFind (Martin Kletzander)
- qemu: migration: Disallow migration of read only disk (Corey S. McQuay)
- tests: Need to initialize data (John Ferlan)
- vsh: Fix some issues in auto completion code (John Ferlan)
- util: Resolve memory leaks in virLogParse{Output|Filter} (John Ferlan)
- tools: Exclude Xen dom0 from libvirt-guests.sh list (Stefan Bader)
- tools: Ignore newlines in libvirt-guests.sh guest list (Stefan Bader)
- qemu: fix command line building for iommu devices (Daniel P. Berrange)
- qemu: monitor: Properly configure backend for UDP chardevs (Peter Krempa)
- qemu: attach: Close monitor socket on connection failure (Peter Krempa)
- qemu: Don't strictly require JSON monitor for vCPU detection (Peter Krempa)
Improvements:
- qemu: Minimalize global driver accesses (Michal Privoznik)
- vz: remove Bridged network name and rename Routed (Maxim Nestratov)
- vz: support type=bridge network interface type correctly (Maxim Nestratov)
- Do not try to release virtio serial addresses (Ján Tomko)
- Return directly from qemuDomainAttachChrDeviceAssignAddr (Ján Tomko)
- Introduce virDomainVirtioSerialAddrAutoAssign again (Ján Tomko)
- Add 'FromCache' to virDomainVirtioSerialAddrAutoAssign (Ján Tomko)
- wireshark: Rename plugindir to ws_plugindir (Andrea Bolognani)
- wireshark: Inject $(prefix) at the right time (Andrea Bolognani)
- wireshark: Strip prefix correctly (Andrea Bolognani)
- wireshark: Hoist $ws_prefix declaration (Andrea Bolognani)
- wireshark: Introduce $ws_modversion (Andrea Bolognani)
- qemu: Add support for using AES secret for SCSI hotplug (Gema Gomez)
- qemu: Add secret object hotplug for TCP chardev TLS (John Ferlan)
- qemu: Add a secret object to/for a char source dev (John Ferlan)
- qemu: Need to remove TLS object in RemoveRNGDevice (John Ferlan)
- virsh: Add _length parameters to virsh output (John Ferlan)
- virsh: Create macros to add IOTUNE values (John Ferlan)
- qemu: Add the length options to the iotune command line (John Ferlan)
- conf: Add support for blkiotune "_length" options (John Ferlan)
- qemu: Add length for bps/iops throttling parameters to driver (John Ferlan)
- caps: Add new capability for the bps/iops throttling length (John Ferlan)
- include: Add new definitions for duration for bps/iops throttling (John Ferlan)
- qemu: Introduce qemuDomainSetBlockIoTuneDefaults (John Ferlan)
- qemu: Move setting of conf_disk in qemuDomainSetBlockIoTune (John Ferlan)
- qemu: Return real error message for block_set_io_throttle (John Ferlan)
- qemu: Create a macro to handle setting bytes/iops iotune values (John Ferlan)
- virQEMUCapsReset: also clear out hostCPUModel (Ján Tomko)
- qemu: add vcpu.n.halted to vcpu domain stats (Viktor Mihajlovski)
- qemu: Add domain support for VCPU halted state (Viktor Mihajlovski)
- qemu: Add monitor support for CPU halted state (Viktor Mihajlovski)
- qemu: replace calls to virDomainPCIAddressReserveNext*() with static function (Laine Stump)
- conf: make virDomainPCIAddressGetNextSlot() a local static function (Laine Stump)
- qemu: use virDomainPCIAddressReserveNextAddr in qemuDomainAssignDevicePCISlots (Laine Stump)
- conf: new function virDomainPCIAddressReserveNextAddr() (Laine Stump)
- domain: Add optional 'tls' attribute for TCP chardev (Pavel Hrdina)
- domain_conf: remove union for one member from redirdev struct (Pavel Hrdina)
- qemu: Add TLS hotplug for qemuDomainAttachRNGDevice (John Ferlan)
- qemu: Add TLS hotplug for qemuDomainAttachRedirdevDevice (John Ferlan)
- qemu: Clean up error path in qemuDomainAttachRedirdevDevice (John Ferlan)
- qemu: Introduce qemuDomainGetChardevTLSObjects for hotplug (John Ferlan)
- conf: Use virDomainChrSourceDefNew for virDomainRNGDef allocation (John Ferlan)
- conf: Use virDomainChrSourceDefPtr for _virDomainRedirdevDef 'source.chr' (John Ferlan)
- conf: Use virDomainChrSourceDefPtr for _virDomainSmartcardDef 'passthru' (John Ferlan)
- xenFormatXLDisk: Unify commas pattern for arguments (Michal Privoznik)
- qemu: change first arg of qemuDomainAttachChrDeviceAssignAddr() (Laine Stump)
- qemu: make error message in qemuDomainPCIAddressSetCreate more clear. (Laine Stump)
- qemu: remove superfluous setting of addrs->nbuses (Laine Stump)
- conf: add typedef for anonymous enum used for memballoon device model (Laine Stump)
- qemu: replace "def->nets[i]" with "net" and "def->sounds[i]" with "sound" (Laine Stump)
- qemu: replace a lot of "def->controllers[i]" with equivalent "cont" (Laine Stump)
- conf: Move the privateData from virDomainChrDef to virDomainChrSourceDef (John Ferlan)
- Introduce virDomainChrSourceDefNew for virDomainChrDefPtr (John Ferlan)
- vmx: Use the allocator virDomainChrDefNew (John Ferlan)
- qemuBuildHostNetStr: remove dead code (Ján Tomko)
- qemuBuildHostNetStr: do not start options with a comma (Ján Tomko)
- qemuBuildHostNetStr: use type_sep earlier (Ján Tomko)
- vz: set something in disk driver name (Nikolay Shirokovskiy)
- vz: add serial number to disk devices (Nikolay Shirokovskiy)
- vz: set localhost as vnc address (Mikhail Feoktistov)
- virt-wireshark.m4: Defer $(prefix) substitution (Michal Privoznik)
- network: Use new util function to check name (Sławek Kapłoński)
- virxml: Add function to check if string contains some illegal chars (Sławek Kapłoński)
- qemu: Introduce qemuDomainChardevPrivatePtr (John Ferlan)
- conf: Introduce {default|chardev}_tls_x509_secret_uuid (John Ferlan)
- xl: fix 8126d870 broken test (Cédric Bosdonnat)
- spec: Drop support for Fedora < 23 (Andrea Bolognani)
- xl: don't output (null) target in domxml-to-native (Cédric Bosdonnat)
- qemu_command: create prefixed alias to separate variable (Pavel Hrdina)
- qemu_alias: introduce qemuAliasChardevFromDevAlias helper (Pavel Hrdina)
- qemu: Remove unnecessary NULL arg check (John Ferlan)
- qemu: Add 'verify-peer=yes' test for chardev TCP TLS (John Ferlan)
- qemu: Remove unnecessary cfg fetch/unref (John Ferlan)
- conf: Explain some code in more detail (Andrea Bolognani)
- conf: restrict what type of buses will accept a pci-bridge (Laine Stump)
- conf: Honour flags in virDomainPanicDefParseXML (Martin Kletzander)
- schema: Allow alias for panic device (Martin Kletzander)
- qemu_hotplug: Support interface type of vhost-user hotplug (Michal Privoznik)
- qemuBuildHostNetStr: Support VIR_DOMAIN_NET_TYPE_VHOSTUSER (Michal Privoznik)
- qemuBuildVhostuserCommandLine: Unify -netdev creation (Michal Privoznik)
- qemuBuildVhostuserCommandLine: Reuse qemuBuildChrChardevStr (Michal Privoznik)
- qemuBuildChrChardevStr: Introduce @nowait argument (Michal Privoznik)
- qemuBuildHostNetStr: Explicitly enumerate net types (Michal Privoznik)
- qemuDomainAttachNetDevice: Explicitly list allowed types for hotplug (Michal Privoznik)
- qemuDomainAttachNetDevice: Move hostdev handling a bit further (Michal Privoznik)
- qemuBuildInterfaceCommandLine: Move from if-else forest to switch (Michal Privoznik)
- qemuBuildInterfaceCommandLine: Move vhostuser handling a bit further (Michal Privoznik)
- qemuBuildInterfaceCommandLine: Move hostdev handling a bit further (Michal Privoznik)
- virDomainNetGetActualType: Return type is virDomainNetType (Michal Privoznik)
- virDomainNetDefParseXML: Realign (Michal Privoznik)
- qemu: command: Don't bother reporting errors in smbios formatters (Peter Krempa)
- qemu: command: Fix up coding style of smbios commandine formatters (Peter Krempa)
- src: Treat PID as signed (Michal Privoznik)
- virsh: Be explicit that vol-resize is an offline operation. (Ivan Baldo)
- testOpenDefault: Rename loop variable (Michal Privoznik)
- qemu_command: add support to use virtio as secondary video device (Pavel Hrdina)
- qemu_command: introduce enum of secondary models for video device (Pavel Hrdina)
- qemu_command: cleanup qemuBuildVideoCommandLine (Pavel Hrdina)
- qemu_command: properly detect which model to use for video device (Pavel Hrdina)
- qemu_capabilities: check for existence of virtio-vga (Pavel Hrdina)
- qemu_command: pass only video device to qemuBuildVgaVideoCommand (Pavel Hrdina)
- qemu_command: separate code for video device via -vga attribute (Pavel Hrdina)
- qemu_process: always check capabilities for video devices (Pavel Hrdina)
- qemu_process: move video validation out of qemu_command (Pavel Hrdina)
- qemu_domain: move video validation out of qemu_command (Pavel Hrdina)
- qemu_capabilities: detect properties for virtio-gpu-device (Pavel Hrdina)
- qemu_capabilities: rename QEMU_CAPS_VIRTIO_GPU_VIRGL (Pavel Hrdina)
- qemu_capabilities: mark QEMU_CAPS_VGA_QXL capability as deprecated (Pavel Hrdina)
- qemu_capabilities: join capabilities for qxl and qxl-vga devices (Pavel Hrdina)
- tests: fix some QXL capability combinations that don't make sense (Pavel Hrdina)
- qemu_command: remove xenner leftover from video device code (Pavel Hrdina)
- qemu_process: move qemuProcessStartValidateGraphics to correct place (Pavel Hrdina)
- virsh: Extract fallback handling in cmdVcpuinfo (Peter Krempa)
- virsh: Extract cpumap formatting in cmdVcpuinfo (Peter Krempa)
- virsh: domain: Fix broken indentation in virshCPUCountCollect (Peter Krempa)
- util: bitmap: Make bitmaps const in virBitmapNewData and virBitmapDataToString (Peter Krempa)
- libvirt-guests: Weaken dependency on libvirtd (Andrea Bolognani)
- qemu: Disable migration with ivshmem (Martin Kletzander)
- conf: Don't complicate find loop (Martin Kletzander)
- Clean timer in virObjectEventStateFlush (Martin Kletzander)
- De-duplicate code into virObjectEventStateCleanupTimer() (Martin Kletzander)
- Reference state when using it as opaque (Martin Kletzander)
- Change virDomainEventState to virObjectLockable (Martin Kletzander)
- qemu: Reuse virDomainDeGetVcpusTopology to calculate total vcpu count (Peter Krempa)
- conf: Sanitize cpu topology numbers (Peter Krempa)
- util: Remove need for local 'nelems' (John Ferlan)
- tests: Prefer virGetLastErrorMessage in testSELinuxLabeling (John Ferlan)
- conf: Remove incorrect check when encoding shmem audit message (John Ferlan)
- network: add dnsmasq option 'dhcp-authoritative' (Martin Wilck)
- Don't update timer if there's none. (Martin Kletzander)
- examples: Distribute all systemtap scripts. (Luyao Huang)
- virlog: Split parsing and setting priority (Erik Skultety)
- virlog: Remove functions that aren't used anywhere anymore (Erik Skultety)
- daemon: Split filter parsing and filter defining (Erik Skultety)
- daemon: Split output parsing and output defining (Erik Skultety)
- virlog: Introduce virLogSetFilters (Erik Skultety)
- virlog: Introduce virLogSetOutputs (Erik Skultety)
- virlog: Introduce virLogParseFilters (Erik Skultety)
- virlog: Introduce virLogParseOutputs (Erik Skultety)
- virlog: Introduce virLogParseFilter (Erik Skultety)
- virlog: Introduce virLogParseOutput (Erik Skultety)
- virlog: Take a special care of syslog when setting new set of log outputs (Erik Skultety)
- virlog: Introduce virLogNewOutputTo* as a replacement for virLogAddOutputTo* (Erik Skultety)
- virlog: Introduce virLogDefineFilters (Erik Skultety)
- virlog: Introduce virLogDefineOutputs (Erik Skultety)
- virlog: Introduce virLogFindOutput (Erik Skultety)
- virlog: Introduce virLogFilterNew (Erik Skultety)
- virlog: Introduce virLogOutputNew (Erik Skultety)
- virlog: Store the journald fd within the output object (Erik Skultety)
- virlog: Rename virLogParse* to virLogParseAndDefine* (Erik Skultety)
- virlog: Remove unused macro IS_SPACE (Erik Skultety)
- virsh domdisplay: introduce '--all' for showing all possible graphical displays (Chen Hanxiao)
- util: Check/ignore already disabled event (John Ferlan)
- util: Clear up some perf error messages (John Ferlan)
- private_syms: add virLogFilterListFree to libvirt_private.syms (Erik Skultety)
- m4: Drop PKG_PROG_PKG_CONFIG compatibility code (Andrea Bolognani)
- docs/Makefile.am: build hvsupport.html earlier (Ján Tomko)
- docs/Makefile.am: remove redundant variables (Ján Tomko)
- qemu: monitor: Simplify construction of chardev backends (Peter Krempa)
- tests: qemumonitorjsontest: Do some actual testing in qemuMonitorJSONTestAttachChardev (Peter Krempa)
- tests: qemumonitorjson: Don't do multiple tests in one virTestRun (Peter Krempa)
- tests: qemu: Add support for testing aguments on monitor verbatim (Peter Krempa)
- conf: Sanitize formatting of UDP chardev source (Peter Krempa)
- conf: Add a formatting macro for all the blkiotune values (John Ferlan)
- qemu: Adjust how supportMaxOptions is used. (John Ferlan)
- qemu: Convert from shorthand to longer throttling names (John Ferlan)
- tests: Add blkdeviotune-max xml2xmltest (John Ferlan)
- include: Update description for <iotune> max params (John Ferlan)
- qemu: allow 32 slots on pcie-expander-bus, not just 1 (Laine Stump)
- vsh: Fix warnings in command line completer (Jiri Denemark)
- qemu: Create helper qemuMonitorJSONGetBlockDevDevice (John Ferlan)
- qemu: Create helper qemuMonitorJSONGetBlockDev (John Ferlan)
- qemu: Create common code for JSON "query-block" call (John Ferlan)
- util: Introduce virJSONValueObjectStealArray (John Ferlan)
- rbd: Move the encryption check in build (John Ferlan)
- rbd: Change to using heap allocated state contexts (John Ferlan)
- rbd: Change virStorageBackendRBDCloseRADOSConn to be static void (John Ferlan)
- qemu: Allow making vcpus hotpluggable with virDomainSetVcpusFlags (Peter Krempa)
- lib: Introduce VIR_DOMAIN_VCPU_HOTPLUGGABLE for virDomainSetVcpusFlags (Peter Krempa)
- Don't drop expired lease while reading custom leases file (Nehal J Wani)
- NSS: Add explicit check to not report expired lease (Nehal J Wani)
- remote: Increase bound limit for virDomainGetBlockIoTune (John Ferlan)
- remote: Fix erroneous usage of constant (John Ferlan)
thanks everybody for your help with the release, be it patch, docs, raising
issues, commenting, reviewing patches, localizations, etc...
Enjoy the release !
Daniel
--
Daniel Veillard | Open Source and Standards, Red Hat
veillard(a)redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | virtualization library http://libvirt.org/
8 years, 1 month
[libvirt] libvirt label qemu process problem
by zhunxun@gmail.com
I found that when using souce code to install libvirt,it labeled qemu process with label "unconfined_u:unconfined_r:svirt_t:s0:c53,c366" instead of
"system_u:system_r:svirt_t:s0:c53,c366",is this a bug??can anyone explain it ??
thanks!
zhunxun(a)gmail.com
8 years, 1 month
[libvirt] [PATCH] docs: remove obsolete library.xen file
by Daniel P. Berrange
The library.xen file contains a braindump of thoughts dating
from the very first days of libvirt, when it was briefly
called libxen. This is not useful and potentially misleading
or confusing for people.
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
cfg.mk | 2 +-
docs/library.xen | 100 -------------------------------------------------------
2 files changed, 1 insertion(+), 101 deletions(-)
delete mode 100644 docs/library.xen
diff --git a/cfg.mk b/cfg.mk
index 9546853..a4305a8 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1220,7 +1220,7 @@ exclude_file_name_regexp--sc_prohibit_mixed_case_abbreviations = \
^src/(vbox/vbox_CAPI.*.h|esx/esx_vi.(c|h)|esx/esx_storage_backend_iscsi.c)$$
exclude_file_name_regexp--sc_prohibit_empty_first_line = \
- ^(README|daemon/THREADS\.txt|src/esx/README|docs/library.xen|tests/(vmwarever|virhostcpu)data/.*)$$
+ ^(README|daemon/THREADS\.txt|src/esx/README|tests/(vmwarever|virhostcpu)data/.*)$$
exclude_file_name_regexp--sc_prohibit_useless_translation = \
^tests/virpolkittest.c
diff --git a/docs/library.xen b/docs/library.xen
deleted file mode 100644
index 2e1b2c5..0000000
--- a/docs/library.xen
+++ /dev/null
@@ -1,100 +0,0 @@
-
- About a libxen library
- ======================
-
-Functional description:
------------------------
-
- Small C library to be able to control Xen Linux guest, i.e.
- provide the following operations for Xen guest domains running Linux
- from domain 0 code linked to the library (running as root):
- - start
- - stop
- - suspend
- - resume
- - monitor
- More advanced features should be allowed as future extensions, but
- are not expected to be provided in first shipment.
-
- Open enough Licence that customers can link their apps to it (LGPL)
-
- Small and contained enough that we can use it as a way to
- provide API and ABI stability in spite if the evolution of Xen
- existing API and hypervisor calls.
-
-The current state of Xen userland:
-----------------------------------
-
- the existing Xen 3.0 userland code is mostly based on tiny C functions
-using direct hypervisor calls (or /proc/xen/ interfaces) and a lot of
-Python code on top driving the hypervisor.
- The C code is relatively hairy, functions with 10 parameters or more
-are not uncommon, and it is very low level usually without comment about
-the function or its arguments. They are usually only called once in the
-whole tree by the python bindings. In essence it looks like the Xen project
-was not implemented with the idea of reusing that part of the code by
-applications.
- Indeed most of the userland code coming with Xen is built on Python,
-like xend the xen daemon running on domain 0 or the xenstored daemon which
-manage the state of the domains launched.
-
-Rebuilding a library ?:
------------------------
-
- Providing a library at the C level to drive domain execution is in a
-very large part a rimplementation of existing code but in a different way
-and somehow with different goals for the code. The existing Licence (GPL)
-makes it uneasy, we can't copy GPL code to put it in a LGPL'ed library,
-and rewriting everything while looking at the Xen code will inevitably
-lead to code similarities especially with this kind of system code. Plus
-we will still need to run xend and probably xenstored to not diverge
-completely from Xen existing code base.
-
-The IBM way:
-------------
-
- Here is supposition about code that I can't instanciate except by looking
-at said code but it looks that IBM also needed a C programmatic API to
-manage the Xen domain definitions. Their solution was to build (Rusty
-Russell did this) an LGPL C API connecting directly to the xenstore
-daemon (./tools/xenstore/*). In a way this is quite more fragile as it depends
-on the whole existing stack of the Xen code, but it isolate the API
-from the implementation details of the current Xen source (API in
-./tools/xenstore/xs.h). The goal seems to be more about testing and controlling
-the xen store daemon, but it shows a different approach to decouple client
-API/ABI from the Xen existing code.
-
-Open question:
----------------
-
- To what extent should libxen be a rewrite or an isolation layer around
-some of the existing code ?
-
- Rewrite:
-
- Pros:
- - avoid the GPL Licence problem potentially more users
- - allow do build a cleaner more stable layer
- - the existing code is frightening
- Cons:
- - awful lot of work debugging very hard
- - will still require existing Xen code to be running
- - splitting interfaces is hard politically and lower the
- Open Source efforts toward the project
-
- Wrappers on top of existing code:
-
- Pros:
- - much smaller code rewrite
- - benefits from the bugfixes injected by other patchers upstream
- Cons:
- - Licence constraint GPL only for apps
- - API/ABI isolation may not be easier in that way
-
- Potentially the API could be implemented as a layer on top of the existing
-libxc C code library and then progressively migrating out the existing
-dependence to Xen code as the interfaces stabilize.
-
-Daniel Veillard <veillard(a)redhat.com>
-
-Mon Oct 24 18:40:19 CEST 2005
--
2.9.3
8 years, 1 month
[libvirt] [PATCH 0/2] Add support for preallocated fd memory
by Jaroslav Safka
Hi,
we would like to introduce 3 new elements source,access and allocation
in memoryBacking element.
<memoryBacking>
<source type="file|anonymous"/>
<access Mode="shared|private"/>
<allocation mode="immediate|ondemand"/>
</memoryBacking>
If allocation is immediate then -mem-prealloc should be added to the qemu commanline.
If source is file then
-object memory-backend-file,id=mem,size=1024M,mem-path=/var/lib/libvirt/qemu -numa node,memdev=mem Should be added to the qemu commandline
If access is shared then the share=on parameter should be added to the memory-backend-file e.g.
-object memory-backend-file,id=mem,size=1024M,mem-path=/var/lib/libvirt/qemu,share=on
Also token memAccess in numa cell is used (if not present, default value
from memoryBacking is used)
Jaroslav Safka (2):
Add support for preallocated fd memory
Add support for preallocated fd memory
docs/schemas/domaincommon.rng | 30 ++++
src/conf/domain_conf.c | 138 +++++++++++++-----
src/conf/domain_conf.h | 33 +++++
src/qemu/qemu_command.c | 156 ++++++++++++++++-----
src/qemu/qemu_command.h | 4 +
.../qemuxml2argv-fd-memory-no-numa-topology.args | 33 +++++
.../qemuxml2argv-fd-memory-no-numa-topology.xml | 91 ++++++++++++
.../qemuxml2argv-fd-memory-numa-topology.args | 33 +++++
.../qemuxml2argv-fd-memory-numa-topology.xml | 94 +++++++++++++
.../qemuxml2argv-fd-memory-numa-topology2.args | 36 +++++
.../qemuxml2argv-fd-memory-numa-topology2.xml | 95 +++++++++++++
.../qemuxml2argv-fd-memory-numa-topology3.args | 39 ++++++
.../qemuxml2argv-fd-memory-numa-topology3.xml | 96 +++++++++++++
.../qemuxml2argv-memorybacking-set.xml | 32 +++++
.../qemuxml2argv-memorybacking-unset.xml | 32 +++++
tests/qemuxml2argvtest.c | 42 ++++++
.../qemuxml2xmlout-memorybacking-set.xml | 40 ++++++
.../qemuxml2xmlout-memorybacking-unset.xml | 40 ++++++
tests/qemuxml2xmltest.c | 3 +
19 files changed, 1001 insertions(+), 66 deletions(-)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-no-numa-topology.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-no-numa-topology.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology2.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology2.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology3.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology3.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-memorybacking-set.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-memorybacking-unset.xml
create mode 100644 tests/qemuxml2xmloutdata/qemuxml2xmlout-memorybacking-set.xml
create mode 100644 tests/qemuxml2xmloutdata/qemuxml2xmlout-memorybacking-unset.xml
--
2.7.4
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
8 years, 1 month
[libvirt] [PATCH] domain_event.c: Fix a typo
by Kothapally Madhu Pavan
Signed-off-by: Kothapally Madhu Pavan <kmp(a)linux.vnet.ibm.com>
---
src/conf/domain_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c
index 63ae9e1..f1249ad 100644
--- a/src/conf/domain_event.c
+++ b/src/conf/domain_event.c
@@ -1839,7 +1839,7 @@ virDomainEventDispatchDefaultFunc(virConnectPtr conn,
virDomainEventJobCompletedPtr ev;
ev = (virDomainEventJobCompletedPtr) event;
- ((virConnectDomainEventJobCompletedCallback) cb)(conn, dom,
+ ((virConnectDomainEventJobCompletedCallback)cb)(conn, dom,
ev->params,
ev->nparams,
cbopaque);
8 years, 1 month