libvirt-go.git
43 hours agoAdd sparse stream API support master
Daniel P. Berrange [Fri, 26 May 2017 16:37:26 +0000]
Add sparse stream API support

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

43 hours agoAdd storage vol upload/download flag constants
Daniel P. Berrange [Fri, 26 May 2017 16:28:08 +0000]
Add storage vol upload/download flag constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

45 hours agoAdd new guest shutdown constants.
Daniel P. Berrange [Fri, 26 May 2017 15:02:09 +0000]
Add new guest shutdown constants.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

45 hours agoAdd new node device filter constants for mdevs
Daniel P. Berrange [Fri, 26 May 2017 14:56:42 +0000]
Add new node device filter constants for mdevs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 weeks agoAdd missing unsafe.Pointer() casts for Go 1.5 compat
Daniel P. Berrange [Mon, 8 May 2017 16:55:52 +0000]
Add missing unsafe.Pointer() casts for Go 1.5 compat

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 weeks agoExtend API test suite to cover LXC & QEMU specific APIs v3.3.0
Daniel P. Berrange [Fri, 28 Apr 2017 11:16:10 +0000]
Extend API test suite to cover LXC & QEMU specific APIs

2 weeks agoAdd binding for virDomainLXCEnterCGroup
Daniel P. Berrange [Mon, 8 May 2017 16:18:33 +0000]
Add binding for virDomainLXCEnterCGroup

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 weeks agoFix mistakes in compat functions calling themselves
Daniel P. Berrange [Mon, 8 May 2017 16:18:12 +0000]
Fix mistakes in compat functions calling themselves

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 weeks agoAdd binding for virDomainLxcEnterSecurityLabel
Daniel P. Berrange [Mon, 8 May 2017 10:53:04 +0000]
Add binding for virDomainLxcEnterSecurityLabel

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoAdd support for LXC namespace APIs
Daniel P. Berrange [Fri, 28 Apr 2017 11:16:05 +0000]
Add support for LXC namespace APIs

4 weeks agoInclude compat header from cfuncs
Daniel P. Berrange [Fri, 28 Apr 2017 12:37:51 +0000]
Include compat header from cfuncs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoFix backcompat for monitor event constants
Daniel P. Berrange [Fri, 28 Apr 2017 12:07:50 +0000]
Fix backcompat for monitor event constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoFix back compat for monitor events API
Daniel P. Berrange [Fri, 28 Apr 2017 12:06:29 +0000]
Fix back compat for monitor events API

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoAdd job operation constants
Daniel P. Berrange [Fri, 28 Apr 2017 11:48:55 +0000]
Add job operation constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoAdd support for virConnectDomainQemuMonitorEvent APIs
Daniel P. Berrange [Wed, 26 Apr 2017 15:53:33 +0000]
Add support for virConnectDomainQemuMonitorEvent APIs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoAdd binding for virDomainQemuAttach
Daniel P. Berrange [Wed, 26 Apr 2017 15:02:53 +0000]
Add binding for virDomainQemuAttach

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoSplit QEMU code into a separate file for conditional build
Daniel P. Berrange [Tue, 25 Apr 2017 20:26:33 +0000]
Split QEMU code into a separate file for conditional build

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoAdd compat for VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN constant
Daniel P. Berrange [Tue, 25 Apr 2017 15:20:26 +0000]
Add compat for VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoAdd note about development status
Daniel P. Berrange [Tue, 25 Apr 2017 14:48:29 +0000]
Add note about development status

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoAdd binding for virDomainQemuAgentCommand
davei [Tue, 25 Apr 2017 14:22:23 +0000]
Add binding for virDomainQemuAgentCommand

6 weeks agovirDomainListGetStats accepts a nil terminated array
Muhamad Azmy [Tue, 11 Apr 2017 12:04:18 +0000]
virDomainListGetStats accepts a nil terminated array

virDomainListGetStats expectes a nil terminates array
hence we need to allocate the `cdoms` with len() + 1
to have a nil element at the end, otherwise this will
occasionally SIGFAULT

6 weeks agoFix data type for ListAllInterfaceAddresses parameter
Daniel P. Berrange [Tue, 11 Apr 2017 16:10:09 +0000]
Fix data type for ListAllInterfaceAddresses parameter

We have a constant defined for the interface address source, so should
use that data type, not uint.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 weeks agoFix handling of domain interface list data
Daniel P. Berrange [Tue, 11 Apr 2017 16:07:59 +0000]
Fix handling of domain interface list data

The approach to handling the domain interface list data was broken and
only worked by luck when there was a single interface, with a single
address. If there were multiple interfaces or multiple addresses a
Go exception would result.

Rewrite it to use pointer arithmetic instead of trying to turn the C
array into a go slice

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 weeks agoAdd compat for BLOCK_THRESHOLD event v3.2.0
Daniel P. Berrange [Mon, 3 Apr 2017 16:00:22 +0000]
Add compat for BLOCK_THRESHOLD event

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 weeks agoAdd virConnectDomainEventBlockThresholdCallback binding
Daniel P. Berrange [Mon, 3 Apr 2017 15:28:58 +0000]
Add virConnectDomainEventBlockThresholdCallback binding

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 weeks agoAdd virDomainSetBlockThreshold API binding
Daniel P. Berrange [Mon, 3 Apr 2017 15:12:42 +0000]
Add virDomainSetBlockThreshold API binding

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 weeks agoMove perf constants to right place in domain_compat.h
Daniel P. Berrange [Mon, 3 Apr 2017 14:55:26 +0000]
Move perf constants to right place in domain_compat.h

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 weeks agoAdd VIR_MIGRATE_TLS constant
Daniel P. Berrange [Mon, 3 Apr 2017 14:23:21 +0000]
Add VIR_MIGRATE_TLS constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 weeks agoPass NULL to virDomainOpenConsole if dvename is an empty string
Roman Mohr [Mon, 3 Apr 2017 07:30:48 +0000]
Pass NULL to virDomainOpenConsole if dvename is an empty string

In order to let libvirt select the first available serial console, NULL
needs to be passed in. If an empty string is passsed in, libvirt tries
to find a console with that name instead.

2 months agoFix encoding of typed parameters which are not set
Daniel P. Berrange [Wed, 8 Mar 2017 11:51:50 +0000]
Fix encoding of typed parameters which are not set

Fixes bug #9

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoFix typos in VIR_PERF constants from previous commit
Daniel P. Berrange [Tue, 7 Mar 2017 23:08:16 +0000]
Fix typos in VIR_PERF constants from previous commit

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoAdd support for perf events
Nitesh Konkar [Fri, 24 Feb 2017 12:12:53 +0000]
Add support for perf events

Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>

2 months agoClarify error message when a function is not implemented v3.1.0
Daniel P. Berrange [Wed, 1 Mar 2017 17:40:41 +0000]
Clarify error message when a function is not implemented

The current message reported when Go code is disabled due
to libvirt missing a function is very similar to message
reported when libvirtd doesn't support a function.

Clarify it so it is clear when the missing feature is in
the Go language binding, as opposed to libvirtd.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agodomain.go: wrong calculation of bitmask in PinVcpuFlags()
Leonid Podolny [Tue, 28 Feb 2017 00:23:12 +0000]
domain.go: wrong calculation of bitmask in PinVcpuFlags()

3 months agoAdd virDomainSetVcpu API binding
Daniel P. Berrange [Thu, 23 Feb 2017 11:39:57 +0000]
Add virDomainSetVcpu API binding

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd CONNECT_LIST_NODE_DEVICES_CAP_DRM constant
Daniel P. Berrange [Mon, 20 Feb 2017 17:10:40 +0000]
Add CONNECT_LIST_NODE_DEVICES_CAP_DRM constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agodomain.go: construct cpumaps correctly for CPU pinning verbs
Leonid Podolny [Wed, 15 Feb 2017 09:49:40 +0000]
domain.go: construct cpumaps correctly for CPU pinning verbs

In PinEmulator() and PinIOThread() there is an identical code that
converts []bool into a bitmask. It calculates the location in the
bitmask and then sets it always to 1, instead of looking at the
actual bool value.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoOnly set ptr to nil for Connect object when free'ing
Daniel P. Berrange [Tue, 14 Feb 2017 14:51:47 +0000]
Only set ptr to nil for Connect object when free'ing

The virXXXXFree() methods do not in fact return the remaining
reference count for the object - they always return 0. So we
cannot set 'ptr' to nil when calling Free() on a Go level object.

