libvirt-go-xml.git
19 hours agoAdd support for video 3d acceleration, vram64 & primary head config master
Daniel P. Berrange [Tue, 21 Nov 2017 18:02:54 +0000]
Add support for video 3d acceleration, vram64 & primary head config

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

19 hours agoAdd support for spapr-vio device address format
Daniel P. Berrange [Tue, 21 Nov 2017 17:55:03 +0000]
Add support for spapr-vio device address format

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

19 hours agoAdd support for virtio-serial device address type
Daniel P. Berrange [Tue, 21 Nov 2017 17:52:01 +0000]
Add support for virtio-serial device address type

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

19 hours agoFix typo in bootmenu enable flag
Daniel P. Berrange [Tue, 21 Nov 2017 17:30:28 +0000]
Fix typo in bootmenu enable flag

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

19 hours agoAdd support for balloon autodeflate attribute & stats period
Daniel P. Berrange [Tue, 21 Nov 2017 17:26:39 +0000]
Add support for balloon autodeflate attribute & stats period

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

19 hours agoAdd support for domain ACPI table configuration
Daniel P. Berrange [Tue, 21 Nov 2017 17:20:25 +0000]
Add support for domain ACPI table configuration

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

20 hours agoAdd support for IRQ in ISA device address config
Daniel P. Berrange [Tue, 21 Nov 2017 16:58:49 +0000]
Add support for IRQ in ISA device address config

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

20 hours agoAdd support for CCW device addressing format
Daniel P. Berrange [Tue, 21 Nov 2017 16:40:08 +0000]
Add support for CCW device addressing format

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

20 hours agoAdd support for RNG backend protocol config
Daniel P. Berrange [Tue, 21 Nov 2017 16:25:04 +0000]
Add support for RNG backend protocol config

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

21 hours agoAdd device addressing for RNG devices
Daniel P. Berrange [Tue, 21 Nov 2017 15:53:03 +0000]
Add device addressing for RNG devices

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

21 hours agoAdd support for watchdog device config
Daniel P. Berrange [Tue, 21 Nov 2017 15:51:08 +0000]
Add support for watchdog device config

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

24 hours agoAdd support for PCI address multifunction attr
Daniel P. Berrange [Tue, 21 Nov 2017 12:52:27 +0000]
Add support for PCI address multifunction attr

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

24 hours agoFormat PCI addresses with same hex format as libvirt
Daniel P. Berrange [Tue, 21 Nov 2017 12:49:37 +0000]
Format PCI addresses with same hex format as libvirt

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

25 hours agoAdd support for chardev logfile config
Daniel P. Berrange [Tue, 21 Nov 2017 12:00:08 +0000]
Add support for chardev logfile config

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

25 hours agoAdd support for 'check' attribute on domain CPU config
Daniel P. Berrange [Tue, 21 Nov 2017 11:52:21 +0000]
Add support for 'check' attribute on domain CPU config

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

25 hours agoAdd missing 'omitempty' annotations for various <os> child element attrs
Daniel P. Berrange [Tue, 21 Nov 2017 11:50:39 +0000]
Add missing 'omitempty' annotations for various <os> child element attrs

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

25 hours agoAdd support for virtio-mmio address type
Daniel P. Berrange [Tue, 21 Nov 2017 11:22:07 +0000]
Add support for virtio-mmio address type

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

25 hours agoRename KernelArgs to Cmdline to match the XML element
Daniel P. Berrange [Tue, 21 Nov 2017 11:15:27 +0000]
Rename KernelArgs to Cmdline to match the XML element

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

25 hours agoAdd support for DTB domain configuration
Daniel P. Berrange [Tue, 21 Nov 2017 11:14:53 +0000]
Add support for DTB domain configuration

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

25 hours agoRe-order <os> children to match libvirt ordering
Daniel P. Berrange [Tue, 21 Nov 2017 11:09:24 +0000]
Re-order <os> children to match libvirt ordering

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

26 hours agoChange USB address port into a string
Daniel P. Berrange [Tue, 21 Nov 2017 10:07:42 +0000]
Change USB address port into a string

The USB address port is not a plain integer, rather it is a dot separated
list of integers.

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

27 hours agoAdd support for memory tune configuration
Daniel P. Berrange [Tue, 21 Nov 2017 10:04:33 +0000]
Add support for memory tune configuration

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

42 hours agoAdd domain ID map configuration
Daniel P. Berrange [Mon, 20 Nov 2017 18:10:42 +0000]
Add domain ID map configuration

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

43 hours agoAdd domain keywrap configuration
Daniel P. Berrange [Mon, 20 Nov 2017 18:04:09 +0000]
Add domain keywrap configuration

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

43 hours agoAdd support for iothreadids configuration
Daniel P. Berrange [Mon, 20 Nov 2017 17:59:37 +0000]
Add support for iothreadids configuration

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

43 hours agoAdd numatune domain configuration
Daniel P. Berrange [Mon, 20 Nov 2017 17:53:05 +0000]
Add numatune domain configuration

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

43 hours agoAdd support for iothreads domain config
Daniel P. Berrange [Mon, 20 Nov 2017 17:35:59 +0000]
Add support for iothreads domain config

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

43 hours agoAdd support for domain seclabel config
Daniel P. Berrange [Mon, 20 Nov 2017 16:33:10 +0000]
Add support for domain seclabel config

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

43 hours agoAdd support for domain PM policy
Daniel P. Berrange [Mon, 20 Nov 2017 14:27:16 +0000]
Add support for domain PM policy

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

43 hours agoAdd support for running domain ID value
Daniel P. Berrange [Mon, 20 Nov 2017 14:22:19 +0000]
Add support for running domain ID value

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

43 hours agoAdd support for blkiotune configuration
Daniel P. Berrange [Mon, 20 Nov 2017 14:20:39 +0000]
Add support for blkiotune configuration

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

43 hours agoAdd support for domain title & description
Daniel P. Berrange [Mon, 20 Nov 2017 13:52:12 +0000]
Add support for domain title & description

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

43 hours agoReorder maxMemory & bootloader elements to match libvirt ordering
Daniel P. Berrange [Mon, 20 Nov 2017 17:27:21 +0000]
Reorder maxMemory & bootloader elements to match libvirt ordering

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

4 days agoFix reference to PCIAddress struct
Daniel P. Berrange [Fri, 17 Nov 2017 15:40:28 +0000]
Fix reference to PCIAddress struct

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

4 days agoAdd support for Node Device with basic testing.
Vladik Romanovsky [Mon, 29 May 2017 07:58:52 +0000]
Add support for Node Device with basic testing.

Modified by Daniel Berrange to avoid using interface{} for the
representation of the union. Also fully namespaced the structs.

4 days agoFix formatting in domain test xml
Daniel P. Berrange [Fri, 17 Nov 2017 15:15:27 +0000]
Fix formatting in domain test xml

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

6 days agoAdd support for panic device
zhenwei.pi [Thu, 16 Nov 2017 01:55:26 +0000]
Add support for panic device

Add DomainAddressISA for panic device address.
Add DomainPanic.
Add test code.

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

6 days agoAdd virtualport support to domain XML
Karol Czeryna [Wed, 15 Nov 2017 11:55:36 +0000]
Add virtualport support to domain XML

Working with terraform libvirt plugin I discovered lack of openvswitch
support - but in libvirt-go there is no support for virtualport entry.
This patch adds virtualport support.

6 days agoSupport network backed serial interfaces
Jeroen Simonetti [Tue, 14 Nov 2017 12:57:53 +0000]
Support network backed serial interfaces

Adds network backing for a DomainChardevSource and
protocol selection for serial device of type tcp.

Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>

2 weeks agoAdd support for host paravirt bootloader, used by Xen and bhyve.
Brandon Bergren [Tue, 7 Nov 2017 20:17:41 +0000]
Add support for host paravirt bootloader, used by Xen and bhyve.

2 weeks agoRewrite the way DomainAddress is handled / structured
Daniel P. Berrange [Wed, 1 Nov 2017 16:33:44 +0000]
Rewrite the way DomainAddress is handled / structured

The libvirt XML schema for a domain device address can conceptually be
thought of as a union. The type attribute indicates what sort of address
is being modelled, and in turn determines how other attributes must be
interpreted.

Several of the address types have attributes with the same name, but with
differing semantics. eg. a PCI address has a 'bus' attribute that can be in any
integer base, but is recommended to be base 16, while a USB address has a 'bus'
attribute that must be in base 10. This conflicting requirement creates a
problem when we have a DomainAddress which has flattenned the union.

This API-incompatible change introduces a dedicated address struct for every
type of address, so we can parse / format in the correct base for each attr.

This removes the need to have the special HexUint data type hack previously
introduced.

Where as old code used:

 Address: &DomainAddress{
        Type:     "pci",
        Domain:   &diskAddr.Domain,
        Bus:      &diskAddr.Bus,
        Slot:     &diskAddr.Slot,
        Function: &diskAddr.Function,
 },

The new code requires this:

 Address: &DomainAddress{
        PCI: &DomainAddressPCI{
                Domain:   &diskAddr.Domain,
                Bus:      &diskAddr.Bus,
                Slot:     &diskAddr.Slot,
                Function: &diskAddr.Function,
        },
 },

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

2 weeks agoTest roundtrip of XML parsing / formatting
Daniel P. Berrange [Wed, 1 Nov 2017 16:43:29 +0000]
Test roundtrip of XML parsing / formatting

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

2 weeks agoAdd address support for memory device
zhenwei.pi [Mon, 30 Oct 2017 03:05:13 +0000]
Add address support for memory device

Add Base element for DomainAddress.
Add address element for DomainMemorydev.
Add test code for new DomainMemorydev.

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

NB, handling of hex addresses is broken - it is outputing base 10
instead of base 16. To be fixed in bigger cleanup in following
patches.

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

2 weeks agoAdd support for CPUTune in Domain
Michal Rostecki [Wed, 25 Oct 2017 15:32:32 +0000]
Add support for CPUTune in Domain

Signed-off-by: Victoria Efimova <neverpushthisbutton@yandex.ru>
Signed-off-by: Ivan Shvedunov <ischvedunov@mirantis.com>
Signed-off-by: Miha PleŇ°ko <miha.plesko@xlab.si>
Signed-off-by: Michal Rostecki <michal.rostecki@gmail.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 weeks agoAdd bootp option to NetworkDHCP
Michal Rostecki [Wed, 25 Oct 2017 10:33:09 +0000]
Add bootp option to NetworkDHCP

Support specyfing concrete file and TFTP server
for PXE boot.

Signed-off-by: Michal Rostecki <michal.rostecki@gmail.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 weeks agoAdd support for memory device element
zhenwei.pi [Wed, 11 Oct 2017 02:25:02 +0000]
Add support for memory device element

Support model, access and target.
Add Marshal/Unmarshal mothed for memory device.
Add test code for device list in full domain.

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

8 weeks agoAdd qemu udp unicast tunneling support
Jeroen Simonetti [Tue, 26 Sep 2017 19:30:17 +0000]
Add qemu udp unicast tunneling support

Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>

8 weeks agoAdd support for memoryBacking element
zhenwei.pi [Tue, 26 Sep 2017 02:12:35 +0000]
Add support for memoryBacking element

Support config of hugepages, shared pages, locked pages,
source type, access mode and allocation mode

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

8 weeks agoadd VCPUs support in Domain
zhenwei.pi [Mon, 25 Sep 2017 08:21:14 +0000]
add VCPUs support in Domain

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

