[libvirt] [PATCH go-xml] Add support for panic device

2017-11-15 Thread zhenwei.pi
Add DomainAddressISA for panic device address. Add DomainPanic. Add test code. Signed-off-by: zhenwei.pi --- domain.go | 38 ++ domain_test.go | 28 +--- 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/domain.go b

[libvirt] [PATCH go-xml] Add support for panic device

2017-11-14 Thread zhenwei.pi
Add DomainAddressISA for panic device address. Add DomainPanic. Add test code. Signed-off-by: zhenwei.pi --- domain.go | 38 ++ domain_test.go | 28 +--- 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/domain.go b

[libvirt] [PATCH go-xml] Add address support for memory device

2017-10-29 Thread zhenwei.pi
Add Base element for DomainAddress. Add address element for DomainMemorydev. Add test code for new DomainMemorydev. Signed-off-by: zhenwei.pi --- domain.go | 2 ++ domain_test.go | 9 + 2 files changed, 11 insertions(+) diff --git a/domain.go b/domain.go index bacab11..3d9404f

[libvirt] [PATCH go-xml] Add address support for memory device

2017-10-26 Thread zhenwei.pi
Add Base element for DomainAddress. Add address element for DomainMemorydev. Add test code for new DomainMemorydev. Signed-off-by: zhenwei.pi --- domain.go | 2 ++ domain_test.go | 9 + 2 files changed, 11 insertions(+) diff --git a/domain.go b/domain.go index bacab11..3d9404f

[libvirt] [PATCH go-xml] let disk source omitempty for ejecting cdrom/floppy