The virConnectClose() method, however, is an exception as it
returns 1 if references remain, 0 if no references remain.
So we should be setting 'ptr' to nil for the Connect object.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoOnly clear internal pointer if refcount hit zero
Daniel P. Berrange [Thu, 9 Feb 2017 17:22:34 +0000]
Only clear internal pointer if refcount hit zero

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoExpose the 'Ref' methods on objects
Daniel P. Berrange [Thu, 9 Feb 2017 13:48:17 +0000]
Expose the 'Ref' methods on objects

Since Go code is responsible for manually releasing the C object
by calling Free, there is a need for acquire extra references
to cope with the scenario that multiple go threads are using the
same object

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd support for VSTORAGE constant
Daniel P. Berrange [Mon, 30 Jan 2017 16:08:14 +0000]
Add support for VSTORAGE constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoSet metadata on live instance during tests
Daniel P. Berrange [Wed, 25 Jan 2017 14:22:39 +0000]
Set metadata on live instance during tests

Older versions of libvirt were buggy if trying to set metadata
on inactive guests in the test driver.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoFix ability to clear metadata
Daniel P. Berrange [Wed, 25 Jan 2017 13:56:58 +0000]
Fix ability to clear metadata

We need to turn "" into NULL when calling virDomainSetMetadata
to ensure it can be cleared

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoFix array pointer access in GetCPUStats method
Daniel P. Berrange [Mon, 23 Jan 2017 09:47:41 +0000]
Fix array pointer access in GetCPUStats method

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoFix segfault in Connect.GetMemoryStats
Matvey Kruglov [Sun, 22 Jan 2017 22:01:10 +0000]
Fix segfault in Connect.GetMemoryStats

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoFix segfault in GetIOThreadInfo v3.0.0
Leonid Podolny [Wed, 18 Jan 2017 16:49:01 +0000]
Fix segfault in GetIOThreadInfo

The pointers calculation included a typo which caused segfaults.

Signed-off-by: Leonid Podolny <leonid@podolny.net>

4 months agoRevert "Add support for perf cache_l1d event"
Daniel P. Berrange [Mon, 16 Jan 2017 17:26:24 +0000]
Revert "Add support for perf cache_l1d event"

This reverts commit 73c68e67965b65c920e93535bdef7020d79baf6c.

The corresponding libvirt public API was reverted

4 months agoAdd support for perf cache_l1d event
Daniel P. Berrange [Tue, 10 Jan 2017 10:47:37 +0000]
Add support for perf cache_l1d event

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoFix check version for secret events API
Daniel P. Berrange [Tue, 10 Jan 2017 10:31:45 +0000]
Fix check version for secret events API

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdd binding for secret event APIs
Daniel P. Berrange [Mon, 9 Jan 2017 17:46:19 +0000]
Add binding for secret event APIs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdd missing binding for storage pool refresh event
Daniel P. Berrange [Mon, 9 Jan 2017 17:45:43 +0000]
Add missing binding for storage pool refresh event

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoAdd support for domain metadata change event
Daniel P. Berrange [Mon, 9 Jan 2017 17:27:58 +0000]
Add support for domain metadata change event

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoRevert "Fix package name in docs s/libvirt/libvirt-go/"
Daniel P. Berrange [Thu, 5 Jan 2017 12:46:39 +0000]
Revert "Fix package name in docs s/libvirt/libvirt-go/"

This reverts commit a5bd97a14c35a49efe3690d0a5d7751626ddc5bc.

If they differ, the package name should indeed be the Go package
name, not the git repo base name.

4 months agoFix package name in docs s/libvirt/libvirt-go/
Daniel P. Berrange [Thu, 5 Jan 2017 12:39:47 +0000]
Fix package name in docs s/libvirt/libvirt-go/

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoChange SetVcpus/SetVcpusFlags to use uint
Daniel P. Berrange [Tue, 3 Jan 2017 14:51:38 +0000]
Change SetVcpus/SetVcpusFlags to use uint

The underlying C API uses an 'unsigned int', so the Go layer
should use 'uint' not 'uint16', which would artifically limit
the binding.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd support for registering an event loop implementation
Daniel P. Berrange [Wed, 21 Dec 2016 11:29:58 +0000]
Add support for registering an event loop implementation

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd support for virStorageVolGetInfoFlags & associated constants
Daniel P. Berrange [Wed, 21 Dec 2016 11:29:06 +0000]
Add support for virStorageVolGetInfoFlags & associated constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoFix connect callback to take *Connect instead of Connect
Daniel P. Berrange [Tue, 20 Dec 2016 17:37:01 +0000]
Fix connect callback to take *Connect instead of Connect

