[libvirt] [PATCH v2] cpu: add Freescale ppc64 CPU models

2015-01-29 Thread Olivia Yin
From: Olivia Yin hong-hua@freescale.com With this patch, Freescale ppc64 CPU modesl could be recognized. virsh # cpu-models ppc64 POWERPC_e6500 POWERPC_e5500 power8 power8e power7+ power7 power6 POWER8_v1.0 POWER7+_v2.1 POWER7_v2.3 POWER7_v2.1 POWER7 virsh # capabilities capabilities host

[libvirt] [PATCH] cpu: add Freescale ppc64 CPU models

2015-01-22 Thread Olivia Yin
When running Openstack on Freescale ppc64 board, got libvirtError as before: nova.openstack.common.threadgroup libvirtError: XML error: Missing CPU model name. This patch is to add Freescale ppc64 CPU models. Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/cpu/cpu_map.xml | 36

[libvirt] [PATCH] cpu: add Freescale ppc64 CPU models

2015-01-22 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/cpu/cpu_map.xml | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml index bd9b056..c34874e 100644 --- a/src/cpu/cpu_map.xml +++ b/src/cpu

[libvirt] [PATCH] QEMU: Fix virtio-serial device support on PPC.

2014-06-25 Thread Olivia Yin
Patch fd0f22ed414e114664f4140306834bedd19f52c9 discard virtio-serial device support on PPC machine. Most PPC boards don't use -chardev with non-virtio serial device except pseries which uses -device spapr-vty with -chardev. Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/qemu

[libvirt] [PATCHv2] QEMU: Modify qemuParseCommandLinePCI() to parsee '-device vfio-pci'

2014-06-09 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com Modify qemuParseCommandLinePCI() to support parsing '-device vfio-pci,host=bus:slot.func'. Add test case 'hostdev-vfio' into qemuargv2xmltest to validate this function. The case related to QEMU_CAPS_HOST_PCI_MULTIDOMAIN which uses '-device

[libvirt] [PATCH v3] QEMU: parse '-device vfio-pci' and '-device pci-assign'

2014-06-09 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com Signed-off-by: Laine Stump la...@laine.org Modify the existing function qemuParseCommandLinePCI(), which works with -pcidevice, to support for -device pci-assign and -device pci-assign. Change test cases 'hostdev-vfio' and 'hostdev-pci

[libvirt] [RFC][PATCH]QEMU: Parse -device vfio-pci commandline

2014-06-05 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/qemu/qemu_command.c | 67 tests/qemuargv2xmltest.c | 2 +- 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index e6acced

[libvirt] [Patch v2 2/3] qemu: Fix specifying char devs for PPC

2014-05-26 Thread Olivia Yin
QEMU ppce500 board uses the legacy -serial option. Other PPC boards don't give any way to explicitly wire in a -chardev except pseries which uses -device spapr-vty with -chardev. Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/qemu/qemu_capabilities.c | 9 - 1 file changed

[libvirt] [Patch v2 1/3] change machine name ppce500v2 as ppce500

2014-05-26 Thread Olivia Yin
ppce500v2 is not machine supported by official release of QEMU. It should be replaced by ppce500. --- docs/schemas/domaincommon.rng| 2 +- tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args | 2 +- tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.xml | 2 +- tests/testutilsqemu.c

[libvirt] [Patch v2 0/3] use -serial for ppce500 board and add test case

2014-05-26 Thread Olivia Yin
Machine name ppce500 is used to replace ppce500v2 supported by QEMU. QEMU ppce500 board uses the legacy -serial option. Test case ppce500-serial is used to verify this change. Olivia Yin (3): change machine name ppce500v2 as ppce500 qemu: Fix specifying char devs for PPC tests: add test

[libvirt] [Patch v2 3/3] tests: add test case for -serial option for ppce500

2014-05-26 Thread Olivia Yin
--- .../qemuxml2argv-ppce500-serial.args | 7 ++ .../qemuxml2argv-ppce500-serial.xml| 26 ++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 34 insertions(+) create mode 100644

[libvirt] [PATCH 2/3] qemu: Fix specifying char devs for PPC

2014-05-22 Thread Olivia Yin
QEMU ppce500 board uses the old style -serial options. Other PPC boards don't give any way to explicitly wire in a -chardev except pseries which uses -device spapr-vty with -chardev. --- src/qemu/qemu_capabilities.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

[libvirt] [PATCH 1/3] change machine name ppce500v2 as ppce500

2014-05-22 Thread Olivia Yin
--- docs/schemas/domaincommon.rng| 2 +- tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args | 2 +- tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.xml | 2 +- tests/testutilsqemu.c| 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git

[libvirt] [PATCH 3/3] tests: add test case for -serial option for ppce500

2014-05-22 Thread Olivia Yin
--- .../qemuxml2argv-ppce500-serial.args | 7 ++ .../qemuxml2argv-ppce500-serial.xml| 26 ++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 34 insertions(+) create mode 100644

[libvirt] [PATCH 0/3] use -serial for ppce500 board and add test case

2014-05-22 Thread Olivia Yin
Machine name ppce500 is used to replace ppce500v2 supported by QEMU. QEMU ppce500 board uses the old style -serial options. Test case ppce500-serial is used to verify this change. Olivia Yin (3): change machine name ppce500v2 as ppce500 qemu: Fix specifying char devs for PPC tests: add test

[libvirt] [PATCH] qemu: Fix specifying char devs for PPC

2014-05-14 Thread Olivia Yin
QEMU ppce500 board uses the old style -serial options. Other PPC boards don't give any way to explicitly wire in a -chardev except pseries which uses -device spapr-vty with -chardev. --- src/qemu/qemu_capabilities.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

[libvirt] [PATCH] Define CPUINFO_FILE_LEN and fix maxlen of cpuinfo file for powerpc

2014-04-03 Thread Olivia Yin
large for defined data type virSysinfoRead: internal error Failed to open /proc/cpuinfo So this patch increases the maxlen of cpuinfo for PowerPC architecture. Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/util/virsysinfo.c | 6 +++--- src/util/virsysinfo.h | 2 ++ 2 files changed

[libvirt] [PATCH] Define STATE_XMLFILE_LEN as 8192

2014-04-03 Thread Olivia Yin
'pp': Value too large for defined data type Signed-off-by: Olivia Yin hong-hua@freescale.com --- tools/virsh-domain.c | 6 +++--- tools/virsh.h| 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 73414f8..8ade296 100644

[libvirt] [PATCH v2] Define CPUINFO_FILE_LEN and fix maxlen of cpuinfo file for all uses

2014-04-03 Thread Olivia Yin
Failed to open /proc/cpuinfo This patch defines CPUINFO_FILE_LEN as 10KB which is enough for most architectures. Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/util/virsysinfo.c | 6 +++--- src/util/virsysinfo.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git

[libvirt] [PATCH] replace ppce500v2 with ppce500

2013-03-19 Thread Olivia Yin
--- docs/schemas/domaincommon.rng| 2 +- tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args | 2 +- tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.xml | 2 +- tests/testutilsqemu.c| 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git

[libvirt] [PATCH] fix TLS error with virNetServerClientCreateIdentity

2013-03-19 Thread Olivia Yin
--- src/rpc/virnetserverclient.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c index d407f5e..58fb0b4 100644 --- a/src/rpc/virnetserverclient.c +++ b/src/rpc/virnetserverclient.c @@ -687,6 +687,7 @@

[libvirt] [PATCH v5 0/3] qemu: -dtb option support

2013-03-13 Thread Olivia Yin
Since v1.1 QEMU provides -dtb option to support loading device tree binary images. These patches update qemu commands/capabilities for dtb and provide docs/tests. Olivia Yin (3): conf: support dtb tag in XML domain file qemu: add dtb option supprt selinux: deal with dtb file docs

[libvirt] [PATCH v5 2/3] qemu: add dtb option supprt

