On 12/3/2021 11:38 AM, Ján Tomko wrote:
On a Thursday in 2021, Praveen K Paladugu wrote:
Refactor some cgroup management methods from qemu into hypervisor.
These methods will be shared by ch driver for cgroup management.
The QEMU driver fails to compile after this patch - it seems
On a Thursday in 2021, Praveen K Paladugu wrote:
Refactor some cgroup management methods from qemu into hypervisor.
These methods will be shared by ch driver for cgroup management.
The QEMU driver fails to compile after this patch - it seems
qemu_process.c needs to include the header with the
On a Thursday in 2021, Praveen K Paladugu wrote:
From: Vineeth Pillai
Signed-off-by: Vineeth Pillai
Signed-off-by: Praveen K Paladugu
---
src/ch/ch_domain.c | 30 +
src/ch/ch_domain.h | 1 +
src/ch/ch_driver.c | 151 +
3 files changed, 182
On 12/3/2021 11:25 AM, Ján Tomko wrote:
On a Thursday in 2021, Praveen K Paladugu wrote:
Signed-off-by: Praveen K Paladugu
Most of these indentation fixes here are against our coding style:
https://libvirt.org/coding-style.html
It is hard to follow all the formatting guidelines
On a Thursday in 2021, Praveen K Paladugu wrote:
Signed-off-by: Vineeth Pillai
Signed-off-by: Praveen K Paladugu
---
src/ch/ch_domain.c | 25 +
src/ch/ch_domain.h | 4 ++
src/ch/ch_driver.c | 137 +
3 files changed, 166 insertions(+)
/*
On a Thursday in 2021, Praveen K Paladugu wrote:
Signed-off-by: Praveen K Paladugu
It would be helpful to say in the commit message that the functions are
being moved, not newly introduced.
Jano
---
src/libvirt_private.syms | 2 +
src/qemu/qemu_driver.c | 116
On a Thursday in 2021, Praveen K Paladugu wrote:
Signed-off-by: Praveen K Paladugu
---
src/ch/ch_domain.c | 130 ++---
1 file changed, 64 insertions(+), 66 deletions(-)
diff --git a/src/ch/ch_domain.c b/src/ch/ch_domain.c
index dd4de9e1ea..44f7d26ca4
On a Thursday in 2021, Praveen K Paladugu wrote:
Signed-off-by: Praveen K Paladugu
Most of these indentation fixes here are against our coding style:
https://libvirt.org/coding-style.html
---
src/util/virprocess.c | 501 +-
1 file changed, 249
On Thu, Dec 02, 2021 at 06:23:56PM +0400, marcandre.lur...@redhat.com wrote:
> From: Marc-André Lureau
>
> Hi,
>
> This series implements supports for the upcoming QEMU "-display dbus" support.
> Development is still in progress, but I hope to land the QEMU support early in
> 6.3 (last version
On a Friday in 2021, Peter Krempa wrote:
Blocking writes ensure that the mirroring converges even when the guest
is I/O intensive with a fast local storage and slow mirror.
This patchset does it by introducing flags which use the blocking mode
as it will have performance impact, and for guests
On a Friday in 2021, Peter Krempa wrote:
Non-shared storage migration of guests which are disk I/O intensive and
have fast local storage may actually never converge if the guest happens
to dirty the disk faster than it can be copied.
This patch introduces a new flag
On 12/2/21 15:23, marcandre.lur...@redhat.com wrote:
> From: Marc-André Lureau
>
> Hi,
>
> This series implements supports for the upcoming QEMU "-display dbus" support.
> Development is still in progress, but I hope to land the QEMU support early in
> 6.3 (last version posted:
>
*paragraphs
On a Friday in 2021, Peter Krempa wrote:
Separate the paragragraphs where the topic changes to simplify further
*paragraphs
additions.
Signed-off-by: Peter Krempa
---
docs/manpages/virsh.rst | 32
1 file changed, 20 insertions(+), 12
On 12/2/21 15:24, marcandre.lur...@redhat.com wrote:
> From: Marc-André Lureau
>
> Signed-off-by: Marc-André Lureau
> ---
> docs/formatdomain.rst | 43 ++-
> 1 file changed, 42 insertions(+), 1 deletion(-)
>
I think this patch should be dissolved in
On a Friday in 2021, Peter Krempa wrote:
The migration API takes specific flags which are then converted to
boolean parameters for the command. Extract the flag into helper
variables rather than using ternary operatirs while constructing the
operators
command itself.
Signed-off-by: Peter
On a Friday in 2021, Peter Krempa wrote:
Peter Krempa (16):
qemu: hotplug: Use automatic freeing for virJSONValue
qemuDomainHotplugAddIOThread: Automatically free virJSONValue
qemuMonitorBlockdevCreate: Use double pointer instead of always
consuming '@props'
The 'file' pointer is already zeroed in virFileFclose
and never read again.
Signed-off-by: Ján Tomko
---
Pushed as trivial.
src/libxl/libxl_logger.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/libxl/libxl_logger.c b/src/libxl/libxl_logger.c
index 44ee5a95da..4708553f29 100644
---
On a Friday in 2021, Andrea Bolognani wrote:
The Homebrew package explicitly enables this driver despite us
disabling it by default on macOS, so it must be functional to
at least some extent and certainly can't be causing any build
failures.
Additionally, if the user has explicitly asked for
On Tue, Nov 30, 2021 at 04:52:00PM -0700, Jim Fehlig wrote:
> Set a launch secret in guest memory using the sev-inject-launch-secret
> QMP API. Only supported for SEV-enabled guests.
>
> Signed-off-by: Jim Fehlig
> ---
> src/qemu/qemu_driver.c | 78
>
On Tue, Nov 30, 2021 at 04:51:58PM -0700, Jim Fehlig wrote:
> This API allows setting a launch secret within a guests's memory. The
> launch secret is created by the guest owner after retrieving and
> verifying the launch measurement with virDomainGetLaunchSecurityInfo.
>
> The API uses
On Tue, Nov 30, 2021 at 04:51:59PM -0700, Jim Fehlig wrote:
> Signed-off-by: Jim Fehlig
> ---
> src/remote/remote_driver.c | 1 +
> src/remote/remote_protocol.x | 17 -
> src/remote_protocol-structs | 9 +
> 3 files changed, 26 insertions(+), 1 deletion(-)
Wire up the flag to enable the 'write-blocking' 'copy-mode' of
'blockdev-mirror'.
It's not supported by all qemu versions but it is with those which we
use -blockdev with so we can use that instead of adding another custom
capability as we use blockdev for some time now.
Signed-off-by: Peter
After conversion the table doesn't have to custom colors, but otherwise
seems to hold well.
Signed-off-by: Peter Krempa
---
docs/meson.build | 2 +-
docs/migration.html.in | 688 -
docs/migration.rst | 458 +++
3 files
Signed-off-by: Peter Krempa
---
NEWS.rst | 12
1 file changed, 12 insertions(+)
diff --git a/NEWS.rst b/NEWS.rst
index 4d690ff64b..a4252d555d 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -17,6 +17,18 @@ v8.0.0 (unreleased)
* **New features**
+ * qemu: Synchronous write mode for disk
Use it to enable the 'write-blocking' mode of 'blockdev-mirror'.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_migration.c | 16 +---
src/qemu/qemu_migration.h | 1 +
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_migration.c
Outline some of the basics and the caveats of the non-shared migration
code.
Signed-off-by: Peter Krempa
---
docs/migration.rst | 32
1 file changed, 32 insertions(+)
diff --git a/docs/migration.rst b/docs/migration.rst
index 0a40600462..247f345f8c 100644
---
Make the macro useful also for cases when one of multiple flags is
required.
Signed-off-by: Peter Krempa
---
src/internal.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/internal.h b/src/internal.h
index 2e404cd705..b6e4332542 100644
--- a/src/internal.h
+++
Separate the paragragraphs where the topic changes to simplify further
additions.
Signed-off-by: Peter Krempa
---
docs/manpages/virsh.rst | 32
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst
Using whitespace to align the '=' and values doesn't make sense for the
virDomainMigrateFlags enum as the visual block is interrupted by
comments.
Signed-off-by: Peter Krempa
---
include/libvirt/libvirt-domain.h | 34
1 file changed, 17 insertions(+), 17
Non-shared storage migration of guests which are disk I/O intensive and
have fast local storage may actually never converge if the guest happens
to dirty the disk faster than it can be copied.
This patch introduces a new flag
'VIR_MIGRATE_NON_SHARED_SYNCHRONOUS_WRITES' which will instruct
In cases when the destination storage is slower than the normal VM
storage and the VM does intensive I/O to the disk a block copy job may
never converge.
Switching it to synchronous mode will ensure that all writes done by the
guest are propagated to the destination at the cost of slowing down
Switch to the comment style allowing more text.
Signed-off-by: Peter Krempa
---
include/libvirt/libvirt-domain.h | 15 ---
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
index 2f017c5b68..dddcae86a4
Move the construction of the command from the variable declaration so
that it doesn't exceed the line length and we can also move the logic of
determining the protocol outside of the command construction.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_monitor_json.c | 21 -
1
Forces the data to be written synchronously to both the original and the
mirrored images which ensures that the job will reach synchronized
phase.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_driver.c | 3 ++-
src/qemu/qemu_migration.c| 3 ++-
src/qemu/qemu_monitor.c | 10
The migration API takes specific flags which are then converted to
boolean parameters for the command. Extract the flag into helper
variables rather than using ternary operatirs while constructing the
command itself.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_monitor_json.c | 16
It actually already expects a bool.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_monitor_json.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index 4b339db399..da14eee964 100644
--- a/src/qemu/qemu_monitor_json.c
Peter Krempa (16):
qemu: hotplug: Use automatic freeing for virJSONValue
qemuDomainHotplugAddIOThread: Automatically free virJSONValue
qemuMonitorBlockdevCreate: Use double pointer instead of always
consuming '@props'
virLockDaemonClientPreExecRestart: Modernize JSON object
Instead of a ternary operator we can use the existing helper.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_monitor_json.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index 1ecb06895c..4b339db399 100644
---
Signed-off-by: Peter Krempa
---
src/qemu/qemu_monitor_json.c | 18 +++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index c10ea583fd..1ecb06895c 100644
--- a/src/qemu/qemu_monitor_json.c
+++
Blocking writes ensure that the mirroring converges even when the guest
is I/O intensive with a fast local storage and slow mirror.
This patchset does it by introducing flags which use the blocking mode
as it will have performance impact, and for guests which do I/O in
bursts it might be
Signed-off-by: Peter Krempa
---
src/ch/ch_process.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/ch/ch_process.c b/src/ch/ch_process.c
index 1a01ca9384..9f82e04485 100644
--- a/src/ch/ch_process.c
+++ b/src/ch/ch_process.c
@@ -121,15 +121,13 @@
Use virJSONValueObjectAdd instead of step-by-step construction of the
object. This also removes a handful impossible to reach errors with
translatable messages.
Signed-off-by: Peter Krempa
---
src/locking/lock_daemon.c | 40 ++-
1 file changed, 10
Remove the cleanup sections where not needed after we've converted to
automatic freeing of virJSONValue.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_agent.c | 96 +--
1 file changed, 38 insertions(+), 58 deletions(-)
diff --git a/src/qemu/qemu_agent.c
Signed-off-by: Peter Krempa
---
src/qemu/qemu_monitor.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
index d752b299ab..6beb23e9f7 100644
--- a/src/qemu/qemu_monitor.c
+++ b/src/qemu/qemu_monitor.c
@@ -2956,10 +2956,9
Signed-off-by: Peter Krempa
---
tests/virnetdaemontest.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tests/virnetdaemontest.c b/tests/virnetdaemontest.c
index 70af1480df..24f4761bb7 100644
--- a/tests/virnetdaemontest.c
+++ b/tests/virnetdaemontest.c
@@ -273,8
Convert two temp strings and one virJSONValue to g_auto(free|ptr).
Signed-off-by: Peter Krempa
---
src/locking/lock_daemon.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/locking/lock_daemon.c b/src/locking/lock_daemon.c
index fc714052be..1edd912c3e 100644
---
Convert the code to use g_autoptr for the few cases sill using explicit
cleanup.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_agent.c | 60 ++-
1 file changed, 19 insertions(+), 41 deletions(-)
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
Signed-off-by: Peter Krempa
---
src/qemu/qemu_driver.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 6333d0af36..13e33a2289 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -5233,7 +5233,7 @@
Refactor the control flow so we can remove the cleanup label.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_agent.c | 29 -
1 file changed, 12 insertions(+), 17 deletions(-)
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
index fc402e936f..c573e0fdf4
There are a few uses which still explicitly free JSON objects, fix them.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_hotplug.c | 13 -
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 71c0686190..2e1d18c633
Don't use 'goto' for looping. Extract the monitor interaction code into
a new function and restructure the logic to avoid jumping back in the
code.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_monitor_json.c | 74 +++-
1 file changed, 47 insertions(+), 27
Don't use 'goto' for looping. Extract the sync sending code into a new
function and restructure the logic to avoid jumping back in the code.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_agent.c | 119 +-
1 file changed, 72 insertions(+), 47 deletions(-)
Move the unlinking of the state file right after reading it so that we
can get rid of the cleanup section.
Signed-off-by: Peter Krempa
---
src/logging/log_daemon.c | 33 ++---
1 file changed, 14 insertions(+), 19 deletions(-)
diff --git a/src/logging/log_daemon.c
Signed-off-by: Peter Krempa
---
src/logging/log_daemon.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/logging/log_daemon.c b/src/logging/log_daemon.c
index cc7889399b..a2a5b5f547 100644
--- a/src/logging/log_daemon.c
+++ b/src/logging/log_daemon.c
@@ -435,10
Move the unlinking of the state file earlier and get rid of the cleanup
label.
Signed-off-by: Peter Krempa
---
src/locking/lock_daemon.c | 36 +---
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/src/locking/lock_daemon.c
We use this approach for other APIs which take a virJSONValue as
argument and the logic is also simpler.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_block.c| 3 +--
src/qemu/qemu_monitor.c | 13 +++--
src/qemu/qemu_monitor.h | 2 +-
src/qemu/qemu_monitor_json.c |
On a Thursday in 2021, Michal Privoznik wrote:
Instead of calling virDomainDefFree() explicitly, we can annotate
variables with g_autoptr().
Signed-off-by: Michal Privoznik
---
src/bhyve/bhyve_driver.c| 15 +
src/bhyve/bhyve_parse_command.c | 8 ++-
src/ch/ch_driver.c
On a Thursday in 2021, Michal Privoznik wrote:
Instead of calling VIR_FREE() explicitly, we can annotate
variables with g_autofree.
Signed-off-by: Michal Privoznik
---
src/conf/virdomainobjlist.c | 14 --
1 file changed, 4 insertions(+), 10 deletions(-)
Reviewed-by: Ján Tomko
On a Thursday in 2021, Michal Privoznik wrote:
After previous cleanups some labels became needles because they
s/needles/needless/ both here and in the summary
contain just a return statement. There's no point in having such
labels.
Signed-off-by: Michal Privoznik
---
Signed-off-by: Luke Yue
---
tests/virshtest.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/tests/virshtest.c b/tests/virshtest.c
index 012edb8601..fc7caf6bc3 100644
--- a/tests/virshtest.c
+++ b/tests/virshtest.c
@@ -22,7 +22,8 @@ main(void)
# define
There is no virsh command uses virDomainGetSecurityLabelList API, so add
an option for dominfo to call it and print full list of security labels.
Signed-off-by: Luke Yue
---
docs/manpages/virsh.rst | 5 +++--
tools/virsh-domain-monitor.c | 43 +++-
2 files
As it's now "Security labels:" instead of "Security label:".
Signed-off-by: Luke Yue
---
tests/virsh-undefine | 8 ++---
tests/virshtest.c| 70 ++--
tools/virsh-domain-monitor.c | 42 +++---
3 files changed, 59 insertions(+),
Signed-off-by: Luke Yue
---
src/test/test_driver.c | 43 ++
1 file changed, 43 insertions(+)
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index b6bca884f0..e9d009cfdb 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@
diff to v1:
- Add some variety when filling the test driver seclabels array
- Split 2/3 in v1 to function patch and align output patch
link to v1:
https://listman.redhat.com/archives/libvir-list/2021-September/msg00015.html
link to CI: https://gitlab.com/lukedyue/libvirt/-/pipelines/422002148
The Homebrew package explicitly enables this driver despite us
disabling it by default on macOS, so it must be functional to
at least some extent and certainly can't be causing any build
failures.
Additionally, if the user has explicitly asked for the network
driver to be enabled but libvirtd is
diff to v3:
- Add virDomainDeviceDefOperationsCallbacks to xmlopt for de-duplicating purpose
- Add virDomainDeviceTypeFlags for de-duplicating purpose
- Remove the memballoon helper function
- Squash test_driver commits
- Move test device xmls to generichotplugdata
- Reimplement tests with
Also add some device xml to generichotplugdata for testing purpose, and
add the forgotten testdomfc5.xml to meson.build.
Signed-off-by: Luke Yue
---
examples/xml/test/meson.build | 1 +
examples/xml/test/testdomfc5.xml | 54 +++
virDomainDeviceDefOperationsCallbacks would enable virDomainXMLOption to
gain driver specific callback for attaching / detaching / updating
devices, also it can store flags for attachable / detachable / updatable
devices that driver supported (currently only add flags for detachable
devices).
For testing hypervisor independent device detach / attach / update
functions, currently only detaching included.
Signed-off-by: Luke Yue
---
The test would show error messages with expected to fail tests even
with VIR_TEST_DEBUG=0, really don't know what I missed to make it quiet :(
I would
Introduce testDomainChgDevice for further development (just like what we
did for IOThread). And introduce testDomainDetachDeviceLiveAndConfig for
detaching devices.
Also as we implement testDomainChgDevice for both DetachDeviceFlags and
DetachDeviceAlias, we could easily implement
libxl / LXC / QEMU drivers share some common codes in their
DomainDetachDeviceConfig functions, so extract them to domain_conf and
use them with xmlopt etc to deduplicate the bigger function.
At the same time, this will enable test driver to test these functions
in the future.
Signed-off-by:
Signed-off-by: Luke Yue
---
As persistent_state and is bool type and its default value is false, so I
guess it's fine that it's not explicitly assigned with false on default.
---
src/conf/domain_conf.c | 67
src/conf/domain_conf.h | 6
Signed-off-by: Luke Yue
---
src/conf/domain_conf.c | 12
src/conf/domain_conf.h | 2 ++
src/libvirt_private.syms | 1 +
src/qemu/qemu_driver.c | 3 ++-
4 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index
Declare and use virDomainDeviceDefOperationsCallbacks in test / QEMU /
LXC / libxl drivers to store detachable devices that driver support,
this would be useful in future.
Also add test driver's memballoon device detach function and QEMU
driver's char device detach function to their xmlopt.
On Sat, Nov 20, 2021 at 1:17 PM Yifei Jiang wrote:
>
> Add kvm_riscv_get/put_regs_timer to synchronize virtual time context
> from KVM.
>
> To set register of RISCV_TIMER_REG(state) will occur a error from KVM
> on kvm_timer_state == 0. It's better to adapt in KVM, but it doesn't matter
> that
On Sat, Nov 20, 2021 at 1:17 PM Yifei Jiang wrote:
>
> 'host' type cpu is set isa to RV32 or RV64 simply, more isa info
> will obtain from KVM in kvm_arch_init_vcpu()
>
> Signed-off-by: Yifei Jiang
> Signed-off-by: Mingwang Li
> Reviewed-by: Alistair Francis
Looks good to me.
Reviewed-by:
On Thu, Dec 02, 2021 at 09:07:06PM +0100, Olaf Hering wrote:
> Will there be a v7.10.0 tag in libvirt-perl.git?
It's there now.
https://gitlab.com/libvirt/libvirt-perl/-/tags/v7.10.0
--
Andrea Bolognani / Red Hat / Virtualization
On Sat, Nov 20, 2021 at 1:17 PM Yifei Jiang wrote:
>
> Extend riscv_cpu_update_mip() to support setting external interrupt
> by KVM. It will call kvm_riscv_set_irq() to change the IRQ state in
> the KVM module When kvm is enabled and the MIP_SEIP bit is set in "mask"
>
> In addition, bacause
On Thu, Dec 02, 2021 at 09:07:06PM +0100, Olaf Hering wrote:
> Am Wed, 1 Dec 2021 10:59:18 +0100 (CET)
> schrieb Jiri Denemark :
>
> > 7.10.0 release of both libvirt and libvirt-python
>
> Will there be a v7.10.0 tag in libvirt-perl.git?
About 5 seconds ago :-)
Thanks for reminding me.
On 12/2/21 19:56, joachim.f...@jfalk.de wrote:
> From: Joachim Falk
>
> The virNetDaemonQuit(dmn) command in virLXCControllerSignalChildIO triggers an
> early close of all clients of lxc_controller. Here, libvirtd itself is a
> client
> of this controller, and the client connection is used to
On 11/20/21 08:46, Yifei Jiang wrote:
> This series adds both riscv32 and riscv64 kvm support, and implements
> migration based on riscv.
What libvirt does when detecting KVM support is issuing query-kvm
monitor command and checking if both 'present' and 'enabled' bools are
true. If this is what
81 matches
Mail list logo