All methods should take pointers to the main objects

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoEnsure we set parameter type correctly
Daniel P. Berrange [Tue, 20 Dec 2016 14:33:28 +0000]
Ensure we set parameter type correctly

When allocating a new virTypedParameter array we were forgetting
to initialize the parameter type, causing non-deterministic
failures

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoUse a fixed domain name in integration tests
Daniel P. Berrange [Tue, 20 Dec 2016 12:57:18 +0000]
Use a fixed domain name in integration tests

Instead of generating a random domain name based on the time,
use a fixed domain name, and add some logic to cleanup if
previous invokation left the domain running.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoFix leak of defined QEMU guests
Daniel P. Berrange [Tue, 20 Dec 2016 12:46:29 +0000]
Fix leak of defined QEMU guests

Some integration tests forgot to undefine the QEMU guest

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd test case to validate BlockCopy function
Daniel P. Berrange [Tue, 20 Dec 2016 12:22:03 +0000]
Add test case to validate BlockCopy function

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoRemove blacklist entries for some funcs we autodetect
Daniel P. Berrange [Tue, 20 Dec 2016 11:40:24 +0000]
Remove blacklist entries for some funcs we autodetect

We now auto-detect usage with a _cgo suffix, so can stop
blacklisting event register funcs.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd event loop handler callback support
Daniel P. Berrange [Tue, 20 Dec 2016 11:38:37 +0000]
Add event loop handler callback support

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd stream event callback support
Daniel P. Berrange [Tue, 20 Dec 2016 09:56:27 +0000]
Add stream event callback support

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoRename CloseConnection to simply Close
Daniel P. Berrange [Mon, 19 Dec 2016 15:47:20 +0000]
Rename CloseConnection to simply Close

The go method names should match the C library names in general.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd support for new perf event constants
Daniel P. Berrange [Fri, 16 Dec 2016 12:01:53 +0000]
Add support for new perf event constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoTweak formatting of links to git repos to use list
Daniel P. Berrange [Fri, 16 Dec 2016 11:56:42 +0000]
Tweak formatting of links to git repos to use list

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAlso look for _cgo suffix when checking API support
Daniel P. Berrange [Fri, 16 Dec 2016 11:56:11 +0000]
Also look for _cgo suffix when checking API support

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd block quotes to README.md example snippets
Daniel P. Berrange [Fri, 16 Dec 2016 11:20:55 +0000]
Add block quotes to README.md example snippets

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd stream sendall/recvall functions
Daniel P. Berrange [Thu, 15 Dec 2016 13:19:35 +0000]
Add stream sendall/recvall functions

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoRename stream Close to Finish to match the C API
Daniel P. Berrange [Thu, 15 Dec 2016 12:05:01 +0000]
Rename stream Close to Finish to match the C API

The Go binding seeks to match C API naming in general.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoRename stream Read/Write to Recv/Send to match the C API
Daniel P. Berrange [Thu, 15 Dec 2016 12:05:01 +0000]
Rename stream Read/Write to Recv/Send to match the C API

The Go binding seeks to match C API naming in general.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoUse appropriate flags enum type in all methods
Daniel P. Berrange [Wed, 14 Dec 2016 15:32:10 +0000]
Use appropriate flags enum type in all methods

A number of methods were still using flags uint32, instead of the
strongly typed enum type.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoA blank line is required after build conditional tags
Daniel P. Berrange [Wed, 14 Dec 2016 14:19:26 +0000]
A blank line is required after build conditional tags

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoFix some docs typos
Daniel P. Berrange [Wed, 14 Dec 2016 14:11:02 +0000]
Fix some docs typos

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd new constants from 3.0.0 release
Daniel P. Berrange [Wed, 14 Dec 2016 12:10:53 +0000]
Add new constants from 3.0.0 release

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd some initial package level docs to introduce the binding
Daniel P. Berrange [Wed, 14 Dec 2016 11:53:36 +0000]
Add some initial package level docs to introduce the binding

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoUse /* ... */ instead of // for license comments
Daniel P. Berrange [Wed, 14 Dec 2016 11:12:33 +0000]
Use /* ... */ instead of // for license comments

