On Mon, Feb 10, 2020 at 07:05:07PM -0300, Daniel Henrique Barboza wrote:
This new util function puts the duplicated code from
qemu_cgroup.c:qemuSetupBlkioCgroup() and
lxc_cgroup.c:virLXCCgroupSetupBlkioTune() in a single
function to be used in both places.
Signed-off-by: Daniel Henrique Barboza
We no longer implement a wrapper over strdup - g_strdup
is preferred.
The use of strncpy was removed in:
commit 7d70a63b947e9a654a4e3fffa0ffa355f5549ec7
util: Improve virStrncpy() implementation
Signed-off-by: Ján Tomko
---
build-aux/syntax-check.mk | 6 ++
1 file changed, 2 insertions(
Do not look for exception patterns in ${srcdir}./x-$@
nor the VC_LIST_EXCEPT_DEFAULT variable.
This also removes the default exception for ChangeLog.
Signed-off-by: Ján Tomko
---
build-aux/syntax-check.mk | 2 --
1 file changed, 2 deletions(-)
diff --git a/build-aux/syntax-check.mk b/build-aux
Both xen/xend_internal and bootstrap.conf have been deleted from git.
Signed-off-by: Ján Tomko
---
build-aux/syntax-check.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk
index 2c1ec877b1..3c1f46cb98 100644
--- a/bui
$ date +%Y
2020
Signed-off-by: Ján Tomko
---
build-aux/syntax-check.mk | 8
1 file changed, 8 deletions(-)
diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk
index 52a6062ad5..23d2bf8b34 100644
--- a/build-aux/syntax-check.mk
+++ b/build-aux/syntax-check.mk
@@ -1655
Our last conforming ChangeLog was removed from git in 2009 by:
commit 27b175b9a254d5dc4bbc1d6f198f58b287e516a2
generate ChangeLog from git logs into distribution tarball
Ten years later, it reappeared in:
commit ce97c33a795dec053f1e85c65ecd924b8c6ec4ba
maint: Stop generating ChangeLog from
This exception is no longer useful since README is just a symlink
to README.md, which is a subject to this check already.
Signed-off-by: Ján Tomko
---
build-aux/syntax-check.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.
As foretold, fixed automake is so common nowadays even Ubuntu 16.04
and Debian 9 have 1.11.6 as the oldest available version.
Signed-off-by: Ján Tomko
---
build-aux/syntax-check.mk | 30 --
1 file changed, 30 deletions(-)
diff --git a/build-aux/syntax-check.mk b/buil
NEWS was replaced by docs/news.html, so the pre-requisite for this
rule is not fulfilled.
Also, PREV_VERSION_REGEXP does not seem to be defined anywhere.
Signed-off-by: Ján Tomko
---
build-aux/syntax-check.mk | 14 --
1 file changed, 14 deletions(-)
diff --git a/build-aux/syntax-ch
Using '^' in in_vc_files assumes the build is happening
in srcdir, which is no longer possible as of:
commit f96395e78eaccffbf128336382c74b1250f04032
Signed-off-by: Ján Tomko
---
build-aux/syntax-check.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-aux/syntax-check.
And drop some legacy stuff, since I already had to open the file.
Ján Tomko (9):
syntax-check: do not enforce ChangeLog syntax
syntax-check: fix sc-prohibit-cross-inclusion
syntax-check: drop vulnerable Makefile checks
syntax-check: drop CVS keyword expansion check
syntax-check: drop upd
virLXCCgroupSetupMemTune() and qemuSetupMemoryCgroup() shares
duplicated code that can be put in a new helper to avoid
code repetition.
Signed-off-by: Daniel Henrique Barboza
---
src/libvirt_private.syms | 1 +
src/lxc/lxc_cgroup.c | 14 +-
src/qemu/qemu_cgroup.c | 14 +---
The new virCgroupSetupBlkioTune() centralized all the code
that call those functions inside vircgroup.c.
Signed-off-by: Daniel Henrique Barboza
---
src/libvirt_private.syms | 11 --
src/util/vircgroup.c | 44
src/util/vircgroup.h | 41
The code that calls virCgroupSetCpuShares() and virCgroupGetCpuShares()
is repeated in 4 different places. Let's put it in a new
virCgroupSetAndRetrieveCpuShares() to avoid code repetition.
There's a reason of why we execute a Get in the same value we
just executed Set, explained in detail by comm
The code from qemuSetupCgroupCpusetCpus() and virLXCCgroupSetupCpusetTune()
can be centralized in a new helper called virCgroupSetupCpusetCpus().
Signed-off-by: Daniel Henrique Barboza
---
src/libvirt_private.syms | 1 +
src/lxc/lxc_cgroup.c | 11 +++
src/qemu/qemu_cgroup.c | 14 +
Another vircgroup helper to avoid code repetition between
the LXC and QEMU driver.
Signed-off-by: Daniel Henrique Barboza
---
src/libvirt_private.syms | 1 +
src/lxc/lxc_driver.c | 8 +---
src/qemu/qemu_driver.c | 8 +---
src/util/vircgroup.c | 14 ++
src/util/vi
lxcDomainSetMemoryParameters() and qemuDomainSetMemoryParameters()
has duplicated chunks of code that can be put in a new
helper.
Signed-off-by: Daniel Henrique Barboza
---
src/libvirt_private.syms | 1 +
src/lxc/lxc_driver.c | 70 ++-
src/qemu/qemu_driver.c
The new virCgroupSetupMemtune() virCgroupSetupCpusetCpus()
made the cgroup SetMemory and SetCpusetCpus functions to
be called only inside vircgroup.c.
Signed-off-by: Daniel Henrique Barboza
---
src/libvirt_private.syms | 4
src/util/vircgroup.c | 16
src/util/vircgroup
The new functions virCgroupSetAndRetrieveCpuShares(),
virCgroupSetupCpuPeriodQuota() and virCgroupGetCpuPeriodQuota()
centralized all callers of {get/set}Cpu{Shares,CfsPeriod,CfsQuota}
to be inside vircgroup.c.
Signed-off-by: Daniel Henrique Barboza
---
src/libvirt_private.syms | 5 -
src/u
This new helper avoids more code repetition inside
lxcDomainSetBlkioParameters() and qemuDomainSetBlkioParameters().
Signed-off-by: Daniel Henrique Barboza
---
src/conf/domain_conf.c | 41
src/conf/domain_conf.h | 4
src/libvirt_private.syms |
lxcDomainParseBlkioDeviceStr() and qemuDomainParseBlkioDeviceStr()
are the same function. Avoid code repetition by putting the code
in a new helper.
Signed-off-by: Daniel Henrique Barboza
---
src/conf/domain_conf.c | 111 ++
src/conf/domain_conf.h | 3 +
src
After the introduction of virDomainMergeBlkioDevice() in a
previous patch, it is now clear that lxcDomainSetBlkioParameters() and
qemuDomainSetBlkioParameters() uses the same loop to set cgroup
blkio parameter of a domain.
Avoid the repetition by adding a new helper called
virCgroupSetupDomainBlki
lxcDomainMergeBlkioDevice() and -qemuDomainMergeBlkioDevice()
are the same functions. Put the code in a new
virDomainMergeBlkioDevice() inside domain_conf.c and update
both callers.
This change is a preliminary step for more code reduction of
cgroup related code inside lxcDomainSetBlkioParameters(
qemuSetupCgroupVcpuBW() and lxcSetVcpuBWLive() shares the
same code to set CPU CFS period and quota. This code can be
moved to a new virCgroupSetupCpuPeriodQuota() helper to
avoid code repetition.
A similar code is also executed in virLXCCgroupSetupCpuTune(),
but without the rollback on error. Use
Hi,
This is my attempt to a side quest from Cole Robinson reported
in the wiki. It started with an innocent code duplication
reduction work, then I got dragged into code duplication
inside LXC and QEMU drivers. There is a significant amount of
code sharing between LXC and QEMU drivers that should
This new util function puts the duplicated code from
qemu_cgroup.c:qemuSetupBlkioCgroup() and
lxc_cgroup.c:virLXCCgroupSetupBlkioTune() in a single
function to be used in both places.
Signed-off-by: Daniel Henrique Barboza
---
src/libvirt_private.syms | 1 +
src/lxc/lxc_cgroup.c | 49 +-
Hello,
I am working on implementing libvirt test cases for the hypervisor-cpu-compare
and -baseline commands. Ideally, I would like to take advantage of the
qemuProcess API to spin up a QEMU instance and run these commands to test real
data queried from the hypervisor. However, I am having issues
On Mon, Feb 10, 2020 at 01:13:55PM -0500, Cole Robinson wrote:
> I attempted to review some patches on Friday and started hitting
> occasional crashes via eventtest.c. Long story short it's a glib bug:
>
> https://gitlab.gnome.org/GNOME/glib/merge_requests/1358
>
> It's a ref counting issue cause
I attempted to review some patches on Friday and started hitting
occasional crashes via eventtest.c. Long story short it's a glib bug:
https://gitlab.gnome.org/GNOME/glib/merge_requests/1358
It's a ref counting issue caused when g_source_remove
(virEventRemoveHandle) is called from one thread, wh
For container images targeted at cross-building, we bake a small
amount of architecture-specific information in the environment so
that builds can work as expected without requiring additional work
from the user; unfortunately this information got lost as soon as
we called sudo. Explicitly allow it
Andrea Bolognani (2):
ci: Make container environment available to scripts
travis: Use dedicated images for MinGW builds
.travis.yml | 10 --
ci/Makefile | 2 ++
2 files changed, 6 insertions(+), 6 deletions(-)
--
2.24.1
Now that we treat MinGW like any other cross-build target, we
should update our Travis CI configuration.
Signed-off-by: Andrea Bolognani
---
This patch needs
https://www.redhat.com/archives/libvir-list/2020-February/msg00409.html
to be merged into libvirt-jenkins-ci and the corresponding
cont
A lot of the code in _dockerfile_build_varmap() only applies to
Debian, so we can have a simpler version for use with Fedora.
This split will come in handy later on, when we start introducing
features that work in Fedora and not in Debian.
Signed-off-by: Andrea Bolognani
---
guests/lcitool | 48
Up until now we have had to hardcode some information in our
refresh script, but with the recent improvements to lcitool that's
no longer necessary.
Signed-off-by: Andrea Bolognani
---
This patch needs
https://www.redhat.com/archives/libvir-list/2020-February/msg00409.html
to be merged into l
More details in the commit message for patch 7/8.
Pavel pointed out today that the current method of triggering MinGW
builds using our CI scaffolding, eg.
$ make ci-build@fedora-30 CI_CONFIGURE=mingw64-configure
is easy to get wrong and not very discoverable, so I took that as
motivation to im
Signed-off-by: Andrea Bolognani
---
guests/lcitool | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/guests/lcitool b/guests/lcitool
index 80a0d6a..6da2206 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -720,8 +720,6 @@ class Application:
This function takes care of most of what's still handled by
_action_dockerfile(), namely populating the dictionary that
_dockerfile_format() will later consume.
Signed-off-by: Andrea Bolognani
---
guests/lcitool | 132 ++---
1 file changed, 71 insertio
Signed-off-by: Andrea Bolognani
---
guests/lcitool | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/guests/lcitool b/guests/lcitool
index 6624887..80a0d6a 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -725,7 +725,9 @@ class Application:
varmap = {}
Up until this point, MinGW has been treated as a very special
case, even having its own sub-projects.
While this was perfectly reasonable back when lcitool was
introduced, now that we support cross-building as a first-class
concept in the Dockerfile generator it makes little sense for
MinGW builds
There are a few problematic scenarios that we can catch early.
Signed-off-by: Andrea Bolognani
---
guests/lcitool | 16
1 file changed, 16 insertions(+)
diff --git a/guests/lcitool b/guests/lcitool
index abc803b..771402e 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -931,
This function takes care of approximately half of the job that
was up until now handled by _action_dockerfile(), namely taking
a populated dictionary and turning it into a Dockerfile.
Signed-off-by: Andrea Bolognani
---
guests/lcitool | 192 +
1 fi
Signed-off-by: Andrea Bolognani
---
guests/lcitool | 23 ---
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/guests/lcitool b/guests/lcitool
index 8a681e4..6624887 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -657,15 +657,16 @@ class Application:
Relevant code seems to treat forward modes 'route', 'nat', 'open' and none
the same but documentation hasn't reflected that so far.
Signed-off-by: Pavel Mores
---
docs/formatnetwork.html.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/formatnetwork.html.in b/docs/form
Since we have the result of a compound condition named now we can use it
to simplify another complex condition to make it more readable.
Signed-off-by: Pavel Mores
---
src/network/bridge_driver.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/network/bridge_driver.c b/
To fix the actual bug, it was necessary to make networkPlugBandwidth() be
called also for 'bridge'-type networks implemented using macvtap's 'bridge'
mode (previously it was only called for those implemented on top of an
existing bridge).
However, it seems beneficial to call it for other network t
QoS 'floor' setting is documented to be only supported for interfaces of
type 'network'. Fail with an error message on attempt to set 'floor' on
an interface of any other type.
Signed-off-by: Pavel Mores
---
src/qemu/qemu_driver.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletion
Even if an interface of type 'network', setting 'floor' is only supported
if the network's forward type is nat, route, open or none.
Signed-off-by: Pavel Mores
---
src/network/bridge_driver.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/src/network/bridge_driver.c b/src
Aims to fix
https://bugzilla.redhat.com/show_bug.cgi?id=1750219
Libvirt previously silently accepted attempts to set 'floor' even for
direct bridge interface types where the parameter is not supported. This
could happen when manipulating both inactive and active (e.g. via 'virsh
domiftune') doma
On 2/3/20 5:43 AM, Daniel P. Berrangé wrote:
I'm (re-)sending this patch series on behalf of Shaju Abraham
who has tried to send this several times
already.
Red Hat's email infrastructure is broken, accepting the mails and then
failing to deliver them to mailman, or any other Red Hat address.
U
On Fri, Feb 07, 2020 at 03:27:05PM +0100, Andrea Bolognani wrote:
> Its behavior is controlled by a KVM-specific CPU feature.
>
> Signed-off-by: Andrea Bolognani
> ---
> src/qemu/qemu_command.c | 13 +
> 1 file changed, 13 insertions(+)
>
> diff --git a/src/qemu/qemu_command.c b/src
On Fri, Feb 07, 2020 at 03:27:03PM +0100, Andrea Bolognani wrote:
> This new timer model will be used to control the behavior of the
> virtual timer for KVM ARM/virt guests.
>
> Signed-off-by: Andrea Bolognani
> ---
> docs/schemas/domaincommon.rng | 1 +
> src/conf/domain_conf.c| 1 +
>
On Fri, Feb 07, 2020 at 03:27:04PM +0100, Andrea Bolognani wrote:
> Its use is limited to certain guest types, and it only supports
> a subset of all possible tick policies.
>
> Signed-off-by: Andrea Bolognani
> ---
> src/qemu/qemu_domain.c | 33 +
> 1 file change
On Fri, Feb 07, 2020 at 03:27:02PM +0100, Andrea Bolognani wrote:
> We will use this capability to detect whether the QEMU binary
> supports the kvm-no-adjvtime CPU feature.
>
> Reviewed-by: Ján Tomko
> Signed-off-by: Andrea Bolognani
> ---
> src/qemu/qemu_capabilities.c |
On Fri, Feb 07, 2020 at 03:27:01PM +0100, Andrea Bolognani wrote:
> Make sure we are taking all possible virDomainTimerNameType values
> into account. This will make upcoming changes easier.
>
> Signed-off-by: Andrea Bolognani
> ---
> src/qemu/qemu_command.c | 34
From: Mathias Pius
This patch implements virStoragePoolListAllVolumes and
virStoragePoolListVolumes for the StoragePool object. I'm not too familiar with
the libvirt codebase, so I've used similar functions from connect.rs and
domain.rs for so the implementations should (hopefully) be as corre
From: Mathias Pius
---
src/storage_pool.rs | 54 ++-
tests/storage_pool.rs | 34 +++
2 files changed, 87 insertions(+), 1 deletion(-)
diff --git a/src/storage_pool.rs b/src/storage_pool.rs
index 96258f0..02395bf 100644
--- a/src/
From: Mathias Pius
---
tests/storage_pool.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/storage_pool.rs b/tests/storage_pool.rs
index 303867b..21c1139 100644
--- a/tests/storage_pool.rs
+++ b/tests/storage_pool.rs
@@ -91,4 +91,4 @@ fn test_list_all_volumes() {
From: Mathias Pius
---
src/storage_pool.rs | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/storage_pool.rs b/src/storage_pool.rs
index 02395bf..571fabd 100644
--- a/src/storage_pool.rs
+++ b/src/storage_pool.rs
@@ -387,12 +387,13 @@ impl StoragePool {
pub fn
On 2/3/20, 7:16 PM, "Daniel P. Berrangé" wrote:
On Mon, Feb 03, 2020 at 10:42:48AM -0300, Daniel Henrique Barboza
wrote:
> Hi Daniel,
>
> I am happy that Libvirt is pushing local migration/live patching
support, but
> at the same time I am wondering wha
59 matches
Mail list logo