[PATCH v4 01/10] docs: documentation and schema for the new TPM Proxy model

2020-05-15 Thread Daniel Henrique Barboza
' backend. An example of a TPM Proxy device connected to a TPM Resource Manager '/dev/tpmrm0' will look like this: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 19 ++- docs/schemas/domaincommon.rng | 1 + 2 files changed, 19 insertions

[PATCH v4 02/10] qemu: Extend QEMU capabilities with 'spapr-tpm-proxy'

2020-05-15 Thread Daniel Henrique Barboza
with the H_TPM_COMM hypercall to connect with the TPM Resource Manager, enabling the guest to open and close TPM sessions with the host TPM. Reviewed-by: Stefan Berger Reviewed-by: Ján Tomko Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c| 4 src/qemu

[PATCH trivial 1/1] qemu_alias.c: fix qemuAssingDeviceMemballoonAlias() typo

2020-05-15 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_alias.c b/src/qemu/qemu_alias.c index b0ea62af39..d6527cb046 100644 --- a/src/qemu/qemu_alias.c +++ b/src/qemu/qemu_alias.c @@ -390,7 +390,7

Re: [PATCH v3 5/9] domain_conf.c: XML parsing for VIR_DOMAIN_TPM_MODEL_SPAPR_PROXY

2020-05-14 Thread Daniel Henrique Barboza
On 5/14/20 11:32 AM, Daniel Henrique Barboza wrote: On 5/14/20 11:09 AM, Ján Tomko wrote: On a Wednesday in 2020, Daniel Henrique Barboza wrote: Aside from trivial XML parsing/format changes, this patch adds additional rules for TPM device support to better accomodate [...] Any

Re: [PATCH v3 5/9] domain_conf.c: XML parsing for VIR_DOMAIN_TPM_MODEL_SPAPR_PROXY

2020-05-14 Thread Daniel Henrique Barboza
On 5/14/20 11:09 AM, Ján Tomko wrote: On a Wednesday in 2020, Daniel Henrique Barboza wrote: Aside from trivial XML parsing/format changes, this patch adds additional rules for TPM device support to better accomodate all the available scenarios with the new TPM Proxy. The changes make

[PATCH v3 9/9] docs/news.xml: update for the new TPM Proxy device

2020-05-13 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- docs/news.xml | 17 + 1 file changed, 17 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 4cef804aac..c22a0f0a18 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -44,6 +44,23

[PATCH v3 7/9] qemu: build command line for the TPM Proxy device

2020-05-13 Thread Daniel Henrique Barboza
capabilities for this device again inside qemu_command.c. Reviewed-by: Stefan Berger Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_alias.c | 16 src/qemu/qemu_command.c | 21 + 2 files changed, 37 insertions(+) diff --git a/src/qemu/qemu_alias.c b/src

[PATCH v3 5/9] domain_conf.c: XML parsing for VIR_DOMAIN_TPM_MODEL_SPAPR_PROXY

2020-05-13 Thread Daniel Henrique Barboza
are valid: - a single TPM device - a single TPM Proxy device - a single TPM + single TPM Proxy devices These combinations in the same domain are NOT allowed: - 2 or more TPM devices - 2 or more TPM Proxy devices Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_conf.c | 45

[PATCH v3 8/9] tests/qemuxml2argvtest.c: add TPM Proxy command line tests

2020-05-13 Thread Daniel Henrique Barboza
Add tests for both supported scenarios: a single TPM Proxy and a TPM Proxy with a regular TPM device in the same domain. Reviewed-by: Stefan Berger Signed-off-by: Daniel Henrique Barboza --- .../ppc64-tpmproxy-single.ppc64-latest.args | 34 + .../ppc64-tpmproxy-with-tpm.ppc64

[PATCH v3 4/9] conf, domain: register AUTOPTR_CLEANUP_FUNC for virDomainTPMDef

2020-05-13 Thread Daniel Henrique Barboza
Next patch will make use of g_autoptr() with virDomainTPMDefPtr. Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_conf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 8f178ade34..60dbba3b19 100644 --- a/src/conf/domain_conf.h

[PATCH v3 6/9] tests: add XML schema tests for the TPM Proxy device

2020-05-13 Thread Daniel Henrique Barboza
This tests aims to exercise how a TPM Proxy device can be added in the domain, either alone or with a regular TPM device. It also ensures that we do not allow bogus scenarios to slip by. Reviewed-by: Stefan Berger Signed-off-by: Daniel Henrique Barboza --- tests/qemuxml2argvdata/ppc64-tpm

[PATCH v3 3/9] conf, qemu: adding 'tpmproxy' in domain definition

2020-05-13 Thread Daniel Henrique Barboza
. Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_audit.c | 3 +++ src/conf/domain_conf.c | 18 ++ src/conf/domain_conf.h | 2 ++ src/qemu/qemu_cgroup.c | 12 +--- src/qemu/qemu_domain.c | 9 + src/qemu

