[libvirt] [PATCH 1/1] conf: fixup USB input bus check

2018-05-31 Thread Xiao Feng Ren
This patch fixes the USB input bus check, the bug was introduced by commit 317badb Signed-off-by: Xiao Feng Ren --- src/conf/domain_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 27e2bd50eb..e4d39c06e8 100644

Re: [libvirt] [PATCH 0/1] bug: fixup USB input bus check

2018-05-31 Thread Xiao Feng Ren
On 5/31/2018 4:21 PM, Ján Tomko wrote: On Thu, May 31, 2018 at 09:55:38AM +0200, Xiao Feng Ren wrote: There's one explicit bug(introduced in commit:317badb) when checking the bus of one input device is USB. Let's fix it. The fix looks good to me, but the explanation (which is not really

[libvirt] [PATCH 1/1] Fixup USB input bus check

2018-05-31 Thread Xiao Feng Ren
Signed-off-by: Xiao Feng Ren --- src/conf/domain_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 27e2bd50eb..e4d39c06e8 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -27878,7 +27878,7

[libvirt] [PATCH 0/1] bug: fixup USB input bus check

2018-05-31 Thread Xiao Feng Ren
There's one explicit bug(introduced in commit:317badb) when checking the bus of one input device is USB. Let's fix it. Xiao Feng Ren (1): Fixup USB input bus check src/conf/domain_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.3 -- libvir-list mailing list libvir

Re: [libvirt] [PATCH 02/13] qemu: Introduce zPCI capability

2018-05-28 Thread Xiao Feng Ren
On 5/25/2018 6:58 PM, Pino Toscano wrote: On Thursday, 24 May 2018 14:24:27 CEST Xiao Feng Ren wrote: From: Yi Min Zhao <zyi...@linux.ibm.com> Let's introduce zPCI capability. Signed-off-by: Yi Min Zhao <zyi...@linux.ibm.com> Reviewed-by: Boris Fiuczynski <fiu...@lin

Re: [libvirt] [PATCH 07/13] qemu: Add hotpluging support for PCI devices on S390 guests

2018-05-28 Thread Xiao Feng Ren
On 5/25/2018 6:22 PM, Bjoern Walk wrote: Cornelia Huck <coh...@redhat.com> [2018-05-24, 06:25PM +0200]: On Thu, 24 May 2018 14:24:32 +0200 Xiao Feng Ren <renxi...@linux.vnet.ibm.com> wrote: From: Yi Min Zhao <zyi...@linux.ibm.com> This commit adds hotplug support for P

[libvirt] [PATCH 08/13] conf: Introduce parser, formatter for uid and fid

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao This patch introduces new XML parser/formatter functions. Uid is 16-bit and non-zero. Fid is 32-bit. They are added as two new attributes of PCI address, and parsed/formatted along with PCI address parser/formatter. Signed-off-by: Yi Min Zhao

[libvirt] [PATCH 00/13] PCI passthrough support on s390

2018-05-24 Thread Xiao Feng Ren
The PCI representation in QEMU has recently been extended for S390 allowing configuration of zPCI attributes like uid (user-defined identifier) and fid (PCI function identifier). The details can be found here: https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg07262.html To support the new

[libvirt] [PATCH 13/13] news: Update news for PCI address extension attributes

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann --- docs/news.xml | 11 +++ 1 file changed, 11 insertions(+) diff --git

[libvirt] [PATCH 06/13] qemu: Generate and use zPCI device in QEMU command line

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao Add new functions to generate zPCI command string and append it to QEMU command line. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann

[libvirt] [PATCH 04/13] qemu: Enable PCI multi bus for S390 guests

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao QEMU on s390 supports PCI multibus since forever. But zPCI, as extension of PCI device on s390, is the significant capability. Only when zPCI capability is existing, we consider QEMU supports PCI multibus properly. So let enable PCI multibus only if zPCI

[libvirt] [PATCH 12/13] docs: Add 'uid' and 'fid' information

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao Update 'Device address' section to describe the 'uid' and 'fid' attributes. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann ---

[libvirt] [PATCH 11/13] tests: Add new tests for zPCI

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao This patch adds new test cases for zPCI when 'uid' and 'fid' are defined with different conditions in XML. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Bjoern Walk

[libvirt] [PATCH 10/13] conf: Allocate/release 'uid' and 'fid' in PCI address

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao This patch adds new functions for reservation, assignment and release to handle the uid/fid. If the uid/fid is defined in the domain XML, they will be reserved directly in collecting phase. If any of them is not defined, we will find out an available value

[libvirt] [PATCH 07/13] qemu: Add hotpluging support for PCI devices on S390 guests

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao This commit adds hotplug support for PCI devices on S390 guests. There's no need to implement hot unplug for zPCI as QEMU implements an unplug callback which will unplug both PCI and zPCI device in a cascaded way. Currently, the following PCI devices are

[libvirt] [PATCH 01/13] conf: Add definitions for 'uid' and 'fid' PCI address attributes

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao Add zPCI definitions in preparation of extending the PCI address with parameters uid (user-defined identifier) and fid (PCI function identifier). Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski

[libvirt] [PATCH 02/13] qemu: Introduce zPCI capability

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao Let's introduce zPCI capability. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann Reviewed-by: Bjoern Walk ---

[libvirt] [PATCH 05/13] qemu: Auto add pci-root for s390/s390x guests

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao The pci-root depends on zpci capability. So autogenerate pci-root if zpci exists. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann Reviewed-by:

[libvirt] [PATCH 09/13] conf: Introduce address caching for PCI extensions

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao This patch provides a caching mechanism for the device address extensions uid and fid on S390. For efficient sparse address allocation, we introduce two hash tables for uid/fid which hold the address set information per domain. Also in order to improve

[libvirt] [PATCH 03/13] conf: Introduce a new PCI address extension flag

2018-05-24 Thread Xiao Feng Ren
From: Yi Min Zhao This patch introduces a new attribute PCI address extension flag to deal with the extension PCI attributes such as 'uid' and 'fid' on the S390 platform. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski