2019-June/msg00263.html
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain.c | 47 ++
src/qemu/qemu_domain.h | 4
src/qemu/qemu_driver.c | 9
3 files changed, 60 insertions(+)
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu
These helpers will be used in an auto-fill feature for incomplete
NUMA topologies in the next patch.
Signed-off-by: Daniel Henrique Barboza
---
src/conf/numa_conf.c | 46
src/conf/numa_conf.h | 3 +++
src/libvirt_private.syms | 1 +
3 files
H_TPM_COMM
hypercall to connect with the TPM Resource Manager, enabling
the guest to open and close TPM sessions with the host TPM.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Reviewed-by: Ján Tomko
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_capabilities.c
QEMU capabilities for this device again inside
qemu_command.c.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_alias.c | 5 -
src/qemu/qemu_command.c | 27 ++-
2 files changed, 30 insertions(+), 2 dele
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.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
tests
for the 'passthrough' backend.
An example of a TPM Proxy device connected to a TPM Resource Manager
'/dev/tpmrm0' will look like this:
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
docs/formatdomain.html.in
clause instead.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_tpm.c | 44 +
src/security/security_selinux.c | 16 ++--
src/security/virt-aa-helper.c | 7 +-
tests/qemuxml2
Add tests for both supported scenarios: a single TPM Proxy and
a TPM Proxy with a regular TPM device in the same domain.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
.../ppc64-tpmproxy-single.ppc64-latest.args | 34
single TPM Proxy devices
And these combinations in the same domain are NOT valid:
- 2 or more TPM devices
- 2 or more TPM Proxy devices
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain.c
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
NEWS.rst | 13 +
1 file changed, 13 insertions(+)
diff --git a/NEWS.rst b/NEWS.rst
index a16903c7c3..9feb09b6bc 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -21,6 +21,19 @@ v6.5.0
adapted to
handle the new array instead. virDomainDefParseXML() TPM related
code was adapted to handle the parsing of an extra TPM device.
TPM validations after this new scenario will be updated in
the next patch.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henriq
archives/libvir-list/2020-May/msg00604.html
v1 link: https://www.redhat.com/archives/libvir-list/2020-May/msg00351.html
Daniel Henrique Barboza (10):
docs: documentation and schema for the new TPM Proxy model
qemu: Extend QEMU capabilities with 'spapr-tpm-proxy'
qemu_extdevic
qemuExtDevicesInitPaths() does not need 'ret'.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_extdevice.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_extdevice.c
On 6/8/20 5:19 PM, Laine Stump wrote:
On 6/8/20 2:39 PM, Daniel Henrique Barboza wrote:
On 6/5/20 2:56 PM, Laine Stump wrote:
Juan Quintela noticed that when he restarted libvirt he was getting
extra iptables rules added by libvirt even though he didn't have any
libvirt networks that
e extraneous (but harmless) private chains would want to
backport this patch (along with the other two if they aren't already
there))
Signed-off-by: Laine Stump
---
Reviewed-by: Daniel Henrique Barboza
Put a link to the firewall page in the "Virtual network" section,
mentioning that the forward types 'nat', 'route' and 'isolated'
will change firewall settings in the host.
Signed-off-by: Daniel Henrique Barboza
---
docs/formatdomain.html.in | 7 ++
On 6/5/20 2:56 PM, Laine Stump wrote:
Juan Quintela noticed that when he restarted libvirt he was getting
extra iptables rules added by libvirt even though he didn't have any
libvirt networks that used iptables rules. It turns out this also
happens if the firewalld service is restarted. The ex
For the attached patch:
Reviewed-by: Daniel Henrique Barboza
On 6/6/20 7:30 AM, Bihong Yu wrote:
There are some wrong usage of ATTRIBUTE_NONNULL, which may cause the
compilation fail. The
ATTRIBUTE_NONNULL is the define of __attribute__((__nonnull__(m))), which
declares that the
input
On 6/6/20 7:52 AM, Bihong Yu wrote:
There are some wrong usage of ATTRIBUTE_NONNULL, which may cause the
compilation fail. The
ATTRIBUTE_NONNULL is the define of __attribute__((__nonnull__(m))), which
declares that the
input pointer parameter of funciton should not be NULL. If we declare som
Ping
On 6/1/20 2:50 PM, Daniel Henrique Barboza wrote:
Hi,
This series implements a convenience feature for the case where
the user defines an incomplete NUMA topology in the domain,
when the sum of all cpus in each NUMA cell is less than the
maximum vcpus count of the domain.
This is an
Ping
On 6/2/20 10:30 AM, Daniel Henrique Barboza wrote:
No functional changes made from the previous version. Just a
rebase and a trivial conflict fix in news.xml after Libvirt
6.4.0 release.
changes in v6:
- fixed news.xml conflict after 6.4.0 release, moved the change
to 6.5.0
- added
use a tap device connected to a bridge.
Signed-off-by: Laine Stump
---
Reviewed-by: Daniel Henrique Barboza
On 6/2/20 5:53 AM, Igor Mammedov wrote:
On Mon, 1 Jun 2020 17:14:20 -0300
Daniel Henrique Barboza wrote:
[...]
An ideal situation would be QEMU to never accept incomplete NUMA topologies
in the first place.
At least with your series I can safely drop deprecated incomplete NUMA
adapted to
handle the new array instead. virDomainDefParseXML() TPM related
code was adapted to handle the parsing of an extra TPM device.
TPM validations after this new scenario will be updated in
the next patch.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henriq
ibvir-list/2020-May/msg00642.html
v2 link: https://www.redhat.com/archives/libvir-list/2020-May/msg00604.html
v1 link: https://www.redhat.com/archives/libvir-list/2020-May/msg00351.html
Daniel Henrique Barboza (10):
docs: documentation and schema for the new TPM Proxy model
qemu: Extend QEMU ca
single TPM Proxy devices
And these combinations in the same domain are NOT valid:
- 2 or more TPM devices
- 2 or more TPM Proxy devices
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain.c
Add tests for both supported scenarios: a single TPM Proxy and
a TPM Proxy with a regular TPM device in the same domain.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
.../ppc64-tpmproxy-single.ppc64-latest.args | 34
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
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 18d96af048..fc41e53d1d 100644
--- a/docs/news.xml
+++ b/docs/news.xml
QEMU capabilities for this device again inside
qemu_command.c.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_alias.c | 5 -
src/qemu/qemu_command.c | 27 ++-
2 files changed, 30 insertions(+), 2 dele
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.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
tests
qemuExtDevicesInitPaths() does not need 'ret'.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_extdevice.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_extdevice.c
clause instead.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_tpm.c | 44 +
src/security/security_selinux.c | 16 ++--
src/security/virt-aa-helper.c | 7 +-
tests/qemuxml2
H_TPM_COMM
hypercall to connect with the TPM Resource Manager, enabling
the guest to open and close TPM sessions with the host TPM.
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Reviewed-by: Ján Tomko
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_capabilities.c
for the 'passthrough' backend.
An example of a TPM Proxy device connected to a TPM Resource Manager
'/dev/tpmrm0' will look like this:
Tested-by: Satheesh Rajendran
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
docs/formatdomain.html.in
On 6/1/20 4:40 PM, Peter Krempa wrote:
On Mon, Jun 01, 2020 at 14:50:41 -0300, Daniel Henrique Barboza wrote:
Now that we have the auto-fill code in place, and with proper documentation
to let the user know that (1) we will auto-fill the NUMA cpus up to the
number to maximum VCPUs number if
.
This reverts commit 38d2e033686b5cc274f8f55075ce1985b71e329a.
CC: Maxiwell S. Garcia
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_validate.c | 19 +--
1 file changed, 5 insertions(+), 14 deletions(-)
diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
These helpers will be used in an auto-fill feature for incomplete
NUMA topologies in the next patch.
Signed-off-by: Daniel Henrique Barboza
---
src/conf/numa_conf.c | 46
src/conf/numa_conf.h | 3 +++
src/libvirt_private.syms | 1 +
3 files
added to node 0:
16
[...]
POWER9
[1] https://www.redhat.com/archives/libvir-list/2019-June/msg00263.html
Daniel Henrique Barboza (5):
numa_conf.c: add helper functions for cpumap operations
qemu_domain.c: NUMA CPUs auto-fill for incom
ss of QEMU changes in the future.
The idea is to encourage the user to provide a complete NUMA CPU topology,
not relying on the CPU auto fill mechanic.
Signed-off-by: Daniel Henrique Barboza
---
docs/formatdomain.html.in | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --
2019-June/msg00263.html
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain.c | 47 ++
src/qemu/qemu_domain.h | 4
src/qemu/qemu_driver.c | 9
3 files changed, 60 insertions(+)
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu
Add a unit test to verify the NUMA vcpus autocomplete implemented
in the previous patch.
Signed-off-by: Daniel Henrique Barboza
---
.../numavcpus-topology-mismatch.xml | 37 ++
...avcpus-topology-mismatch.x86_64-latest.xml | 38 +++
tests
On 5/27/20 3:42 PM, Stefan Berger wrote:
On 5/21/20 9:07 AM, Daniel Henrique Barboza wrote:
A TPM Proxy device can coexist with a regular TPM, but the
[...]
diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c
index 07431343ed..4c26070022 100644
--- a/src/qemu
Ping
On 5/21/20 10:07 AM, Daniel Henrique Barboza wrote:
changes in v5:
- rebased and fixed commits to master at d265171b5784
- moved two TPMs validation from domain_conf.c (patch 05) to
qemu_domain.c (patch 06)
Gitlab tree: https://gitlab.com/danielhb/libvirt/tree/spapr_tpm_proxy_v5
v4
that PSeries is currently the only
exception to this logic. Let's make it official.
https://bugzilla.redhat.com/show_bug.cgi?id=1660711
Suggested-by: Jiri Denemark
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_process.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/
changes in v2:
- resending only patch 5/5
- changed the 'if' placement to qemuProcessRefreshCPU as suggested by
Jiri Denemark
- changed the commit msg to reflect the new intention of the patch
link to v1: https://www.redhat.com/archives/libvir-list/2020-May/msg01049.html
Daniel Henriq
On 5/25/20 7:38 AM, Jiri Denemark wrote:
On Fri, May 22, 2020 at 16:56:20 -0300, Daniel Henrique Barboza wrote:
Commit v3.10.0-182-g237f045d9a ("qemu: Ignore fallback CPU attribute
on reconnect") forced CPU 'fallback' to ALLOW, regardless of user
choice. This fixed
Use automatic cleanup of variables.
Signed-off-by: Daniel Henrique Barboza
---
src/cpu/cpu_arm.c | 14 +-
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c
index 6f6c6a1479..cd4f720c95 100644
--- a/src/cpu/cpu_arm.c
+++ b/src/cpu
Use automatic cleanup on qemuProcessUpdateCPU and the functions called
by it.
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_process.c | 50 ++---
1 file changed, 17 insertions(+), 33 deletions(-)
diff --git a/src/qemu/qemu_process.c b/src/qemu
Hi,
Patch 5/5 contains a fix for [1]. The first 4 patches are
g_auto() cleanups I made along the way while investigating
the bug.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1660711
Daniel Henrique Barboza (5):
cpu_conf.c: modernize virCPUDefCopyWithoutModel and virCPUDefCopy
PSeries is currently the only
exception to this logic. Let's make it official.
https://bugzilla.redhat.com/show_bug.cgi?id=1660711
CC: Jiri Denemark
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_process.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/s
Use automatic cleanup of variables.
Signed-off-by: Daniel Henrique Barboza
---
src/conf/cpu_conf.c | 22 +++---
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c
index 07404c6fb0..c6d36e0cb5 100644
--- a/src/conf/cpu_conf.c
Use automatic cleanup of variables.
Signed-off-by: Daniel Henrique Barboza
---
src/cpu/cpu_s390.c | 18 +++---
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/src/cpu/cpu_s390.c b/src/cpu/cpu_s390.c
index dd030c5a11..c1c5686244 100644
--- a/src/cpu/cpu_s390.c
+++ b
Reviewed-by: Stefan Berger
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
QEMU capabilities for this device again inside
qemu_command.c.
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_alias.c | 5 -
src/qemu/qemu_command.c | 27 ++-
2 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/src
adapted to
handle the new array instead. virDomainDefParseXML() TPM related
code was adapted to handle the parsing of an extra TPM device.
TPM validations after this new scenario will be updated in
the next patch.
Signed-off-by: Daniel Henrique Barboza
---
src/conf/domain_audit.c | 4 +--
This trivial rework is aimed to reduce the amount of line changes
made by the next patch, when 'def->tpm' will become a 'def->tpms'
array.
Instead of using a 'switch' where only the VIR_DOMAIN_TPM_TYPE_EMULATOR
label does something, use an 'if' c
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
for the 'passthrough' 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.rn
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
qemuExtDevicesInitPaths() does not need 'ret'.
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_extdevice.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c
index
single TPM Proxy devices
And these combinations in the same domain are NOT valid:
- 2 or more TPM devices
- 2 or more TPM Proxy devices
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain.c | 37 +
src/qemu/qemu_validate.c | 19
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
/msg00814.html
v3 link: https://www.redhat.com/archives/libvir-list/2020-May/msg00642.html
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 Barboza (10):
docs: documentation and
y domain_conf.c will
only handle the XML parsing. Only patches 05 and 06 will be affected.
Thanks,
DHB
On 5/15/20 7:24 PM, Daniel Henrique Barboza wrote:
changes in v4:
- patch 1: added missing tags
- comma-escaped the path string in qemu_command.c (patch 8)
- moved validations not-XML-parsi
From: Shivaprasad G Bhat
PCI hostdevs once part of the domain can't be changed.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_driver.c | 20
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_dri
changes in regular device hotplug mechanics were made.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain_address.c| 74 +++
src/qemu/qemu_domain_address.h| 4 +
src/qemu/qemu_driver.c
ed devices when
setting or evaluating aggregateSlotIdx and when we're about
to execute device_add/device_del in QEMU. For hotplug we'll
also skip adress assignment. For unplug we won't mark
the device for removal since we won't be executing device_del
on it.
Signed-off-by: Dan
vices.
DetachMultifunctionDevice() is not considering the new
multifunction unplug mechanics for the Pseries guest, present
in QEMU 4.2 (the newest release ATM), to not break compatibility
with older QEMU versions. This will be done properly in a
later patch.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Hen
From: Shivaprasad G Bhat
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/conf/device_conf.h | 6 +++
src/conf/domain_addr.c | 84 +++-
src/conf/domain_addr.h | 5 +++
src/libvirt_private.syms | 1 +
src/util
code in qemuDomainDetachMultifunctionDevice()
can be simplified if the domain is running with QEMU 4.2.0 or
newer.
[1] https://github.com/qemu/qemu/commit/02a1536eee333123c7735cd36484da53b860fbb7
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_hotplug.c | 39
the number of naliases to be unplugged when
calculating unplugTimeout.
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_hotplug.c | 25 +
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index
From: Shivaprasad G Bhat
No functional change.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_hotplug.c | 80 ++---
src/qemu/qemu_hotplug.h | 5 +++
2 files changed, 56 insertions(+), 29 deletions(-)
diff --git
From: Shivaprasad G Bhat
No functional change.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_hotplug.c | 24 ++--
1 file changed, 10 insertions(+), 14 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
From: Shivaprasad G Bhat
With multifunction devices, multiple delete requests are sent
to qemu and all the requests should be queued up.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain.h | 3 ++-
src/qemu/qemu_hotplug.c | 41
From: Shivaprasad G Bhat
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/hypervisor/virhostdev.c | 29 +
src/hypervisor/virhostdev.h | 2 ++
src/libvirt_private.syms| 1 +
3 files changed, 32 insertions(+)
diff --git a/src
aniel Henrique Barboza
---
src/qemu/qemu_hotplug.c | 32 ++--
1 file changed, 22 insertions(+), 10 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 172747b2e2..d88a0922d4 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotp
From: Shivaprasad G Bhat
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain.c | 74 ++
src/qemu/qemu_domain.h | 7
2 files changed, 81 insertions(+)
diff --git a/src/qemu/qemu_domain.c b/src/qemu
://www.redhat.com/archives/libvir-list/2020-January/msg01377.html
link to v1:
https://www.redhat.com/archives/libvir-list/2020-January/msg01377.html
Daniel Henrique Barboza (4):
utils: PCI multifunction detection helpers
qemu_hotplug.c: tune unplugTimeout for multifunction detach
qemu_hotplug: do not
From: Shivaprasad G Bhat
Helps calling multiple time per device.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_driver.c | 23 +++
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu
This patch introduces two helpers that will be used in the
next patches, virPCIDeviceIsMultifunction() and
virHostdevIsPCIMultifunctionDevice().
Signed-off-by: Daniel Henrique Barboza
---
src/conf/domain_conf.c | 31 +++
src/conf/domain_conf.h | 3 +++
src
w the test suit to recognize the
0005:90:01.N test device as multifunction.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain.h| 11 ++
src/qemu/qemu_domain_address.c| 150 +-
tests/qemuhot
1 is reserved for the pcie-root-ports and >= 2 for the the PCI
Multifunction cards(coming..).
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/conf/device_conf.h | 1 +
src/conf/domain_addr.c | 46 +--
src/conf/domai
From: Shivaprasad G Bhat
This helps calling the routines with a list of devices.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_driver.c | 45 +-
1 file changed, 36 insertions(+), 9 deletions(-)
diff --git a
: Daniel Henrique Barboza
---
src/conf/domain_conf.c | 27 +++
src/conf/domain_conf.h | 3 +++
src/libvirt_private.syms | 1 +
3 files changed, 31 insertions(+)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 0d289fbab5..fcd390ace4 100644
--- a/src/conf
we'll use virDomainDeviceDefListPtr
lists to call (almost) the same hotplug/unplug mechanics we have
today for each hostdev in the list.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/conf/domain_conf.c | 166 +++
src/con
From: Shivaprasad G Bhat
It is invalid to have secondary functions without the primary
functions part of the domain. Prevents new domain define, but
existing ones would not vanish.
Signed-off-by: Shivaprasad G Bhat
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_domain_address.c
There are 4 formats available (x:stderr, x:syslog:name,
x:file:file_path, x:journald), not 3. Use "the following"
instead of the actual number to avoid the need to update
the number every time a new form is added/removed.
Suggested-by: Pino Toscano
Signed-off-by: Daniel Henriq
On 5/19/20 6:27 PM, Pino Toscano wrote:
On Tuesday, 19 May 2020 21:55:19 CEST Daniel Henrique Barboza wrote:
There are 4 formats available (x:stderr, x:syslog:name,
x:file:file_path, x:journald), not 3.
Signed-off-by: Daniel Henrique Barboza
---
docs/logging.html.in | 2 +-
1 file
There are 4 formats available (x:stderr, x:syslog:name,
x:file:file_path, x:journald), not 3.
Signed-off-by: Daniel Henrique Barboza
---
docs/logging.html.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/logging.html.in b/docs/logging.html.in
index 65c13e8a19
On 5/18/20 10:40 AM, Ján Tomko wrote:
Thanks to valgrind
Ján Tomko (2):
qemu: do not leak the directory in virQEMUDriverConfigLoadMemoryEntry
qemu: only return two values in virQEMUDriverConfigLoadMemoryEntry
Reviewed-by: Daniel Henrique Barboza
src/qemu/qemu_conf.c | 4
On 5/14/20 10:07 PM, Daniel Henrique Barboza wrote:
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
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
This trivial rework is aimed to reduce the amount of line changes
made by the next patch, when 'def->tpm' will become a 'def->tpms'
array.
Instead of using a 'switch' where only the VIR_DOMAIN_TPM_TYPE_EMULATOR
label does something, use an 'if' c
Reviewed-by: Stefan Berger
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
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
in are NOT valid:
- 2 or more TPM devices
- 2 or more TPM Proxy devices
Signed-off-by: Daniel Henrique Barboza
---
src/conf/domain_audit.c | 4 +-
src/conf/domain_conf.c | 72 -
src/conf/domain_conf.h | 6 ++-
src/qemu/qemu_alias.c
QEMU capabilities for this device again inside
qemu_command.c.
Reviewed-by: Stefan Berger
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_alias.c | 5 -
src/qemu/qemu_command.c | 27 ++-
2 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/src
Previous patch handled the conversion of def->tpm to the
array def->tpms. What we're missing now is the validation
code to make the VIR_DOMAIN_TPM_MODEL_SPAPR_PROXY model
exclusive to PPC64 guests and VIR_DOMAIN_TPM_TYPE_PASSTHROUGH
backend.
Signed-off-by: Daniel Henrique Barboza
--
qemuExtDevicesInitPaths() does not need 'ret'.
Signed-off-by: Daniel Henrique Barboza
---
src/qemu/qemu_extdevice.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c
index 2096272761..2ff3f68f5d 100644
---
msg00604.html
v1 link: https://www.redhat.com/archives/libvir-list/2020-May/msg00604.html
Daniel Henrique Barboza (10):
docs: documentation and schema for the new TPM Proxy model
qemu: Extend QEMU capabilities with 'spapr-tpm-proxy'
qemu_extdevice.c: remove unneeded 'ret'
801 - 900 of 1918 matches
Mail list logo