[PATCH v3 0/9] Introducing TPM Proxy device support for PPC64

2020-05-13 Thread Daniel Henrique Barboza
no benefits unless the guest is running on specialized PPC64 hardware - fixed identation in patch 6 (former 5). Added Stefan's r-b v2 link: https://www.redhat.com/archives/libvir-list/2020-May/msg00604.html v1 link: https://www.redhat.com/archives/libvir-list/2020-May/msg00604.html Daniel Henrique

[PATCH v3 1/9] docs: documentation and schema for the new TPM Proxy model

2020-05-13 Thread Daniel Henrique Barboza
' backend. An example of a TPM Proxy device connected to a TPM Resource Manager '/dev/tpmrm0' will look like this: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 18 +- docs/schemas/domaincommon.rng | 1 + 2 files changed, 18 insertions(+), 1

[PATCH v3 2/9] qemu: Extend QEMU capabilities with 'spapr-tpm-proxy'

2020-05-13 Thread Daniel Henrique Barboza
with the H_TPM_COMM hypercall to connect with the TPM Resource Manager, enabling the guest to open and close TPM sessions with the host TPM. Reviewed-by: Stefan Berger Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c| 4 src/qemu/qemu_capabilities.h

Re: [PATCH v2 4/8] domain_conf.c: XML parsing for VIR_DOMAIN_TPM_MODEL_SPAPR_PROXY

2020-05-13 Thread Daniel Henrique Barboza
On 5/13/20 11:35 AM, Stefan Berger wrote: On 5/13/20 10:10 AM, Daniel Henrique Barboza wrote: Aside from trivial XML parsing/format changes, this patch adds additional rules for TPM device support to better accomodate all the available scenarios with the new TPM Proxy. The changes make

Re: [PATCH v2 1/8] docs: documentation and schema for the new TPM Proxy model

2020-05-13 Thread Daniel Henrique Barboza
On 5/13/20 12:45 PM, Stefan Berger wrote: [...] I think users need to understand that a pSeries guest will not benefit from this but only a pSeries guest that is a secure virtual machine that needs special hardware to run and where there is an Ultravisor. Everyone would want more security

Re: [PATCH 0/2] qemu: Switch to new -numa memdev=

2020-05-13 Thread Daniel Henrique Barboza
On 5/13/20 12:32 PM, Michal Privoznik wrote: On 5/13/20 4:48 PM, Daniel Henrique Barboza wrote: On 5/12/20 11:52 AM, Michal Privoznik wrote: [...] I think the problem is simpler to handle in Libvirt when QEMU deprecates the old format entirely. Otherwise the user will have to also keep

Re: [PATCH v2 1/8] docs: documentation and schema for the new TPM Proxy model

2020-05-13 Thread Daniel Henrique Barboza
On 5/13/20 11:28 AM, Stefan Berger wrote: On 5/13/20 10:10 AM, Daniel Henrique Barboza wrote: QEMU 4.1.0 introduced a new device type called TPM Proxy, currently implemented by PPC64 guests via a new virtual device called 'spapr-tpm-proxy' (see QEMU 0fb6bd073230 for more info). The TPM

Re: [PATCH 0/2] qemu: Switch to new -numa memdev=

2020-05-13 Thread Daniel Henrique Barboza
On 5/12/20 11:52 AM, Michal Privoznik wrote: In a way, libvirt already uses -numa memdev= in a few cases. In fact, in as few cases as possible - only configurations which can not be configured with -numa mem=, because these two ways are incompatible when it comes to migration. My approach to

[PATCH v2 6/8] qemu: build command line for the TPM Proxy device

2020-05-13 Thread Daniel Henrique Barboza
capabilities for this device again inside qemu_command.c. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_alias.c | 16 src/qemu/qemu_command.c | 21 + 2 files changed, 37 insertions(+) diff --git a/src/qemu/qemu_alias.c b/src/qemu/qemu_alias.c index

[PATCH v2 4/8] domain_conf.c: XML parsing for VIR_DOMAIN_TPM_MODEL_SPAPR_PROXY

2020-05-13 Thread Daniel Henrique Barboza
are valid: - a single TPM device - a single TPM Proxy device - a single TPM + single TPM Proxy devices These combinations in the same domain are NOT allowed: - 2 or more TPM devices - 2 or more TPM Proxy devices Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_conf.c | 47

[PATCH v2 0/8] Introducing TPM Proxy device support for PPC64

2020-05-13 Thread Daniel Henrique Barboza
shouldn't - more descriptive commit messages to make it clearer the intention/use case of the TPM Proxy device and how it interacts with the existing TPM models. v1 link: https://www.redhat.com/archives/libvir-list/2020-May/msg00351.html Daniel Henrique Barboza (8): docs: documentation and schema

