[libvirt] [PATCH v3] Add support for Veritas HyperScale (VxHS) block device protocol

2017-01-19 Thread Ashish Mittal
Sample XML for a vxhs vdisk is as follows: eb90327c-8302-4725-9e1b-4e85ed4dc251 Signed-off-by: Ashish Mittal --- v2 changelog: (1) Added code for JSON parsing of a VxHS vdisk. (2) Added test case to verify JSON parsing. (3) Added missing

[libvirt] [PATCH 1/4] libxl: fix timer configuration

2017-01-19 Thread Jim Fehlig
The current logic around configuring timers in libxl based on virDomainDef object is a bit brain dead. Unsupported timers are silently ignored and tsc is only recognized if it is the first timer specified. Change the logic to reject unsupported timers and honor the tsc timer regardless of its

[libvirt] [PATCH 3/4] xenconfig: add support for more timers

2017-01-19 Thread Jim Fehlig
Currently xenconfig only supports the hpet timer for HVM domains. Include support for tsc timer for both PV and HVM domains. Signed-off-by: Jim Fehlig --- src/xenconfig/xen_common.c | 87 -- 1 file changed, 77 insertions(+), 10

[libvirt] [PATCH 0/4] Xen: Improve support for configurations

2017-01-19 Thread Jim Fehlig
This series fixes some issues wrt configuration in the libxl driver and the xenconfig parser/formatter. See patches 1 and 2 for details on the libxl driver changes, and patch 3 for details on the xenconfig parser/formatter changes. Patch 4 adds some tests to check domXML <-> xl.cfg conversions of

[libvirt] [PATCH 2/4] libxl: support emulate mode of tsc timer

2017-01-19 Thread Jim Fehlig
While at it, use members of libxl_tsc_mode enum instead of literal int values. Signed-off-by: Jim Fehlig --- src/libxl/libxl_conf.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index

[libvirt] [PATCH 4/4] tests: add xlconfig tests for configurations

2017-01-19 Thread Jim Fehlig
Signed-off-by: Jim Fehlig --- tests/xlconfigdata/test-fullvirt-hpet-timer.cfg | 27 ++ tests/xlconfigdata/test-fullvirt-hpet-timer.xml | 64 +++ tests/xlconfigdata/test-fullvirt-multi-timer.cfg | 28 ++

[libvirt] Mirror on Github failed to sync from libvirt.org

2017-01-19 Thread Chen Hanxiao
Dear list,     Mirror on Github:     https://github.com/libvirt/libvirt     did not sync from libvirt.org for almost a month. Regards, - Chen   -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH] remote generator: handle remoteDomainCreateWithFlags()

2017-01-19 Thread Marc Hartmayer
This commit removes the handcrafted code for remoteDomainCreateWithFlags() and lets it auto generate. A little bit of history repeating... Commit 03d813bbcd7b4a183601055006 removed the auto generation of remoteDomainCreateWithFlags() because it was thought that the design flaw in the remote

[libvirt] [PATCH] libxl: fix dom0 autoballooning with Xen 4.8

2017-01-19 Thread Jim Fehlig
xen.git commit 57f8b13c changed several of the libxl memory get/set functions to take 64 bit parameters. The libvirt libxl driver still uses uint32_t variables for these various parameters, which is particularly problematic for the libxl_set_memory_target() function. When dom0 autoballooning is

Re: [libvirt] [Qemu-devel] [PATCH 0/9] i386: query-cpu-model-expansion test script

2017-01-19 Thread Daniel P. Berrange
On Thu, Jan 19, 2017 at 06:21:22PM +0100, David Hildenbrand wrote: > > >> Also think about "query-cpu-model-expansion model=host type=static", > >> which will primarily be used by libvirt on s390x. There is no way to > >> expand this into a static cpu model. Faking anything will just hide errors.

Re: [libvirt] [Qemu-devel] [PATCH 0/9] i386: query-cpu-model-expansion test script

2017-01-19 Thread David Hildenbrand
>> Also think about "query-cpu-model-expansion model=host type=static", >> which will primarily be used by libvirt on s390x. There is no way to >> expand this into a static cpu model. Faking anything will just hide errors. > > Yes, static expansion of host model must always return an error > if

Re: [libvirt] [PATCH v1 0/4] bhyve: rework SATA address allocation

2017-01-19 Thread Roman Bogorodskiy
Roman Bogorodskiy wrote: > Roman Bogorodskiy wrote: > > > This series reworks SATA address allocation in the bhyve driver. > > > > While commit messages provide enough details (I hope), there > > are some general important notes: > > > > - currently, sata devices get PCI addresses and

Re: [libvirt] [PATCH] bhyve: fix interface type handling for argv2xml

2017-01-19 Thread Roman Bogorodskiy
John Ferlan wrote: > > > On 01/06/2017 12:12 PM, Roman Bogorodskiy wrote: > > When generating a domain XML from native command (i.e. via > > the connectDomainXMLFromNative call), we should use > > interface type 'bridge' rather than 'ethernet' because we only > > support bridges at this

[libvirt] [PATCH python 6/7] Removed unused 'converter_type' code from generator

2017-01-19 Thread Daniel P. Berrange
The 'converter_type' data structure and associated code in the generator is inherited from libxml. This has never been used in libvirt, so delete it to simplify the generator. Signed-off-by: Daniel P. Berrange --- generator.py | 15 --- 1 file changed, 15

[libvirt] [PATCH python 2/7] Removed unused 'function_post' code from generator

2017-01-19 Thread Daniel P. Berrange
The 'function_post' data structure and associated code in the generator is inherited from libxml. This has never been used in libvirt, so delete it to simplify the generator. Signed-off-by: Daniel P. Berrange --- generator.py | 28 1 file

[libvirt] [PATCH python 1/7] Removed unused 'reference_keepers' code from generator

2017-01-19 Thread Daniel P. Berrange
The 'reference_keepers' data structure and associated code in the generator is inherited from libxml. This has never been used in libvirt, so delete it to simplify the generator. Signed-off-by: Daniel P. Berrange --- generator.py | 24 1 file

[libvirt] [PATCH python 7/7] Removed unused 'functions_list_exception_test' code from generator

2017-01-19 Thread Daniel P. Berrange
The 'functions_list_exception_test' data structure and associated code in the generator is inherited from libxml. This has never been used in libvirt, so delete it to simplify the generator. Signed-off-by: Daniel P. Berrange --- generator.py | 29

[libvirt] [PATCH python 4/7] Removed unused 'py_return_types' code from generator

2017-01-19 Thread Daniel P. Berrange
The 'py_return_types' data structure and associated code in the generator is inherited from libxml. This has never been used in libvirt, so delete it to simplify the generator. Signed-off-by: Daniel P. Berrange --- generator.py | 13 - 1 file changed, 13

[libvirt] [PATCH python 0/7] Remove unused code from generator

2017-01-19 Thread Daniel P. Berrange
All this functionality is inherited from libxml, but is not required to generate libvirt python bindings. Daniel P. Berrange (7): Removed unused 'reference_keepers' code from generator Removed unused 'function_post' code from generator Removed unused 'foreign_encoding_args' code from

[libvirt] [PATCH python 3/7] Removed unused 'foreign_encoding_args' code from generator

2017-01-19 Thread Daniel P. Berrange
The 'foreign_encoding_args' data structure and associated code in the generator is inherited from libxml. This has never been used in libvirt, so delete it to simplify the generator. Signed-off-by: Daniel P. Berrange --- generator.py | 5 - 1 file changed, 5

[libvirt] [PATCH python 5/7] Removed unused 'classes_ancestor' code from generator