2 months agoadd Timer support in DomainClock
Crazykev [Mon, 18 Sep 2017 10:09:53 +0000]
add Timer support in DomainClock

Signed-off-by: Crazykev <crazykev@harmonycloud.cn>

2 months agoadd Numa support to DomainCPU
Crazykev [Mon, 18 Sep 2017 09:36:06 +0000]
add Numa support to DomainCPU

Signed-off-by: Crazykev <crazykev@harmonycloud.cn>

2 months agoAdd support for domain hostdev and test code
zhenwei.pi [Fri, 15 Sep 2017 06:12:44 +0000]
Add support for domain hostdev and test code

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

2 months agoAdding go 1.8 and 1.9 to travis tests
Dean Smith [Wed, 13 Sep 2017 12:57:46 +0000]
Adding go 1.8 and 1.9 to travis tests

2 months agoAdd support for hex values in DomainAddress struct
Anton Kryukov [Wed, 13 Sep 2017 12:57:45 +0000]
Add support for hex values in DomainAddress struct

Add support for hex values in DomainAddress struct
Tests fixed for HexUint
>From PR#13 https://github.com/libvirt/libvirt-go-xml/pull/13
on github by Emreu

@deasmi submitting via mail

4 months agoAdd support for DNS in network
Thomas Hipp [Wed, 12 Jul 2017 13:28:13 +0000]
Add support for DNS in network

Add support for DNS in network, and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

4 months agoAdd support for NAT in network forward
Thomas Hipp [Wed, 12 Jul 2017 11:26:03 +0000]
Add support for NAT in network forward

Add support for NAT in network forward, and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

4 months agoadded possibility to set bandwith parameters to zero
Daniel Kucera [Mon, 26 Jun 2017 13:43:01 +0000]
added possibility to set bandwith parameters to zero

allows to unset limits - otherwise, if value is not
defined in xml, value is not modified when using
DOMAIN_AFFECT_LIVE

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

4 months agoAdd support for domain clock and test code
zhenwei.pi [Mon, 10 Jul 2017 03:35:23 +0000]
Add support for domain clock and test code

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

4 months agoSupport WWN tag in disks
Thomas Hipp [Mon, 10 Jul 2017 14:12:06 +0000]
Support WWN tag in disks

Support the WWN (World Wide Name) tag in disks, and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

4 months agoAdd support for QEMU
Thomas Hipp [Mon, 10 Jul 2017 10:28:23 +0000]
Add support for QEMU

Add support for QEMU, and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

4 months agoAdd support for device RNG
Thomas Hipp [Tue, 4 Jul 2017 08:16:07 +0000]
Add support for device RNG

Add support for device RNG (random number generator), and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

4 months agoadded interface bandwidth parameters
Daniel Kucera [Mon, 26 Jun 2017 12:01:13 +0000]
added interface bandwidth parameters

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

4 months agoadd append attr for chardev
zhenwei.pi [Mon, 26 Jun 2017 02:09:23 +0000]
add append attr for chardev

4 months agosupport virtualport for interface and add test code
ZhenweiPi [Mon, 26 Jun 2017 01:08:03 +0000]
support virtualport for interface and add test code

4 months agoadded xmlname to DomainGraphic to marshal correctly
Daniel Kucera [Thu, 22 Jun 2017 14:18:38 +0000]
added xmlname to DomainGraphic to marshal correctly

The <graphics> element can also be used as a document root
when dynamically updating graphics config in libvirt.

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

5 months agoadded discard attr to domain disk driver
Daniel Kucera [Thu, 22 Jun 2017 13:05:43 +0000]
added discard attr to domain disk driver

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

5 months agoadded domain disk iotune element
Daniel Kucera [Thu, 22 Jun 2017 12:29:04 +0000]
added domain disk iotune element

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

5 months agoadded dev attribute to interface source
Daniel Kucera [Thu, 22 Jun 2017 11:57:06 +0000]
added dev attribute to interface source

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