[PATCH v2 1/8] docs: documentation and schema for the new TPM Proxy model

2020-05-13 Thread Daniel Henrique Barboza
' backend. An example of a TPM Proxy device connected to a TPM Resource Manager '/dev/tpmrm0' will look like this: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 16 +++- docs/schemas/domaincommon.rng | 1 + 2 files changed, 16 insertions(+), 1

[PATCH v2 8/8] docs/news.xml: update for the new TPM Proxy device

2020-05-13 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- docs/news.xml | 15 +++ 1 file changed, 15 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 4cef804aac..452f73479e 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -44,6 +44,21 @@ + + + qemu

[PATCH v2 2/8] qemu: Extend QEMU capabilities with 'spapr-tpm-proxy'

2020-05-13 Thread Daniel Henrique Barboza
with the H_TPM_COMM hypercall to connect with the TPM Resource Manager, enabling the guest to open and close TPM sessions with the host TPM. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c| 4 src/qemu/qemu_capabilities.h| 3 +++ tests

[PATCH v2 5/8] tests: add XML schema tests for the TPM Proxy device

2020-05-13 Thread Daniel Henrique Barboza
This tests aims to exercise how a TPM Proxy device can be added in the domain, either alone or with a regular TPM device. It also ensures that we do not allow bogus scenarios to slip by. Signed-off-by: Daniel Henrique Barboza --- tests/qemuxml2argvdata/ppc64-tpm-double.xml | 34

[PATCH v2 7/8] tests/qemuxml2argvtest.c: add TPM Proxy command line tests

2020-05-13 Thread Daniel Henrique Barboza
Add tests for both supported scenarios: a single TPM Proxy and a TPM Proxy with a regular TPM device in the same domain. Signed-off-by: Daniel Henrique Barboza --- .../ppc64-tpmproxy-single.ppc64-latest.args | 34 + .../ppc64-tpmproxy-with-tpm.ppc64-latest.args | 37

[PATCH v2 3/8] conf, qemu: adding 'tpmproxy' in domain definition

2020-05-13 Thread Daniel Henrique Barboza
. Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_audit.c | 3 +++ src/conf/domain_conf.c | 18 ++ src/conf/domain_conf.h | 2 ++ src/qemu/qemu_cgroup.c | 12 +--- src/qemu/qemu_domain.c | 9 + src/qemu

Re: [PATCH v1 1/8] docs: documentation and schema for the new TPM Proxy device

2020-05-12 Thread Daniel Henrique Barboza
On 5/12/20 1:44 PM, Daniel P. Berrangé wrote: On Tue, May 12, 2020 at 01:21:40PM -0300, Daniel Henrique Barboza wrote: On 5/12/20 12:53 PM, Daniel P. Berrangé wrote: On Tue, May 12, 2020 at 11:21:52AM -0400, Stefan Berger wrote: On 5/11/20 7:28 AM, Daniel P. Berrangé wrote: On Mon, May

Re: [PATCH v1 1/8] docs: documentation and schema for the new TPM Proxy device

2020-05-12 Thread Daniel Henrique Barboza
On 5/11/20 8:50 AM, Daniel Henrique Barboza wrote: On 5/11/20 8:28 AM, Daniel P. Berrangé wrote: On Mon, May 11, 2020 at 08:26:53AM -0300, Daniel Henrique Barboza wrote: On 5/11/20 6:57 AM, Daniel P. Berrangé wrote: On Mon, May 11, 2020 at 11:22:57AM +1000, David Gibson wrote

Re: [PATCH v1 1/8] docs: documentation and schema for the new TPM Proxy device

2020-05-12 Thread Daniel Henrique Barboza
On 5/12/20 12:53 PM, Daniel P. Berrangé wrote: On Tue, May 12, 2020 at 11:21:52AM -0400, Stefan Berger wrote: On 5/11/20 7:28 AM, Daniel P. Berrangé wrote: On Mon, May 11, 2020 at 08:26:53AM -0300, Daniel Henrique Barboza wrote: On 5/11/20 6:57 AM, Daniel P. Berrangé wrote: On Mon, May

Re: [libvirt PATCH] qemu: only stop external devices after the domain

2020-05-12 Thread Daniel Henrique Barboza
process, because the swtmp_ioctl command can lock up:: https://bugzilla.redhat.com/show_bug.cgi?id=1822523 Remove the first call and only leave the one in qemuProcessStop, which is called after the QEMU process is killed. Signed-off-by: Ján Tomko --- Reviewed-by: Daniel Henrique Barboza

Re: [libvirt PATCH] qemu: only stop external devices after the domain