Using // for license comments means they end up processed by
godoc, so use /* ... */ instead.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoFix API test to detect Compat symbols and other misc tweaks
Daniel P. Berrange [Wed, 14 Dec 2016 09:48:41 +0000]
Fix API test to detect Compat symbols and other misc tweaks

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoExpand README.md to describe contribution and testing more
Daniel P. Berrange [Wed, 14 Dec 2016 09:46:46 +0000]
Expand README.md to describe contribution and testing more

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoRename connection_test.go to connect_test.go
Daniel P. Berrange [Wed, 14 Dec 2016 09:34:25 +0000]
Rename connection_test.go to connect_test.go

Make the test name match the base filename.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoStandardize on naming of header file ifdef constants
Daniel P. Berrange [Wed, 14 Dec 2016 09:34:02 +0000]
Standardize on naming of header file ifdef constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd license header / copyright boilerplate to every file
Daniel P. Berrange [Wed, 14 Dec 2016 09:30:47 +0000]
Add license header / copyright boilerplate to every file

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd test case to validate API coverage level
Daniel P. Berrange [Mon, 28 Nov 2016 17:09:22 +0000]
Add test case to validate API coverage level

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoExpose VIR_DOMAIN_SEND_KEY_MAX_KEYS constant
Daniel P. Berrange [Tue, 13 Dec 2016 16:17:10 +0000]
Expose VIR_DOMAIN_SEND_KEY_MAX_KEYS constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd unsafe.Pointer casts needed for go 1.5 compat
Daniel P. Berrange [Tue, 13 Dec 2016 16:54:41 +0000]
Add unsafe.Pointer casts needed for go 1.5 compat

Go 1.5 was not as good as determining type compatibility
for C API invokation with pointers, so needs to extra
casts.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoBlacklist testing of libvirt versions with close callback refcount bug
Daniel P. Berrange [Tue, 13 Dec 2016 16:45:30 +0000]
Blacklist testing of libvirt versions with close callback refcount bug

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAvoid use of CBytes API
Daniel P. Berrange [Tue, 13 Dec 2016 16:11:06 +0000]
Avoid use of CBytes API

The CBytes API was new in Go 1.7, so avoid it in order to maintain
compat with Go 1.5/1.6

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoMake some tests more robust wrt building with old libvirt
Daniel P. Berrange [Tue, 13 Dec 2016 16:04:22 +0000]
Make some tests more robust wrt building with old libvirt

The GetAllDomainStats and ListAllInterfaceAddresses methods
are only available with certain libvirt versions, so we must
cope with an error being raised.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoMake CPU stats test more robust
Daniel P. Berrange [Tue, 13 Dec 2016 16:03:04 +0000]
Make CPU stats test more robust

Not all environments setup cgroups, so we can't rely on being
able get domain CPU stats for LXC guests.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoFix leak of domain handles in several tests
Daniel P. Berrange [Tue, 13 Dec 2016 15:59:59 +0000]
Fix leak of domain handles in several tests

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoMake interface stats test more robust
Daniel P. Berrange [Tue, 13 Dec 2016 15:59:19 +0000]
Make interface stats test more robust

Check whether the 'default' virtual network exists and is
running before trying to use it.

Use a fixed vnet name to avoid clashes with other running
VMs on the host (if any).

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoSkip screenshot test on 2.5.0 libvirt
Daniel P. Berrange [Tue, 13 Dec 2016 15:49:58 +0000]
Skip screenshot test on 2.5.0 libvirt

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoDon't rely on pkg-config for libvirt-qemu
Daniel P. Berrange [Tue, 13 Dec 2016 15:19:40 +0000]
Don't rely on pkg-config for libvirt-qemu

The libvirt-qemu pkg-config file was only installed from
version 2.6.0 onwards.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoUpdate readme links for docs & travis ci
Daniel P. Berrange [Tue, 13 Dec 2016 15:12:59 +0000]
Update readme links for docs & travis ci

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoUpdate travis config to reflect current codebase setup
Daniel P. Berrange [Tue, 13 Dec 2016 15:05:55 +0000]
Update travis config to reflect current codebase setup

Remove build tags since they're no longer used, but add
tag to turn on integration test

Test oldest, newest and some middle versions

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd compat for 1.2.0 release
Daniel P. Berrange [Mon, 12 Dec 2016 15:33:46 +0000]
Add compat for 1.2.0 release

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd compat for 1.2.1 release
Daniel P. Berrange [Mon, 12 Dec 2016 15:33:46 +0000]
Add compat for 1.2.1 release

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd compat for 1.2.2 release
Daniel P. Berrange [Mon, 12 Dec 2016 15:33:46 +0000]
Add compat for 1.2.2 release

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>