Re: [PATCH 26/32] qemu: Rewrite bitmap handling for block commit

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Reuse qemuBlockGetBitmapMergeActions which allows to remove the ad-hoc s/allows to remove/allows the removal of/ implementatio of bitmap merging for block commit. The new approach is implementation way simpler and more robust and also allows us to

Re: [PATCH 25/32] qemublocktest: Add 'snapshots' tests for backup bitmap handling

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: The 'snapshots' case has multiple layers so we need to make sure that the bitmaps are merged with the appropriate temporary bitmaps formatted from the allocation bitmap for any backing chain layer above. Signed-off-by: Peter Krempa --- tests/qemublockt

Re: [PATCH 24/32] qemublocktest: Add 'basic' tests for backup bitmap handling

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: The 'basic' case is just a single backing store layer containing the bitmaps so we just copy the bitmaps over to the backup bitmap. Signed-off-by: Peter Krempa --- tests/qemublocktest.c | 4 +++ .../backupmerge/basic-deep-out.

Re: [PATCH 23/32] qemu: backup: Rewrite backup bitmap handling to the new bitmap semantics

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Reuse qemuBlockGetBitmapMergeActions which allows to remove the ad-hoc allows the removal of the iplementatio of bitmap merging for backup. The new approach is simpler implementation and also more robust in case some of the bitmaps break as they re

Re: [PATCH 22/32] qemu: block: Add universal helper for merging dirty bitmaps for all scenarios

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Add a function which allows to merge bitmaps according to the new Another reminder about "allows to $VERB" being non-idiomatic :) s/allows to merge/allows merging/ semantics and will allow to replace all the specific ad-hoc functions s/allow to repl

[libvirt PATCH v4 06/12] nodedev: add mdev support to virNodeDeviceCreateXML()

2020-06-18 Thread Jonathon Jongsma
With recent additions to the node device xml schema, an xml schema can now describe a mdev device sufficiently for libvirt to create and start the device using the mdevctl utility. Note that some of the the configuration for a mediated device must be passed to mdevctl as a JSON-formatted file. In

[libvirt PATCH v4 09/12] nodedev: add mdev support to virNodeDeviceDestroy()

2020-06-18 Thread Jonathon Jongsma
Add the ability to destroy mdev node devices via the mdevctl utility. Signed-off-by: Jonathon Jongsma --- src/node_device/node_device_driver.c | 33 src/node_device/node_device_driver.h | 2 ++ 2 files changed, 35 insertions(+) diff --git a/src/node_device/node_dev

[libvirt PATCH v4 03/12] nodedev: add support for mdev attributes

2020-06-18 Thread Jonathon Jongsma
Mediated devices support arbitrary vendor-specific attributes that can be attached to a mediated device. These attributes are ordered, and are written to sysfs in order after a device is created. This patch adds support for these attributes to the mdev data types and XML schema. Signed-off-by: Jon

[libvirt PATCH v4 07/12] nodedev: Build a non-loadable driver lib

2020-06-18 Thread Jonathon Jongsma
In order to test the nodedev driver, we need to link against a non-loadable module. Similar to other loadable modules already in the repository, create an _impl library that can be linked against the unit tests and then create a loadable module from that. Signed-off-by: Jonathon Jongsma --- src/

[libvirt PATCH v4 12/12] news: mediated devices can be created

2020-06-18 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- NEWS.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 20964b94d7..42d159b233 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -21,6 +21,13 @@ v6.5.0 (unreleased) It's possible to either specify new value as a string or p

[libvirt PATCH v4 10/12] nodedev: Add testing for 'mdevctl stop'

2020-06-18 Thread Jonathon Jongsma
Test that we run 'mdevctl' with the proper arguments when we destroy mediated devices with virNodeDeviceDestroy() Signed-off-by: Jonathon Jongsma --- tests/nodedevmdevctldata/mdevctl-stop.argv | 1 + tests/nodedevmdevctltest.c | 41 ++ 2 files changed, 42 ins

[libvirt PATCH v4 04/12] nodedev: refactor nodeDeviceFindNewDevice()

2020-06-18 Thread Jonathon Jongsma
In preparation for creating mediated devices in libvirt, we will need to wait for new mediated devices to be created as well. Refactor nodeDeviceFindNewDevice() so that we can re-use the main logic from this function to wait for different device types by passing a different 'find' function. Signed

[libvirt PATCH v4 08/12] nodedev: Add testing for 'mdevctl start'

2020-06-18 Thread Jonathon Jongsma
Test that we run 'mdevctl' with the proper arguments when creating new mediated devices with virNodeDeviceCreateXML(). Signed-off-by: Jonathon Jongsma --- build-aux/syntax-check.mk | 2 +- tests/Makefile.am | 15 + ...019_36ea_4111_8f0a_8c9a70e2

[libvirt PATCH v4 11/12] docs: note node device fields that are read-only

2020-06-18 Thread Jonathon Jongsma
As noted by Erik Skultety, we use the same XML schema to report existing devices and to define new devices. However, some schema elements are "read-only". In other words, they are used to report information from the node device driver and cannot be used to define a new device. Note these in the doc

[libvirt PATCH v4 05/12] nodedev: store mdev UUID in mdev caps

2020-06-18 Thread Jonathon Jongsma
In order to allow libvirt to create and start new mediated devices, we need to be able to verify that the device has been started. In order to do this, we'll need to save the UUID of newly-discovered devices within the virNodeDevCapMdev structure. This allows us to search the device list by UUID an

[libvirt PATCH v4 00/12] Add ability to create mediated devices in libvirt

2020-06-18 Thread Jonathon Jongsma
This is the first portion of an effort to support persistent mediated devices with libvirt. This first series simply enables creating and destroying non-persistent mediated devices via the virNodeDeviceCreateXML() and virNodeDeviceDestroy() functions. The 'mdevctl' utility[1] provides the backend i

[libvirt PATCH v4 02/12] nodedev: factor out nodeDeviceHasCapability()

2020-06-18 Thread Jonathon Jongsma
Currently nodeDeviceCreateXML() and nodeDeviceDestroy() only support NPIV HBAs, but we want to be able to create mdev devices as well. This is a first step to enabling that support. Signed-off-by: Jonathon Jongsma --- src/node_device/node_device_driver.c | 91 ++-- 1 file

[libvirt PATCH v4 01/12] nodedev: make iommuGroup optional for mdevs

2020-06-18 Thread Jonathon Jongsma
When parsing a nodedev xml file, the iommuGroup element should be optional. This element should be read-only and is determined by the device driver. While this is a change to existing behavior, it doesn't break backwards-compatibility because it makes the parser less strict. Signed-off-by: Jonatho

[libvirt PATCH] ci: Use fedora image for code style checking

2020-06-18 Thread Jonathon Jongsma
Centos does not have the cppi package, so some code style checks are skipped. Switch to a fedora image to do the code style checks. Signed-off-by: Jonathon Jongsma --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfb66a6

Re: [PATCH 21/32] qemublocktest: Re-introduce testing of checkpoint deletion

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Exercise the now arguably simpler checkpoint deletion code on the 'basic', 'snapshots', and 'synthetic' test data sets. Signed-off-by: Peter Krempa --- tests/qemublocktest.c | 18 .../checkpointdelete/basic-current-out

Re: [PATCH 20/32] qemublocktest: Rename TEST_CHECKPOINT_DELETE_MERGE to TEST_CHECKPOINT_DELETE

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Also rename the helper struct and function. Signed-off-by: Peter Krempa --- tests/qemublocktest.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) Mechanical. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer

Re: [PATCH 19/32] qemu: checkpoint: Don't merge checkpoints during deletion

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Now that we've switched to the simple handling, the first thing that can be massively simplified is checkpoint deletion. We now need to only go through the backing chain and find the appropriately named bitmaps and delete them, no complex lookups or mergin

Re: [PATCH] qemu: auto-assign hostdev interface devices to PCIe

2020-06-18 Thread Andrea Bolognani
On Wed, 2020-06-17 at 17:17 -0400, Laine Stump wrote: > Until recently, an would automatically be > assigned model "rtl8139" (the default on x86 machinetypes), which in > turn would lead to the device being assigned a PCI address on a > conventional PCI controller (i.e. a pcie-to-pci-bridge). If t

Re: [PATCH 18/32] qemublocktest: Add new 'synthetic' bitmap detection and validation test case

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Based on the 'snapshots' example with manual tweaks to introduce inactive, transient, inconsistent and duplicate bitmaps in various parts of the chain to excercise detection and new validation code. exercise Signed-off-by: Peter Krempa --- tests/qe

Re: [PATCH 17/32] qemublocktest: Re-add bitmap validation for 'basic' and 'snapshots' cases

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Now that we've updated both the test data and the validator to new semantics we can start testing again. Signed-off-by: Peter Krempa --- tests/qemublocktest.c | 12 1 file changed, 12 insertions(+) Reviewed-by: Eric Blake -- Eric Bla