2020-05-12 Thread Daniel Henrique Barboza
On 5/12/20 10:48 AM, Daniel Henrique Barboza wrote: On 5/12/20 8:23 AM, Ján Tomko wrote: A failure in qemuProcessLaunch would lead to qemuExtStopDevices being called twice - once in the cleanup section and then again in qemuProcessStop. However, the first one is called while the QEMU

Re: [libvirt PATCH] qemu: only stop external devices after the domain

2020-05-12 Thread Daniel Henrique Barboza
On 5/12/20 8:23 AM, Ján Tomko wrote: A failure in qemuProcessLaunch would lead to qemuExtStopDevices being called twice - once in the cleanup section and then again in qemuProcessStop. However, the first one is called while the QEMU process is still running, which is too soon for the swtpm

Re: [PATCH v1 1/8] docs: documentation and schema for the new TPM Proxy device

2020-05-11 Thread Daniel Henrique Barboza
On 5/11/20 8:28 AM, Daniel P. Berrangé wrote: On Mon, May 11, 2020 at 08:26:53AM -0300, Daniel Henrique Barboza wrote: On 5/11/20 6:57 AM, Daniel P. Berrangé wrote: On Mon, May 11, 2020 at 11:22:57AM +1000, David Gibson wrote: [...] It's a different guest side interface, the H_TPM_COMM

Re: [PATCH v1 1/8] docs: documentation and schema for the new TPM Proxy device

2020-05-11 Thread Daniel Henrique Barboza
On 5/11/20 6:57 AM, Daniel P. Berrangé wrote: On Mon, May 11, 2020 at 11:22:57AM +1000, David Gibson wrote: [...] It's a different guest side interface, the H_TPM_COMM hypercall instead of the other PAPR TPM interface. To which "why?" is a very good question, but it's there now, so there's

Re: [PATCH v1 0/8] Introducing TPM Proxy device support

2020-05-08 Thread Daniel Henrique Barboza
(CCing Mike Roth since he implemented the QEMU support for this device) On 5/8/20 5:18 PM, Stefan Berger wrote: On 5/8/20 8:06 AM, Daniel Henrique Barboza wrote: Hello, This series implements a new device type for Libvirt called "TPM Proxy". This device acts as a proxy for TPM re

[PATCH v1 8/8] docs/news.xml: update for the new TPM Proxy device

2020-05-08 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- docs/news.xml | 14 ++ 1 file changed, 14 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 4cef804aac..21ee98c45b 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -44,6 +44,20 @@ + + + qemu

[PATCH v1 2/8] qemu: Extend QEMU capabilities with 'spapr-tpm-proxy'

2020-05-08 Thread Daniel Henrique Barboza
Expose the TPM Proxy support for PPC64 guests by creating a new cap called QEMU_CAPS_DEVICE_SPAPR_TPM_PROXY. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c| 2 ++ src/qemu/qemu_capabilities.h| 1 + tests/qemucapabilitiesdata

[PATCH v1 6/8] qemu: build command line for the TPM Proxy device

2020-05-08 Thread Daniel Henrique Barboza
capabilities for this device again in qemu_command.c Signed-off-by: Daniel Henrique Barboza --- src/libvirt_private.syms | 2 ++ src/qemu/qemu_alias.c| 16 src/qemu/qemu_command.c | 20 3 files changed, 38 insertions(+) diff --git a/src/libvirt_private.syms

[PATCH v1 4/8] domain_conf.c: XML parsing for VIR_DOMAIN_DEVICE_TPMPROXY

2020-05-08 Thread Daniel Henrique Barboza
Add virDomainTPMProxyDefParseXML() and virDomainTPMProxyDefFormat() to handle the creating of the TPM Proxy device via its XML description. Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_conf.c | 94 +- 1 file changed, 93 insertions(+), 1

[PATCH v1 7/8] tests/qemuxml2argvtest.c: add TPM Proxy command line test

2020-05-08 Thread Daniel Henrique Barboza
Add a new test to assert the QEMU command line being built for the TPM Proxy device. Signed-off-by: Daniel Henrique Barboza --- tests/qemuxml2argvdata/ppc64-tpmproxy.args | 28 ++ tests/qemuxml2argvtest.c | 4 2 files changed, 32 insertions(+) create

[PATCH v1 1/8] docs: documentation and schema for the new TPM Proxy device

2020-05-08 Thread Daniel Henrique Barboza
this: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 42 +++ docs/schemas/domaincommon.rng | 18 +++ 2 files changed, 60 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 23eb029234

[PATCH v1 3/8] conf, qemu: adding VIR_DOMAIN_DEVICE_TPMPROXY device

2020-05-08 Thread Daniel Henrique Barboza
This new device will be used to represent a single instance of a TPM Proxy for the domain. XML functions to parse and format the device from the XML definition will be added in the next patch. Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_capabilities.c | 1 + src/conf