2017-01-19 Thread Daniel P. Berrange
The 'classes_ancestor' data structure and associated code in the generator is inherited from libxml. This has never been used in libvirt, so delete it to simplify the generator. Signed-off-by: Daniel P. Berrange --- generator.py | 56

[libvirt] [PATCH python] Protect against user accidentally calling constructors directly

2017-01-19 Thread Daniel P. Berrange
When using libvirt python you must never call the object constructors directly, as these are expecting to be passed a wrapped C object. For example import libvirt c = libvirt.virConnect("qemu:///system") c.listAllDomains() will mysteriously segfault. With this change the user now gets

Re: [libvirt] [PATCH v2 5/5] storage: vstorage pool documentation and simple test

2017-01-19 Thread Olga Krishtal
On 19/01/17 00:04, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: Signed-off-by: Olga Krishtal --- docs/formatstorage.html.in| 7 --- docs/schemas/storagepool.rng | 21

Re: [libvirt] [PATCH v2 2/5] storage: vstorage empty backend

2017-01-19 Thread Olga Krishtal
On 19/01/17 00:00, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: Added general defenitions for vstorage pool backend definitions Signed-off-by: Olga Krishtal --- include/libvirt/libvirt-storage.h | 1 + po/POTFILES.in

Re: [libvirt] [PATCH v2 3/5] storage: vstorage pool operations

2017-01-19 Thread Olga Krishtal
On 19/01/17 00:04, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: Added create/define/etc pool operations for vstorage backend. The vstorage storage pool looks like netfs ones. Due to this some of pool/volume functions were taken with no changes: refresh pool function. Not

Re: [libvirt] [PATCH v2 4/5] storage: added vstorage pool backend volume functions

2017-01-19 Thread Olga Krishtal
On 19/01/17 00:04, John Ferlan wrote: On 01/17/2017 09:10 AM, Olga Krishtal wrote: Vstorage operates with volumes the same way as directory pool and netfs pool. We use the same functions. Signed-off-by: Olga Krishtal --- src/storage/storage_backend_vstorage.c | 342

Re: [libvirt] The libvirt Release Notes Game, v3.0.0 edition

2017-01-19 Thread intrigeri
Hi, Andrea Bolognani: > Hello everyone, and welcome to the libvirt Release Notes > Game, v3.0.0 edition! Sorry I've hadn't time to take care of my bits in time for the release! I humbly suggest setting an explicit deadline next time, which might help people like me prioritize their work better

Re: [libvirt] libvirt-python bug: custom event loop impl calls ff callback from *Remove(Handle|Timeout)Func

2017-01-19 Thread Wojtek Porczyk
On Thu, Jan 19, 2017 at 11:56:36AM +, Daniel P. Berrange wrote: > On Thu, Jan 19, 2017 at 12:48:11PM +0100, Wojtek Porczyk wrote: > > Hello libvirt-list, (snip) > > > } else { > > > opaque = PyTuple_GetItem(result, 1); > > > ff = PyTuple_GetItem(result, 2); > > > cff =

Re: [libvirt] libvirt-python bug: custom event loop impl calls ff callback from *Remove(Handle|Timeout)Func

2017-01-19 Thread Daniel P. Berrange
On Thu, Jan 19, 2017 at 12:48:11PM +0100, Wojtek Porczyk wrote: > Hello libvirt-list, > > As of current libvirt-python.git, according to libvirt-override.c, if > implementing custom event loop in Python, ff callback is called from > libvirt_virEventRemoveHandleFunc, which is a C glue between >

[libvirt] libvirt-python bug: custom event loop impl calls ff callback from *Remove(Handle|Timeout)Func

2017-01-19 Thread Wojtek Porczyk
Hello libvirt-list, As of current libvirt-python.git, according to libvirt-override.c, if implementing custom event loop in Python, ff callback is called from libvirt_virEventRemoveHandleFunc, which is a C glue between virEventRegisterImpl and actual removeHandle function written in Python: >

Re: [libvirt] [PATCH for 3.0.x] Disable use of namespaces by default

2017-01-19 Thread Daniel P. Berrange
On Thu, Jan 19, 2017 at 11:55:20AM +0100, Guido Günther wrote: > On Wed, Jan 18, 2017 at 10:49:59AM +, Daniel P. Berrange wrote: > > When namespaces are enabled there is currently breakage when > > using disk hotplug and when using AppArmor > > > > Signed-off-by: Daniel P. Berrange

Re: [libvirt] [PATCH for 3.0.x] Disable use of namespaces by default

2017-01-19 Thread Guido Günther
On Wed, Jan 18, 2017 at 10:49:59AM +, Daniel P. Berrange wrote: > When namespaces are enabled there is currently breakage when > using disk hotplug and when using AppArmor > > Signed-off-by: Daniel P. Berrange > --- > > I'm suggesting this for 3.0.x branch - we'll leave

Re: [libvirt] [Qemu-devel] [PATCH 0/9] i386: query-cpu-model-expansion test script

2017-01-19 Thread Eduardo Habkost
On Wed, Jan 18, 2017 at 08:18:40PM +0100, David Hildenbrand wrote: > Am 18.01.2017 um 18:34 schrieb Eduardo Habkost: > > On Wed, Jan 18, 2017 at 12:09:28PM -0500, Jason J. Herne wrote: > >> On 01/18/2017 12:00 PM, Eduardo Habkost wrote: > >>> On Tue, Jan 17, 2017 at 10:22:10AM -0500, Jason J.

Re: [libvirt] [PATCH] storage: avoid use of undefined GLUSTER_CLI variable

2017-01-19 Thread Peter Krempa
On Thu, Jan 19, 2017 at 10:34:22 +, Daniel Berrange wrote: > Previous commit tried to change configure logic such that the > GLUSTER_CLI parameter would always be set: > > commit 9e97c8c0f0f3921d06bac2b92cd094a41373f748 > Author: Peter Krempa > Date: Mon Jan 9

[libvirt] [PATCH] storage: avoid use of undefined GLUSTER_CLI variable

2017-01-19 Thread Daniel P. Berrange
Previous commit tried to change configure logic such that the GLUSTER_CLI parameter would always be set: commit 9e97c8c0f0f3921d06bac2b92cd094a41373f748 Author: Peter Krempa Date: Mon Jan 9 15:56:12 2017 +0100 storage: gluster: Remove build-time dependency on the

Re: [libvirt] [PATCH] Fix segfault in GetIOThreadInfo

2017-01-19 Thread Daniel P. Berrange
On Wed, Jan 18, 2017 at 12:46:53PM -0500, Leonid Podolny wrote: > The pointers calculation included a typo which caused segfaults. > > Signed-off-by: Leonid Podolny > --- > domain.go | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Already responded to your other

Re: [libvirt] [PATCH go] Fix segfault in GetIOThreadInfo

2017-01-19 Thread Daniel P. Berrange
Thanks for your patch, I've applied it to git master Regards, Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o-

Re: [libvirt] [PATCH] qemu: Reset hostModelInfo in virQEMUCapsReset

2017-01-19 Thread Pavel Hrdina
On Wed, Jan 18, 2017 at 04:50:42PM +0100, Jiri Denemark wrote: > Signed-off-by: Jiri Denemark > --- > src/qemu/qemu_capabilities.c | 3 +++ > 1 file changed, 3 insertions(+) ACK Pavel signature.asc Description: Digital signature -- libvir-list mailing list

Re: [libvirt] [PATCH v1.5 2/6] storage: Split utility functions from storage_backend.(ch)

2017-01-19 Thread Peter Krempa
On Wed, Jan 18, 2017 at 18:52:51 -0500, John Ferlan wrote: > > > On 01/18/2017 01:47 PM, Peter Krempa wrote: > > The file became a garbage dump for all kinds of utility functions over > > time. Move them to a separate file so that the files can become a clean > > interface for the storage