2017-10-16 Thread zhenwei.pi
Signed-off-by: zhenwei.pi --- domain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain.go b/domain.go index bacab11..f9d567d 100644 --- a/domain.go +++ b/domain.go @@ -117,7 +117,7 @@ type DomainDisk struct { Snapshot string `xml:"snapshot

[libvirt] [PATCH go-xml] Add support for memory device element

2017-10-10 Thread zhenwei.pi
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 --- domain.go | 29 + domain_test.go | 45 + 2 files changed, 74

[libvirt] [PATCH go-xml] Add support for memory device element

2017-09-29 Thread zhenwei.pi
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 --- domain.go | 29 + domain_test.go | 45 + 2 files changed, 74

[libvirt] [PATCH go-xml] 1, add memoryBacking for domain. 2, add hugepages, nosharepages, locked, source, access and allocation for memoryBacking. 3, add test case for memoryBacking.

2017-09-26 Thread Zhenwei.Pi
Signed-off-by: zhenwei.pi --- domain.go | 76 +++--- domain_test.go | 38 + 2 files changed, 95 insertions(+), 19 deletions(-) diff --git a/domain.go b/domain.go index d81ac2a..773a83e 100644 --- a/domain.go

[libvirt] [PATCH go-xml] 1, add memoryBacking for domain. 2, add hugepages, nosharepages, locked, source, access and allocation for memoryBacking. 3, add test case for memoryBacking.

2017-09-25 Thread zhenwei.pi
Signed-off-by: zhenwei.pi --- domain.go | 76 +++--- domain_test.go | 38 + 2 files changed, 95 insertions(+), 19 deletions(-) diff --git a/domain.go b/domain.go index d81ac2a..773a83e 100644 --- a/domain.go

[libvirt] [PATCH go-xml] add VCPUs support in Domain

2017-09-25 Thread zhenwei.pi
Signed-off-by: zhenwei.pi --- domain.go | 12 domain_test.go | 24 2 files changed, 36 insertions(+) diff --git a/domain.go b/domain.go index 3ab54a1..d81ac2a 100644 --- a/domain.go +++ b/domain.go @@ -533,6 +533,17 @@ type DomainVCPU struct

[libvirt] [PATCH go-xml] Add support for domain hostdev and test code

2017-09-15 Thread zhenwei.pi
Signed-off-by: zhenwei.pi --- domain.go | 36 domain_test.go | 44 2 files changed, 80 insertions(+) diff --git a/domain.go b/domain.go index bead49a..1bcc9cc 100644 --- a/domain.go +++ b/domain.go @@ -407,6

[libvirt] [PATCH go-xml] Add support for domain hostdev and test code

2017-08-19 Thread zhenwei.pi
Signed-off-by: zhenwei.pi --- domain.go | 36 domain_test.go | 36 2 files changed, 72 insertions(+) diff --git a/domain.go b/domain.go index a5d3203..2c63307 100644 --- a/domain.go +++ b/domain.go @@ -406,6 +406,29

[libvirt] [PATCH go-xml] Add support for domain clock and test code

2017-07-09 Thread zhenwei.pi
Signed-off-by: zhenwei.pi --- domain.go | 7 +++ domain_test.go | 6 ++ 2 files changed, 13 insertions(+) diff --git a/domain.go b/domain.go index b9b0f77..1d020aa 100644 --- a/domain.go +++ b/domain.go @@ -532,6 +532,12 @@ type DomainCPU struct { Features

[libvirt] [PATCH go-xml] Add support for domain clock and test code

2017-07-09 Thread zhenwei.pi
Signed-off-by: zhenwei.pi --- domain.go | 5 + domain_test.go | 4 2 files changed, 9 insertions(+) diff --git a/domain.go b/domain.go index b9b0f77..8bbf82b 100644 --- a/domain.go +++ b/domain.go @@ -532,6 +532,10 @@ type DomainCPU struct { Features []DomainCPUFeature

[libvirt] [PATCH go-xml] Add support for domain clock

2017-07-08 Thread zhenwei.pi
Signed-off-by: zhenwei.pi --- domain.go | 5 + domain_test.go | 4 2 files changed, 9 insertions(+) diff --git a/domain.go b/domain.go index b9b0f77..8bbf82b 100644 --- a/domain.go +++ b/domain.go @@ -532,6 +532,10 @@ type DomainCPU struct { Features []DomainCPUFeature

[libvirt] [PATCH go-xml] add append attr for chardev

2017-06-25 Thread zhenwei.pi
--- domain.go | 5 +++-- domain_test.go | 14 ++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/domain.go b/domain.go index 82bf728..00231b2 100644 --- a/domain.go +++ b/domain.go @@ -227,8 +227,9 @@ type DomainInterface struct { } type DomainChardevSource st

[libvirt] [PATCH go-xml] support virtualport for interface and add test code

2017-06-15 Thread zhenwei.pi
--- domain.go | 29 + domain_test.go | 4 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/domain.go b/domain.go index eb7ff9e..ecb8550 100644 --- a/domain.go +++ b/domain.go @@ -185,19 +185,24 @@ type DomainInterfaceDriver struct { Qu

[libvirt] [PATCH go-xml] 1,rename DomainInterfaceBoot to DomainDeviceBoot; 2,support disk boot order

2017-06-06 Thread zhenwei.pi
--- domain.go | 5 +++-- domain_test.go | 6 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/domain.go b/domain.go index 1d91dc3..7d8f6d6 100644 --- a/domain.go +++ b/domain.go @@ -98,6 +98,7 @@ type DomainDisk struct { ReadOnly *DomainDiskReadOnly `xml:"readon

[libvirt] [PATCH go-xml] add emulator supported

2017-06-02 Thread zhenwei.pi
--- domain.go | 1 + domain_test.go | 6 ++ 2 files changed, 7 insertions(+) diff --git a/domain.go b/domain.go index dcb8f65..723e761 100644 --- a/domain.go +++ b/domain.go @@ -307,6 +307,7 @@ type DomainDeviceList struct { Channels[]DomainChardev`xml:"channel"`

[libvirt] [PATCH go-xml] Add support for domain input address

2017-06-01 Thread zhenwei.pi
--- domain.go | 5 +++-- domain_test.go | 11 ++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/domain.go b/domain.go index bf0b851..dcb8f65 100644 --- a/domain.go +++ b/domain.go @@ -232,8 +232,9 @@ type DomainChardev struct { } type DomainInput struct { -

[libvirt] [PATCH go-xml] Add support for device sound

2017-05-31 Thread zhenwei.pi
--- domain.go | 11 +++ domain_test.go | 20 2 files changed, 31 insertions(+) diff --git a/domain.go b/domain.go index de47c07..bf0b851 100644 --- a/domain.go +++ b/domain.go @@ -283,6 +283,16 @@ type DomainMemBalloon struct { Address *DomainAddress `xml

libvir-list@redhat.com

2017-05-26 Thread zhenwei.pi
--- domain.go | 13 +++-- domain_test.go | 56 +--- 2 files changed, 64 insertions(+), 5 deletions(-) diff --git a/domain.go b/domain.go index 848835a..cbb22e5 100644 --- a/domain.go +++ b/domain.go @@ -30,8 +30,10 @@ import ( )

libvir-list@redhat.com

2017-05-26 Thread zhenwei.pi
--- domain.go | 13 +++-- domain_test.go | 31 --- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/domain.go b/domain.go index 848835a..1382cd0 100644 --- a/domain.go +++ b/domain.go @@ -30,8 +30,10 @@ import ( ) type DomainController st