[PATCH v1 5/8] tests: add test for domain XML with TPM Proxy device model

2020-05-08 Thread Daniel Henrique Barboza
Update qemuxml2xmltest.c to add tests to validate the XML parsing of the new TPM Proxy device type. Signed-off-by: Daniel Henrique Barboza --- tests/qemuxml2argvdata/ppc64-tpmproxy.xml | 31 + tests/qemuxml2xmloutdata/ppc64-tpmproxy.xml | 37 + tests

[PATCH v1 0/8] Introducing TPM Proxy device support

2020-05-08 Thread Daniel Henrique Barboza
t the same time, but only one TPM Proxy is allowed per guest. At this moment, this device exists only for QEMU pSeries guests. A "model" field was added device to allow more models to be added when/if other architectures implements it. Daniel Henrique Barboza (8): docs: docu

Re: libvirt-devaddr: a new library for device address assignment

2020-05-01 Thread Daniel Henrique Barboza
On 5/1/20 7:40 AM, Daniel P. Berrangé wrote: On Thu, Apr 30, 2020 at 09:00:51PM -0300, Daniel Henrique Barboza wrote: My initial plan is to get the logic/APIs design from Libvirt, rename them in a Gopher fashion, re-code it with Go and call it a day :) That is really not a way I would

Re: libvirt-devaddr: a new library for device address assignment

2020-04-30 Thread Daniel Henrique Barboza
On 4/30/20 4:14 PM, Laine Stump wrote: On 4/30/20 2:20 PM, Daniel Henrique Barboza wrote: On 3/19/20 4:00 PM, Laine Stump wrote: TL;DR - I'm not as anti-XML as the proposal seems to be, but also not pro-XML. I also (after thinking about it) understand the advantage of putting

Re: libvirt-devaddr: a new library for device address assignment

2020-04-30 Thread Daniel Henrique Barboza
On 3/19/20 4:00 PM, Laine Stump wrote: TL;DR - I'm not as anti-XML as the proposal seems to be, but also not pro-XML. I also (after thinking about it) understand the advantage of putting this in a separate library. So yeah, let's go it! [...] Anyway, in the end I think my opinion is we

Re: [PATCH] docs: Describe protected virtualization guest setup

2020-04-29 Thread Daniel Henrique Barboza
On 4/28/20 12:58 PM, Boris Fiuczynski wrote: From: Viktor Mihajlovski [...] + +If the check fails despite the host system actually supporting +protected virtualization guests, this can be caused by a stale +libvirt capabilities cache. To recover, run the following +commands + +:: + + $

[PATCH RESEND v1 4/7] qemu: Implement the SBBC pSeries feature

2020-04-27 Thread Daniel Henrique Barboza
quired to handle it since it's not a regular tristate capability. This is the XML format for the cap: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 11 + docs/schemas/domaincommon.rng | 15 +++ src/conf/domain_conf

[PATCH RESEND v1 6/7] qemu: Implement the IBS pSeries feature

2020-04-27 Thread Daniel Henrique Barboza
This is the XML format for the cap: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 14 ++ docs/schemas/domaincommon.rng | 17 +++ src/conf/domain_conf.c| 46 +++ src/conf/dom

[PATCH RESEND v1 1/7] qemu: Add capability for CFPC pSeries feature

2020-04-27 Thread Daniel Henrique Barboza
values in a cleaner way, instead of hacking parameters in elements. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml | 1 + tests

[PATCH RESEND v1 2/7] qemu: Implement the CFPC pSeries feature

2020-04-27 Thread Daniel Henrique Barboza
a regular tristate capability. This is the XML format for the cap: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 11 + docs/schemas/domaincommon.rng | 15 +++ src/conf/domain_conf.c| 44 +

[PATCH RESEND v1 7/7] news: Update for the recent added pSeries features

2020-04-27 Thread Daniel Henrique Barboza
Update news.xml to inform about the availability of CFPC, SBBC and IBS features. Signed-off-by: Daniel Henrique Barboza --- docs/news.xml | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 5835013c19..80819aec23 100644 --- a/docs/news.xml +++ b

[PATCH RESEND v1 5/7] qemu: Add capability for IBS pSeries feature

2020-04-27 Thread Daniel Henrique Barboza
OS requirements, and it's better to do it so in a proper Libvirt feature than to put QEMU arguments in the middle of the domain XML. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests

[PATCH RESEND v1 0/7] add Spectre related PowerPC features

2020-04-27 Thread Daniel Henrique Barboza
or trying to run AIX guests/guests with older kernels, however, will need to fine tune these options because QEMU defaults won't work. Instead of making users rely on elements to hardcode the options in the XML, let's support them in Libvirt. Daniel Henrique Barboza (7): qemu: Add capability

[PATCH RESEND v1 3/7] qemu: Add capability for SBBC pSeries feature

2020-04-27 Thread Daniel Henrique Barboza
with the now implemented CFPC, exposing this feature in the XML allows for a cleaner way for users to tune the SBBC accordingly, given that not all hypervisor and guest setups supports this Spectre mitigation. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c

Re: [PATCH 0/4] move validation of virtio options

2020-04-24 Thread Daniel Henrique Barboza
-grained tests are a nice touch too. All patches: Reviewed-by: Daniel Henrique Barboza

Re: [PATCH v1 0/7] add Spectre related PowerPC features

2020-04-23 Thread Daniel Henrique Barboza
Ping On 4/16/20 6:24 PM, Daniel Henrique Barboza wrote: Hi, This series implements 3 Spectre related PowerPC features that were added back in QEMU 2.12: - CFPC: Cache Flush on Privilege Change - SBBC: Speculation Barrier Bounds Checking - IBS: Indirect Branch Speculation These options

Re: [PATCH v2 1/2] conf: Add option for settings

2020-04-22 Thread Daniel Henrique Barboza
On 4/22/20 9:22 AM, Julio Faracco wrote: Hi Daniel, Thanks for reviewing. :-) Np, glad to be of assistance IMHO, I don't like to join them in one single patch because it is hard to review. Hmm, reading this I believe that the tests would pass after applying patch 2/2 then (didn't

Re: [PATCH v2 1/2] conf: Add option for settings

2020-04-22 Thread Daniel Henrique Barboza
On 4/21/20 1:03 AM, Julio Faracco wrote: If an user is trying to configure a dhcp neetwork settings, it is not s/neetwork/network This patch failed to compile in my box on top of master at 9a13704818e: CCLD libvirdeterministichashmock.la ../../tests/networkxml2conftest.c: In

[PATCH v1 2/7] qemu: Implement the CFPC pSeries feature

2020-04-16 Thread Daniel Henrique Barboza
a regular tristate capability. This is the XML format for the cap: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 11 + docs/schemas/domaincommon.rng | 15 +++ src/conf/domain_conf.c| 45 +

[PATCH v1 7/7] news: Update for the recent added pSeries features

2020-04-16 Thread Daniel Henrique Barboza
Update news.xml to inform about the availability of CFPC, SBBC and IBS features. Signed-off-by: Daniel Henrique Barboza --- docs/news.xml | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 4d0efd4219..2066f0eef3 100644 --- a/docs/news.xml +++ b

[PATCH v1 6/7] qemu: Implement the IBS pSeries feature

2020-04-16 Thread Daniel Henrique Barboza
This is the XML format for the cap: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 14 ++ docs/schemas/domaincommon.rng | 17 +++ src/conf/domain_conf.c| 46 +++ src/conf/dom

[PATCH v1 1/7] qemu: Add capability for CFPC pSeries feature

2020-04-16 Thread Daniel Henrique Barboza
values in a cleaner way, instead of hacking parameters in elements. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml | 1 + tests

[PATCH v1 5/7] qemu: Add capability for IBS pSeries feature

2020-04-16 Thread Daniel Henrique Barboza
OS requirements, and it's better to do it so in a proper Libvirt feature than to put QEMU arguments in the middle of the domain XML. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 4 src/qemu/qemu_capabilities.h | 3

[PATCH v1 4/7] qemu: Implement the SBBC pSeries feature

2020-04-16 Thread Daniel Henrique Barboza
quired to handle it since it's not a regular tristate capability. This is the XML format for the cap: Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 11 + docs/schemas/domaincommon.rng | 15 +++ src/conf/domain_conf

[PATCH v1 0/7] add Spectre related PowerPC features

2020-04-16 Thread Daniel Henrique Barboza
them in Libvirt. Daniel Henrique Barboza (7): qemu: Add capability for CFPC pSeries feature qemu: Implement the CFPC pSeries feature qemu: Add capability for SBBC pSeries feature qemu: Implement the SBBC pSeries feature qemu: Add capability for IBS pSeries feature qemu: Implement the IBS

[PATCH v1 3/7] qemu: Add capability for SBBC pSeries feature

2020-04-16 Thread Daniel Henrique Barboza
with the now implemented CFPC, exposing this feature in the XML allows for a cleaner way for users to tune the SBBC accordingly, given that not all hypervisor and guest setups supports this Spectre mitigation. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c

Re: [PATCH] qemu: Revoke access to mirror on failed blockcopy

2020-04-15 Thread Daniel Henrique Barboza
finish of the blockcopy operation. But, if something fails then we need to explicitly revoke the access to the mirror image (and thus reattach NVMe disk back to the host). Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1822538 Signed-off-by: Michal Privoznik --- Reviewed-by: Daniel Henrique