5 months agoGeneralize DomainInterfaceBoot to DomainDeviceBoot and support disks
zhenwei.pi [Tue, 6 Jun 2017 05:51:30 +0000]
Generalize DomainInterfaceBoot to DomainDeviceBoot and support disks

Allow disks to have a boot order index specified by renaming
the DomainInterfaceBoot struct to DomainDeviceBoot.

5 months agoReorder Domain field to match libvirt XML order
Daniel P. Berrange [Wed, 7 Jun 2017 10:46:39 +0000]
Reorder Domain field to match libvirt XML order

Reoder the Domain object fields so that the elements in the
generated XML match the order in which libvirt generates
XML. Semantically this makes no difference, but it makes it
easier to compare XML documents if ordering is consistent.

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

5 months agoadd emulator supported
zhenwei.pi [Sat, 3 Jun 2017 01:30:00 +0000]
add emulator supported

5 months agoAdd ability to marshal/unmarshal individual devices
Daniel P. Berrange [Mon, 5 Jun 2017 13:02:21 +0000]
Add ability to marshal/unmarshal individual devices

The structs for individual device types need to be usable both as part
of the domain device list, and as top level XML documents on their own.
The latter is needed for device hotplug APIs. Thus all the devices must
have a XMLName tag present, and provide Marshal/Unmarshal methods. In
doing this, define a "Document" interface which declares the Marhsal/
Unmarhsal method contracts.

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

5 months agoAdd top level elements for console/serial/channel
Daniel P. Berrange [Mon, 5 Jun 2017 12:46:08 +0000]
Add top level elements for console/serial/channel

We shouldn't use the same top level DomainChardev for console/serial/channel
devices as they should have separate target element schemas.

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

5 months agoAdd support for domain input address
zhenwei.pi [Thu, 1 Jun 2017 09:49:59 +0000]
Add support for domain input address

5 months agoAdd support for device sound
zhenwei.pi [Thu, 1 Jun 2017 02:58:06 +0000]
Add support for device sound

5 months agoAdd support for domain chardev target port
Daniel P. Berrange [Wed, 31 May 2017 13:59:42 +0000]
Add support for domain chardev target port

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

5 months agoAdd support for memory balloon object
Daniel P. Berrange [Wed, 31 May 2017 13:56:47 +0000]
Add support for memory balloon object

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

5 months agoAdd address element to disk, video, filesystem and iface objects
Daniel P. Berrange [Wed, 31 May 2017 13:43:37 +0000]
Add address element to disk, video, filesystem and iface objects

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

5 months agoAdd support for domain disk error policy, readonly & shareable attrs
Daniel P. Berrange [Wed, 31 May 2017 13:04:01 +0000]
Add support for domain disk error policy, readonly & shareable attrs

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

5 months agoFix mistake in location of disk cache/io attributes
Daniel P. Berrange [Wed, 31 May 2017 12:58:28 +0000]
Fix mistake in location of disk cache/io attributes

The disk cache/io attributes are part of the <driver> not the
top level <disk> element

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

5 months agoExpand domain controller to support model & address info
zhenwei.pi [Wed, 31 May 2017 12:50:51 +0000]
Expand domain controller to support model & address info

5 months agoAdd support for disk cache & io attributes
zhenwei.pi [Wed, 31 May 2017 12:50:21 +0000]
Add support for disk cache & io attributes

5 months agoAdd support for domain disk serial attribute
Daniel P. Berrange [Wed, 31 May 2017 12:45:31 +0000]
Add support for domain disk serial attribute

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

5 months agoAdd extra domain video device attributes
Daniel P. Berrange [Wed, 31 May 2017 12:43:00 +0000]
Add extra domain video device attributes

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

5 months agoFix various domain attributes to use uint instead of int
Daniel P. Berrange [Wed, 31 May 2017 12:38:44 +0000]
Fix various domain attributes to use uint instead of int

Change all the domain attributes which do not accept negative
numbers to use 'uint' instead of 'int'

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