Re: [PATCH 16/32] qemuBlockBitmapChainIsValid: Adjust to new semantics of bitmaps

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Reject duplicates and other problematic bitmaps according to the new semantics of bitmap use in libvirt. Signed-off-by: Peter Krempa --- src/qemu/qemu_block.c | 38 +++--- 1 file changed, 23 insertions(+), 15 deletions(

[libvirt PATCH 2/2] util: remove unused virKModConfig method

2020-06-18 Thread Daniel P . Berrangé
Using virKModConfig would not simplify any existing code. Signed-off-by: Daniel P. Berrangé --- src/libvirt_private.syms | 1 - src/util/virkmod.c | 19 --- src/util/virkmod.h | 1 - tests/virkmodtest.c | 29 - 4 files changed, 50 de

[libvirt PATCH 1/2] src: remove redundant arg to virKModLoad

2020-06-18 Thread Daniel P . Berrangé
All callers except for the test suite pass the same value for the second arg, so it can be removed, simplifying the code. Signed-off-by: Daniel P. Berrangé --- src/util/virfile.c | 2 +- src/util/virkmod.c | 8 +++- src/util/virkmod.h | 2 +- src/util/virpci.c | 2 +- tests/virkmodt

[libvirt PATCH 0/2] util: simplify virKMod code

2020-06-18 Thread Daniel P . Berrangé
Daniel P. Berrangé (2): src: remove redundant arg to virKModLoad util: remove unused virKModConfig method src/libvirt_private.syms | 1 - src/util/virfile.c | 2 +- src/util/virkmod.c | 27 ++- src/util/virkmod.h | 3 +- src/util/virpci.c| 2 +- tes

Re: [PATCH 15/32] qemublocktest: Replace 'snapshots' bitmap detection test case data

2020-06-18 Thread Peter Krempa
On Thu, Jun 18, 2020 at 09:58:35 -0500, Eric Blake wrote: > On 6/15/20 12:10 PM, Peter Krempa wrote: > > Use test data which conforms to the new semantics which changed in the > > previous patch. > > Well, a recent patch (the previous patch only touched tests, rather than > changing semantics) >

Re: [PATCH] qemu: auto-assign hostdev interface devices to PCIe

2020-06-18 Thread Paulo de Rezende Pinatti
On 17/06/20 23:17, Laine Stump wrote: [...] (Note to Paulo - I realize this doesn't describe exactly what happens on s390, since the default interface model in that case is "virtio" rather than "rtl8139", and this patch should actually cause no behavior change on S390. I'm Cc'ing you since yo

Re: [PATCH 15/32] qemublocktest: Replace 'snapshots' bitmap detection test case data

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Use test data which conforms to the new semantics which changed in the previous patch. Well, a recent patch (the previous patch only touched tests, rather than changing semantics) The test data was created by the same set of commands as originally i

[libvirt PATCH] qemu: don't continue loading caps if outdated

2020-06-18 Thread Daniel P . Berrangé
The XML format used for QEMU capabilities is not required to be stable across releases, as we invalidate the cache whenever the libvirt binary changes. We none the less always try to parse te entire XML file before we do any validity checks. Thus if we change the format of any part of the data, or

Re: [libvirt PATCH 0/4] cpu_map: Add some missing x86 features

2020-06-18 Thread Daniel P . Berrangé
On Wed, Jun 17, 2020 at 04:18:50PM +0200, Jiri Denemark wrote: > The features were added to QEMU long ago. > > Jiri Denemark (4): > cpu_map: Request test files update when adding x86 features > cpu_map: Add missing x86 features in 0x7 CPUID leaf > cpu_map: Add missing x86 features in 0x8

Re: [libvirt PATCH 0/4] cpu_map: Add some missing x86 features

2020-06-18 Thread Daniel P . Berrangé
On Wed, Jun 17, 2020 at 04:18:50PM +0200, Jiri Denemark wrote: > The features were added to QEMU long ago. > > Jiri Denemark (4): > cpu_map: Request test files update when adding x86 features > cpu_map: Add missing x86 features in 0x7 CPUID leaf > cpu_map: Add missing x86 features in 0x8

Re: [PATCH 14/32] qemublocktest: Replace 'basic' bitmap detection test case data

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Use test data which conforms to the new semantics which changed in the previous patch. The test data was created by the same set of commands as originally in commit 9aac9d5bdab039a50de2d8c627b3a1f1578ed471 Signed-off-by: Peter Krempa --- tests/qemublo

Re: [libvirt PATCH] Fix allocation of virDomainFSDef

2020-06-18 Thread Andrea Bolognani
On Thu, 2020-06-18 at 15:55 +0200, Ján Tomko wrote: > On a Thursday in 2020, Andrea Bolognani wrote: > > On Thu, 2020-06-18 at 14:13 +0200, Ján Tomko wrote: > > > Some less commonly used drivers were omitted when we switched > > > the allocator from a plain VIR_ALLOC to virDomainFSDefNew. > > > >

Re: [PATCH 13/32] qemu: checkpoint: Don't chain bitmaps for checkpoints

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Chaining bitmaps for checkpoints (disabling the active one and creating a new) severely overcomplicated all operations in regards to bitmaps. Specifically it requires us re-matching the on-disk state to the internal metadata and in case of merging during

Re: [PATCH 02/32] qemu: backup: Fix backup of disk skipped in an intermediate checkpoint

2020-06-18 Thread Peter Krempa
On Wed, Jun 17, 2020 at 13:21:04 -0500, Eric Blake wrote: > On 6/15/20 12:09 PM, Peter Krempa wrote: > > If a disk is not captured by one of the intermediate checkpoints the > > code would fail, but we can easily calculate the bitmaps to merge > > correctly by skipping over checkpoints which don't

Re: [libvirt PATCH] Fix allocation of virDomainFSDef

2020-06-18 Thread Ján Tomko
On a Thursday in 2020, Andrea Bolognani wrote: On Thu, 2020-06-18 at 14:13 +0200, Ján Tomko wrote: Some less commonly used drivers were omitted when we switched the allocator from a plain VIR_ALLOC to virDomainFSDefNew. Signed-off-by: Ján Tomko Fixes: da665fbd4858890fbb3bbf5da2a7b6ca37bb3220

Re: [libvirt PATCH] Fix allocation of virDomainFSDef

2020-06-18 Thread Andrea Bolognani
On Thu, 2020-06-18 at 14:13 +0200, Ján Tomko wrote: > Some less commonly used drivers were omitted when we switched > the allocator from a plain VIR_ALLOC to virDomainFSDefNew. > > Signed-off-by: Ján Tomko > Fixes: da665fbd4858890fbb3bbf5da2a7b6ca37bb3220 > > https://bugzilla.redhat.com/show_bug

[libvirt PATCH] util: remove outdated comment from virLogFormatString

2020-06-18 Thread Ján Tomko
Introduced by commit 72ab0b6dc8129a388aff260a6e444d48495b0e93 which added some code depending on libvirt's log format string into qemuProcessReadLogOutput. This function was deleted by commit 932534e85f34a479c7eac174e997bfd9c85bd22d later. Drop the comment. Signed-off-by: Ján Tomko Closes: https

[libvirt PATCH] Fix allocation of virDomainFSDef

2020-06-18 Thread Ján Tomko
Some less commonly used drivers were omitted when we switched the allocator from a plain VIR_ALLOC to virDomainFSDefNew. Signed-off-by: Ján Tomko Fixes: da665fbd4858890fbb3bbf5da2a7b6ca37bb3220 https://bugzilla.redhat.com/show_bug.cgi?id=1846450 --- src/openvz/openvz_conf.c | 2 +- src/vbox/vbo

Re: [PATCH 1/1] NEWS.rst: document the 'auto-fill' feature

2020-06-18 Thread Michal Privoznik
On 6/18/20 1:12 PM, Daniel Henrique Barboza wrote: Although this can be considered a new feature, from the user standpoint is more of a QoL improvement. Suggested-by: Michal Privoznik Signed-off-by: Daniel Henrique Barboza --- NEWS.rst | 8 1 file changed, 8 insertions(+) Review

Re: [PATCH v2 0/4] NUMA CPUs 'auto-fill' for incomplete topologies

2020-06-18 Thread Daniel Henrique Barboza
On 6/18/20 7:34 AM, Michal Privoznik wrote: On 6/17/20 10:08 PM, Daniel Henrique Barboza wrote: On 6/17/20 4:19 PM, Michal Privoznik wrote: On 6/10/20 8:35 PM, Daniel Henrique Barboza wrote: changes in v2: - removed patch 5/5 Gitlab link: https://gitlab.com/danielhb/libvirt/-/tree/vcpus_

[PATCH 1/1] NEWS.rst: document the 'auto-fill' feature

2020-06-18 Thread Daniel Henrique Barboza
Although this can be considered a new feature, from the user standpoint is more of a QoL improvement. Suggested-by: Michal Privoznik Signed-off-by: Daniel Henrique Barboza --- NEWS.rst | 8 1 file changed, 8 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index a16903c7c3..20964b94d7 1

Re: [PATCH v2 1/4] numa_conf.c: add helper functions for cpumap operations

2020-06-18 Thread Daniel Henrique Barboza
On 6/18/20 7:34 AM, Michal Privoznik wrote: On 6/10/20 8:35 PM, Daniel Henrique Barboza wrote: 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

Re: [PATCH v2 2/4] qemu_domain.c: NUMA CPUs auto-fill for incomplete topologies

2020-06-18 Thread Michal Privoznik
On 6/10/20 8:35 PM, Daniel Henrique Barboza wrote: Libvirt allows the user to define an incomplete NUMA topology, where the sum of all CPUs in each cell is less than the total of VCPUs. What ends up happening is that QEMU allocates the non-enumerated CPUs in the first NUMA node. This behavior is

Re: [PATCH v2 0/4] NUMA CPUs 'auto-fill' for incomplete topologies

2020-06-18 Thread Michal Privoznik
On 6/17/20 10:08 PM, Daniel Henrique Barboza wrote: On 6/17/20 4:19 PM, Michal Privoznik wrote: On 6/10/20 8:35 PM, Daniel Henrique Barboza wrote: changes in v2: - removed patch 5/5 Gitlab link: https://gitlab.com/danielhb/libvirt/-/tree/vcpus_numa_v2 v1 link: https://www.redhat.com/archiv

Re: [PATCH v2 1/4] numa_conf.c: add helper functions for cpumap operations

2020-06-18 Thread Michal Privoznik
On 6/10/20 8:35 PM, Daniel Henrique Barboza wrote: 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

Re: [libvirt-sandbox PATCH] gitlab: introduce CI jobs testing git master & distro libvirt

2020-06-18 Thread Andrea Bolognani
On Wed, 2020-06-17 at 19:06 +0100, Daniel P. Berrangé wrote: [...] > +.script_variables: &script_variables | > + export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)" > + export SCRATCH_DIR="/tmp/scratch" > + export VROOT="$SCRATCH_DIR/vroot" > + export CCACHE_DIR="$PWD/ccache" > + export CCACHE_M

Re: [PATCH 1/1] configure: prefer python's sphinx module

2020-06-18 Thread Peter Maydell
On Tue, 16 Jun 2020 at 20:09, John Snow wrote: > Using an explicit entry path script for sphinx can lead to confusing > results: If the python binary belongs to a virtual environment, our > configure script may still select a sphinx script that belongs to the > system distribution packages. > > It

Re: CFP: KVM Forum 2020 virtual experience

2020-06-18 Thread Sean Christopherson
On Wed, Jun 17, 2020 at 05:09:31PM +0200, Paolo Bonzini wrote: > In order to allow everyone to present at KVM Forum, including people > who might not have been able to travel to Dublin, we are extending the > submission deadline for presentations for 6 more weeks! > > * CFP Closes: Sunday, August

Re: [PATCH 6/6] qemuSecurityDomainRestorePathLabel: Introduce @ignoreNS argument

2020-06-18 Thread Erik Skultety
On Wed, Jun 17, 2020 at 01:35:40PM +0200, Michal Privoznik wrote: > In a few cases we might set seclabels on a path outside of > namespaces. For instance, when restoring a domain from a file, > the file is opened, relabelled and only then the namespace is > created and the FD is passed to QEMU (see

Re: [PATCH 5/6] qemu: Rename qemuSecurityRestoreSavedStateLabel()

2020-06-18 Thread Erik Skultety
On Wed, Jun 17, 2020 at 01:35:39PM +0200, Michal Privoznik wrote: > The function calls virSecurityManagerDomainRestorePathLabel() > after all. > > Signed-off-by: Michal Privoznik > --- Reviewed-by: Erik Skultety

Re: [PATCH 4/6] security: Rename virSecurityManagerRestoreSavedStateLabel()

2020-06-18 Thread Erik Skultety
On Wed, Jun 17, 2020 at 01:35:38PM +0200, Michal Privoznik wrote: > The new name is virSecurityManagerDomainRestorePathLabel(). > > Signed-off-by: Michal Privoznik > --- Reviewed-by: Erik Skultety

Re: [PATCH 2/6] qemu: Drop unused qemuSecuritySetSavedStateLabel()

2020-06-18 Thread Erik Skultety
On Wed, Jun 17, 2020 at 01:35:36PM +0200, Michal Privoznik wrote: > After previous commit this function is used no more. > > Signed-off-by: Michal Privoznik > --- Reviewed-by: Erik Skultety

Re: [PATCH 3/6] security: Drop unused virSecurityManagerSetSavedStateLabel()

2020-06-18 Thread Erik Skultety
On Wed, Jun 17, 2020 at 01:35:37PM +0200, Michal Privoznik wrote: > After previous commit this function is used no more. > > Signed-off-by: Michal Privoznik > --- Reviewed-by: Erik Skultety

Re: [PATCH 1/6] qemu: Use qemuSecurityDomainSetPathLabel() to set seclabes on not saved state files

2020-06-18 Thread Erik Skultety
On Wed, Jun 17, 2020 at 01:35:35PM +0200, Michal Privoznik wrote: > There are two places within qemu driver that misuse > qemuSecuritySetSavedStateLabel() to set seclabels on tempfiles > that are not state files: qemuDomainScreenshot() and > qemuDomainMemoryPeek(). They are doing so because of lack

[PATCH libvirt v2 0/5] Fix zPCI address auto-generation on s390

2020-06-18 Thread Shalini Chellathurai Saroja
The zPCI address validation or autogeneration does not work as expected in the following scenarios 1. uid = 0 and fid = 0 2. uid = 0 and fid > 0 3. uid = 0 and fid not specified 4. uid not specified and fid > 0 5. 2 zPCI devices with uid > 0 and fid not specified. This is because of the following

[PATCH libvirt v2 4/5] tests: qemu: add more tests for ZPCI on S390

2020-06-18 Thread Shalini Chellathurai Saroja
1. Test for auto-generating uids while specifying valid fids 2. Test for auto-generating fids while specifying valid uids 3. Test for parse error while specifying a valid fid and an invalid uid 4. Test for parse error while specifying two ZPCI devices with same uid and fid addresses 5. Test f

[PATCH libvirt v2 2/5] conf: fix zPCI address auto-generation on s390

2020-06-18 Thread Shalini Chellathurai Saroja
Let us fix the issues with zPCI address validation and auto-generation on s390. Currently, there are two issues with handling the ZPCI address extension. Firstly, when the uid is to be auto-generated with a specified fid, .i.e.: ... ... we expect uid='0x0001' (or the n

[PATCH libvirt v2 5/5] tests: add test with PCI and CCW device

2020-06-18 Thread Shalini Chellathurai Saroja
Add test with a ZPCI host device and a CCW memballoon device to ensure that CCW address remains the default address assigned. Signed-off-by: Boris Fiuczynski Signed-off-by: Shalini Chellathurai Saroja Reviewed-by: Bjoern Walk Reviewed-by: Boris Fiuczynski --- .../hostdev-vfio-zpci-ccw-memball

[PATCH libvirt v2 1/5] conf: use g_autofree to ensure automatic cleanup

2020-06-18 Thread Shalini Chellathurai Saroja
Signed-off-by: Bjoern Walk Signed-off-by: Shalini Chellathurai Saroja Reviewed-by: Boris Fiuczynski --- src/conf/device_conf.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/conf/device_conf.c b/src/conf/device_conf.c index 4dbd5c1a..1d06981a 100644 -

[PATCH libvirt v2 3/5] qemu: move ZPCI uid validation into device validation

2020-06-18 Thread Shalini Chellathurai Saroja
The ZPCI device validation is specific to qemu. So, let us move the ZPCI uid validation out of domain xml parsing into qemu domain device validation. Signed-off-by: Shalini Chellathurai Saroja Reviewed-by: Bjoern Walk Reviewed-by: Boris Fiuczynski --- src/conf/device_conf.c | 3 --- src/lib

Re: [PATCH] qemu: do not add model when actual iface type is hostdev

2020-06-18 Thread Boris Fiuczynski
On 6/17/20 7:06 PM, Laine Stump wrote: On 6/17/20 12:55 PM, Boris Fiuczynski wrote: Hi Laine, do you plan to push this patch? Already did, about an hour ago. Thanks and sorry I missed it. -- Mit freundlichen Grüßen/Kind regards Boris Fiuczynski IBM Deutschland Research & Development G