Re: [PATCH] util: fix iteration in virSocketAddrResolveService

2020-04-13 Thread Daniel Henrique Barboza
On 4/13/20 11:18 AM, Nikolay Shirokovskiy wrote: getaddrinfo returns linked list. Fix iteration accordingly. Signed-off-by: Nikolay Shirokovskiy --- Reviewed-by: Daniel Henrique Barboza src/util/virsocketaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src

[PATCH] formatdomain.html.in: document emulator/vcpu pin delay

2020-04-09 Thread Daniel Henrique Barboza
. Let's document this behavior, which is explained in detail in Libvirt commit v5.0.0-199-gf136b83139, in the cputune section of formatdomain.html.in. Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 7 +++ 1 file changed, 7 insertions(+) diff --git a/docs

Re: [PATCH 01/15] qemu: introducing qemu_validate.c/h

2020-04-03 Thread Daniel Henrique Barboza
On 4/3/20 10:21 AM, Ján Tomko wrote: Moving the first functions seems more important than the fact that we are introducing a new file. qemu: move qemuDomainDefValidateFeatures to qemu_validate On a Thursday in 2020, Daniel Henrique Barboza wrote: While moving validations from qemu_command

Re: [PATCH 00/15] move validations out of qemu_domain.c

2020-04-03 Thread Daniel Henrique Barboza
Ping On 3/26/20 6:31 PM, Daniel Henrique Barboza wrote: This is a suggestion made by Peter in [1], in the review discussion of a series in which I started moving qemuCaps validation from qemu_command.c to qemu_domain.c [2]. I'll quote here what he said back then: "My only sugge

Re: [PATCH] rng: Support encryption and slices element in snapshot XML

2020-04-02 Thread Daniel Henrique Barboza
On 4/1/20 11:10 AM, Han Han wrote: Signed-off-by: Han Han --- Looks good. I'd just rename the commit to "domainsnapshot.rng: Support encryption and slices element" because prefixing the commit with "rng" can be misleading with commits related to the "rng" virtio backend. DHB

[PATCH] formatdomain.html.in: fix 'sockets' info in topology element

2020-04-01 Thread Daniel Henrique Barboza
NUMA node. Signed-off-by: Daniel Henrique Barboza --- docs/formatdomain.html.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index aaeb05961f..7940d6ace5 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdoma

Re: [PATCH] qemu_cgroup.c: use VIR_AUTOSTRINGLIST, g_autofree and g_autoptr

2020-03-31 Thread Daniel Henrique Barboza
On 3/31/20 12:44 PM, Seeteena Thoufeek wrote: Signed-off-by: Seeteena Thoufeek --- Reviewed-by: Daniel Henrique Barboza

Re: [PATCH 10/15] qemu: move qemuValidateDomainDeviceDefController() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Just noticed that the commit title here is mentioning the new name of the function instead of the original name, qemuDomainDeviceDefValidateController(). I'll fix it in the next spin after getting some reviews. DHB On 3/26/20 6:31 PM, Daniel Henrique Barboza wrote: Move the function and all

[PATCH 06/15] qemu: move qemuDomainChrDefValidate() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 383 +-- src/qemu/qemu_validate.c | 373 ++ src/qemu/qemu_validate.h | 11 ++ 3 files changed, 389 insertions(+), 378 deletions(-) diff --git a/src/qemu

[PATCH 05/15] qemu: move qemuDomainDeviceDefValidateAddress() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 146 +-- src/qemu/qemu_validate.c | 144 ++ src/qemu/qemu_validate.h | 2 + 3 files changed, 147 insertions(+), 145 deletions(-) diff --git a/src/qemu

[PATCH 09/15] qemu: move qemuDomainDeviceDefValidateDisk() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
This function will remain public due to its usage in qemublocktest.c even after moving qemuDomainDeviceDefValidate(). The position of its header in qemu_validate.h is no accident. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 100

[PATCH 04/15] qemu: move qemuDomainDeviceDefValidateAddress() to qemu_validation.c

2020-03-26 Thread Daniel Henrique Barboza
The next big task is to move qemuDomainDeviceDefValidate() to qemu_validation.c, which is a function that calls a lot of other static helper functions. This patch starts it by moving qemuDomainDeviceDefValidateAddress(). Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 74

[PATCH 01/15] qemu: introducing qemu_validate.c/h

2020-03-26 Thread Daniel Henrique Barboza
qemuDomainDefValidateFeatures() to this new file. Signed-off-by: Daniel Henrique Barboza --- po/POTFILES.in | 1 + src/qemu/Makefile.inc.am | 2 + src/qemu/qemu_domain.c | 286 +--- src/qemu/qemu_validate.c | 310 +++ src