6 months agoadd support for domain features
Ryan Goodfellow [Sat, 22 Apr 2017 21:53:48 +0000]
add support for domain features

This commit adds support for domain features. It does so by introducing
a new family of types DomainFeature*. The aggregate type
DomainFeatureList has been added to the Domain type to plumb in the new
type family. Testing has also been added in domain_test.go

6 months agoAdd Pool and Volume fields to DomainDiskSource
Ian Campbell [Fri, 28 Apr 2017 13:32:01 +0000]
Add Pool and Volume fields to DomainDiskSource

This allows one to construct disks/cdroms from volumes such as:

<disk type='volume' device='cdrom'>
<driver name='qemu' type='raw'/>
<source pool='default' volume='myvolume'/>
<backingStore/>
<target dev='sdc' bus='sata'/>
<readonly/>
<alias name='sata0-0-2'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>

via:

&libvirtxml.DomainDisk{
Type:   "volume",
Device: "cdrom",
Source: &libvirtxml.DomainDiskSource{
Pool:   "default",
Volume: "myvolume",
},
Target: &libvirtxml.DomainDiskTarget{
Dev: "sdc",
Bus: "sata",
},
}

Signed-off-by: Ian Campbell <ian.campbell@docker.com>

6 months agoSupport for filesystem devices
Ryan Goodfellow [Tue, 18 Apr 2017 22:01:18 +0000]
Support for filesystem devices

This commit adds filesystem device support. A new family of types
DomainFilesystem* are introduced and plumbed into the DomainDeviceList
struct.

Testing has also been included.

8 months agoAdd some omitempty annotations for disk config
Daniel P. Berrange [Thu, 23 Feb 2017 16:21:28 +0000]
Add some omitempty annotations for disk config

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

9 months agodomain: devices: Add channels structs
James Shubin [Tue, 31 Jan 2017 23:06:30 +0000]
domain: devices: Add channels structs

This adds the channels structs so that qemu guest agent state and other
related fields can be queried.

9 months agoAdd support for disk auth config
Daniel P. Berrange [Wed, 1 Feb 2017 17:01:14 +0000]
Add support for disk auth config

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

9 months agoExpand domain disk source definition to cover network disks
Daniel P. Berrange [Wed, 1 Feb 2017 15:30:35 +0000]
Expand domain disk source definition to cover network disks

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

9 months agoInitial implemention for Network mappings
Lian Duan [Sun, 29 Jan 2017 16:40:46 +0000]
Initial implemention for Network mappings

9 months agoExtend interface device definitions
Vincent Bernat [Thu, 26 Jan 2017 18:30:55 +0000]
Extend interface device definitions

This is still incomplete but most of the useful things are
here. Examples are taken from libvirt samples.

9 months agoAdd DomainCPU mappings
Lian Duan [Fri, 27 Jan 2017 21:57:56 +0000]
Add DomainCPU mappings

9 months agoAdd mapping for <vcpu></vcpu> for domain
Lian Duan [Fri, 27 Jan 2017 19:14:14 +0000]
Add mapping for <vcpu></vcpu> for domain

9 months agoAdd omitempty for DomainOSType's Arch and Machine
Lian Duan [Fri, 27 Jan 2017 20:04:08 +0000]
Add omitempty for DomainOSType's Arch and Machine

9 months agoFix mapping for DomainInterfaceMac & DomainInterfaceModel
Lian Duan [Fri, 27 Jan 2017 18:12:22 +0000]
Fix mapping for DomainInterfaceMac & DomainInterfaceModel

10 months agoMake NUMA memory sizes uint64
Daniel P. Berrange [Fri, 20 Jan 2017 13:19:51 +0000]
Make NUMA memory sizes uint64

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

10 months agoThere is only a single <memory> element per NUMA node
Daniel P. Berrange [Fri, 20 Jan 2017 13:16:42 +0000]
There is only a single <memory> element per NUMA node

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