2013-03-13 Thread Olivia Yin
The dtb option sets the filename for the device tree. If without this option support, -dtb file will be converted into qemu:commandline in domain XML file. For example, '-dtb /media/ram/test.dtb' will be converted into qemu:commandline qemu:arg value='-dtb'/ qemu:arg

[libvirt] [PATCH v4 0/2] qemu: -dtb option support

2013-03-12 Thread Olivia Yin
Sometime QEMU need load specific device tree binary images. These patches provide -dtb option support and update docs/tests. Olivia Yin (2): qemu: add support for dtb option conf: Add support for dtb option in QEMU src/qemu/qemu_capabilities.c |6 src/qemu

[libvirt] [PATCH v4 1/2] qemu: add support for dtb option

2013-03-12 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com The dtb option sets the filename for the device tree. If without this option support, -dtb file will be converted into qemu:commandline in domain XML file. For example, '-dtb /media/ram/test.dtb' will be converted into qemu:commandline

[libvirt] [PATCH v4 2/2] conf: Add support for dtb option in QEMU

2013-03-12 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com This patch adds support to set the device trees file. --- docs/formatdomain.html.in |5 + docs/schemas/domaincommon.rng |5 + src/conf/domain_conf.c|4 src/conf/domain_conf.h|1 + 4 files

[libvirt] [PATCH] qemu: add PCI-multibus support for ppc

2013-03-12 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/qemu/qemu_capabilities.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 7bc1ebc..7d7791d 100644 --- a/src/qemu/qemu_capabilities.c

[libvirt] [PATCH v2 1/2] QEMU: add -dtb option support

2013-02-27 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/conf/domain_conf.c |4 src/conf/domain_conf.h |1 + src/qemu/qemu_capabilities.c |3 +++ src/qemu/qemu_capabilities.h |1 + src/qemu/qemu_command.c |6 ++ 5 files changed, 15 insertions

[libvirt] [PATCH v2 0/2] QEMU: add -dtb option support

2013-02-27 Thread Olivia Yin
Sometime qemu need load specific device tree binary image. These patches provides -dtb option support and update docs/tests. Olivia Yin (2): QEMU: add -dtb option support update documents and test cases for -dtb support src/conf/domain_conf.c |4 src/conf

[libvirt] [PATCH v2 2/2] update documents and test cases for -dtb support

2013-02-27 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- docs/formatdomain.html.in|5 docs/schemas/domaincommon.rng|5 tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args |1 + tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.xml | 28

[libvirt] [PATCH v3 0/4] qemu: -dtb option support

2013-02-27 Thread Olivia Yin
Sometime QEMU need load specific device tree binary images. These patches provide -dtb option support and update docs/tests. Olivia Yin (4): QEMU: add -dtb option support qemu: add dtb capability docs: add -dtb option support to QEMU tests: add dtb test case src/conf/domain_conf.c

[libvirt] [PATCH v3 4/4] tests: add dtb test case

2013-02-27 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args |1 + tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.xml | 28 ++ tests/qemuxml2argvtest.c |2 + 3 files changed, 31 insertions(+), 0

[libvirt] [PATCH v3 1/4] QEMU: add -dtb option support

2013-02-27 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/conf/domain_conf.c |4 src/conf/domain_conf.h |1 + src/qemu/qemu_command.c |6 ++ 3 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 995cf0c

[libvirt] [PATCH v3 2/4] qemu: add dtb capability

2013-02-27 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/qemu/qemu_capabilities.c |3 +++ src/qemu/qemu_capabilities.h |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 40022c1..f6a6ab7 100644

[libvirt] [PATCH v3 3/4] docs: add -dtb option support to QEMU

2013-02-27 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- docs/formatdomain.html.in |5 + docs/schemas/domaincommon.rng |5 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 595f151..93b10ac 100644

[libvirt] [PATCH] add dtb support

2013-02-26 Thread Olivia Yin
Signed-off-by: Olivia Yin hong-hua@freescale.com --- src/conf/domain_conf.c |4 src/conf/domain_conf.h |1 + src/qemu/qemu_command.c |6 ++ 3 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 0c75838