[PATCH 13/15] qemu: move qemuDomainDeviceDefValidateSound() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 76 +--- src/qemu/qemu_validate.c | 76 src/qemu/qemu_validate.h | 2 ++ 3 files changed, 79 insertions(+), 75 deletions(-) diff --git a/src/qemu

[PATCH 00/15] move validations out of qemu_domain.c

2020-03-26 Thread Daniel Henrique Barboza
rted in [2], but using qemu_validate.c instead of qemu_domain.c as destination. [1] https://www.redhat.com/archives/libvir-list/2019-December/msg00608.html [2] https://www.redhat.com/archives/libvir-list/2019-December/msg00570.html Daniel Henrique Barboza (15): qemu: introducing qemu_validate.c/h

[PATCH 10/15] qemu: move qemuValidateDomainDeviceDefController() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Move the function and all its static helper functions. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 804 +-- src/qemu/qemu_validate.c | 804 +++ src/qemu/qemu_validate.h | 3 + 3 files changed

[PATCH 12/15] qemu: move qemuDomainDeviceDefValidateFS() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 119 +-- src/qemu/qemu_validate.c | 119 +++ src/qemu/qemu_validate.h | 4 ++ 3 files changed, 124 insertions(+), 118 deletions(-) diff --git a/src

[PATCH 08/15] qemu: move qemuDomainDeviceDefValidateVideo() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 98 +--- src/qemu/qemu_validate.c | 96 +++ src/qemu/qemu_validate.h | 2 + 3 files changed, 99 insertions(+), 97 deletions(-) diff --git a/src/qemu

[PATCH 15/15] qemu: move qemuValidateDomainDeviceDef() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Now that all its helper functions are in qemu_validate.c, we can move the function itself. The helpers can become static again since they're all in the same file. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 128 + src/qemu/qemu_validate.c

[PATCH 11/15] qemu: move qemuDomainDeviceDefValidateGraphics() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 177 +-- src/qemu/qemu_validate.c | 175 ++ src/qemu/qemu_validate.h | 5 ++ 3 files changed, 181 insertions(+), 176 deletions(-) diff --git a/src/qemu

[PATCH 14/15] qemu: move remaining qemuDomainDeviceDefValidate() helpers

2020-03-26 Thread Daniel Henrique Barboza
This will allow to move qemuDomainDeviceDefValidate() itself in the next patch in a cleaner way. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 392 +-- src/qemu/qemu_validate.c | 376 + src/qemu

[PATCH 03/15] qemu: move qemuDomainValidateDef() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
After moving most of static functions qemuDomainValidateDef() uses, move the last remaining static and qemuDomainValidateDef() itself to qemu_validation.c. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 254 +--- src/qemu/qemu_validate.c

[PATCH 07/15] qemu: move qemuDomainDeviceDefValidateHostdev() to qemu_validate.c

2020-03-26 Thread Daniel Henrique Barboza
This function alone requires other 3 static functions to be moved as well, thus let's move it in its own patch. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 190 +-- src/qemu/qemu_validate.c | 188

[PATCH 02/15] qemu: move static functions of qemuDomainDefValidate()

2020-03-26 Thread Daniel Henrique Barboza
We're going to move qemuDomainDefValidate() to qemu_validate.c in two steps. First steps is to finish up moving all static functions qemuDomainDefValidate() uses, then in the next patch we can move the function itself. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 394

Re: On the need to move to a merge request workflow

2020-03-26 Thread Daniel Henrique Barboza
On 3/26/20 12:47 PM, Daniel P. Berrangé wrote: On Thu, Mar 26, 2020 at 11:22:11AM -0300, Daniel Henrique Barboza wrote: On 3/26/20 10:10 AM, Peter Krempa wrote: On Fri, Mar 06, 2020 at 11:44:07 +, Daniel Berrange wrote: [...] FYI, every time you post to this list

Re: On the need to move to a merge request workflow

2020-03-26 Thread Daniel Henrique Barboza
On 3/26/20 10:10 AM, Peter Krempa wrote: On Fri, Mar 06, 2020 at 11:44:07 +, Daniel Berrange wrote: We've discussed the idea of replacing our mailing list review workflow with a merge request workflow in various places, over the last 6 months or so, One thing I feel the need to voice

Re: [PATCH 0/9] Another round of qemu:///embed fixes

2020-03-25 Thread Daniel Henrique Barboza
iewed-by: Daniel Henrique Barboza

[PATCH 1/1] qemu_domain.c: remove unneeded size check in NVDIMM alignment

2020-03-25 Thread Daniel Henrique Barboza
equal to ppc64AlignSize. Fixes: 5540acb9a2bd33fb97a7446a610b602c9e8629a3 Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 2c9fb47d17..2c52778515 100644 --- a/src/qemu

<    5   6   7   8   9   10   11   12   13   14   >