Re: [PATCH] target/sparc: Fix register selection for the fdtox and fqtox instructions

2025-02-04 Thread Git
> >Fixes: 0bba7572d40d ("target/sparc: Perform DFPREG/QFPREG in decodetree") >Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2802 >Signed-off-by: Mikael Szreder >--- > target/sparc/insns.decode | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >

[PATCH] MAINTAINERS: Remove and change David Gilbert maintainer entries

2023-03-30 Thread Dr. David Alan Gilbert (git)
ing that over to my personal email. Signed-off-by: Dr. David Alan Gilbert --- MAINTAINERS | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ef45b5e71e..f0f7fb3746 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2119,7 +2119,6 @@ T: git https://

[PATCH] migration/rdma: Fix return-path case

2023-03-14 Thread Dr. David Alan Gilbert (git)
able the RDMA return path if either postcopy or the return-path capability is enabled. bz: https://bugzilla.redhat.com/show_bug.cgi?id=2063615 Signed-off-by: Dr. David Alan Gilbert --- migration/rdma.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/migration/rdma.c

[PATCH] tests/migration: Tweek auto converge limits check

2023-03-06 Thread Dr. David Alan Gilbert (git)
the ensure more ensure. Signed-off-by: Dr. David Alan Gilbert --- tests/qtest/migration-test.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index d4ab3934ed..75d4f1d4a9 100644 --- a/tests/qtest

[PULL 2/4] virtiofsd: Remove build and docs glue

2023-02-16 Thread Dr. David Alan Gilbert (git)
deletions(-) delete mode 100644 tools/virtiofsd/50-qemu-virtiofsd.json.in delete mode 100644 tools/virtiofsd/meson.build diff --git a/MAINTAINERS b/MAINTAINERS index fd54c1f140..5090ba0e49 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2096,10 +2096,8 @@ virtiofs M: Dr. David Alan Gilbert

[PULL 1/4] virtiofsd: Remove test

2023-02-16 Thread Dr. David Alan Gilbert (git)
fs_submounts.py | 217 -- 2 files changed, 224 deletions(-) delete mode 100644 tests/avocado/virtiofs_submounts.py diff --git a/scripts/ci/org.centos/stream/8/x86_64/test-avocado b/scripts/ci/org.centos/stream/8/x86_64/test-avocado index 7aeecbcfb8..f403e4e7ec 100755 --- a/script

[PULL 4/4] virtiofsd: Swing deprecated message to removed-features

2023-02-16 Thread Dr. David Alan Gilbert (git)
, 13 insertions(+), 18 deletions(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 2827b0c0be..ee95bcb1a6 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -330,24 +330,6 @@ versions, aliases will point to newer CPU model versions depending on the m

[PULL 0/4] virtiofs queue

2023-02-16 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The following changes since commit 6dffbe36af79e26a4d23f94a9a1c1201de99c261: Merge tag 'migration-20230215-pull-request' of https://gitlab.com/juan.quintela/qemu into staging (2023-02-16 13:09:51 +) are available in the Git rep

[PATCH v2 1/4] virtiofsd: Remove test

2023-02-15 Thread Dr. David Alan Gilbert (git)
2 files changed, 224 deletions(-) delete mode 100644 tests/avocado/virtiofs_submounts.py diff --git a/scripts/ci/org.centos/stream/8/x86_64/test-avocado b/scripts/ci/org.centos/stream/8/x86_64/test-avocado index 7aeecbcfb8..f403e4e7ec 100755 --- a/scripts/ci/org.centos/stream/8/x86_

[PATCH v2 0/4] Remove C virtiofsd

2023-02-15 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" We deprecated the C virtiofsd in commit 34deee7b6a1418f3d62a in v7.0 in favour of the Rust implementation at https://gitlab.com/virtio-fs/virtiofsd since then, the Rust version has had more development and has held up well. It's time to say goodbye to the C v

[PATCH v2 2/4] virtiofsd: Remove build and docs glue

2023-02-15 Thread Dr. David Alan Gilbert (git)
0644 tools/virtiofsd/50-qemu-virtiofsd.json.in delete mode 100644 tools/virtiofsd/meson.build diff --git a/MAINTAINERS b/MAINTAINERS index 96e25f62ac..5c926e7396 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2097,10 +2097,8 @@ virtiofs M: Dr. David Alan Gilbert M: Stefan Hajnoczi S: Supported

[PATCH v2 4/4] virtiofsd: Swing deprecated message to removed-features

2023-02-15 Thread Dr. David Alan Gilbert (git)
etions(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index da2e6fe63d..9a749b342c 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -325,24 +325,6 @@ versions, aliases will point to newer CPU model versions depending on the machine type, so managemen

[PATCH] virtio-rng-pci: fix transitional migration compat for vectors

2023-02-07 Thread Dr. David Alan Gilbert (git)
ng nvectors, so we can use MSI-X') bz: https://bugzilla.redhat.com/show_bug.cgi?id=2162569 Signed-off-by: Dr. David Alan Gilbert --- hw/core/machine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/core/machine.c b/hw/core/machine.c index b5cd42cd8c..4627b274d9 100644 --- a/hw/cor

[PATCH 0/3] Remove C virtiofsd

2023-01-18 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" We deprecated the C virtiofsd in commit 34deee7b6a1418f3d62a in v7.0 in favour of the Rust implementation at https://gitlab.com/virtio-fs/virtiofsd since then, the Rust version has had more development and has held up well. It's time to say goodbye to the C ver

[PATCH 1/3] virtiofsd: Remove build and docs glue

2023-01-18 Thread Dr. David Alan Gilbert (git)
0644 tools/virtiofsd/50-qemu-virtiofsd.json.in delete mode 100644 tools/virtiofsd/meson.build diff --git a/MAINTAINERS b/MAINTAINERS index 0fe50d01e3..4f8ab04dba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2093,10 +2093,8 @@ virtiofs M: Dr. David Alan Gilbert M: Stefan Hajnoczi S: Supported

[PATCH 3/3] virtiofsd: Swing deprecated message to removed-features

2023-01-18 Thread Dr. David Alan Gilbert (git)
etions(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 9f1bbc495d..8543fa3285 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -325,24 +325,6 @@ versions, aliases will point to newer CPU model versions depending on the machine type, so managemen

[PATCH] virtio-rng-pci: fix migration compat for vectors

2023-01-09 Thread Dr. David Alan Gilbert (git)
ug.cgi?id=2155749 Fixes: 9ea02e8f1 ("virtio-rng-pci: Allow setting nvectors, so we can use MSI-X") Signed-off-by: Dr. David Alan Gilbert --- hw/core/machine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/core/machine.c b/hw/core/machine.c index f589b92909..45459d1cef 100644 ---

[PULL 1/3] monitor: Support specified vCPU registers

2022-09-15 Thread Dr. David Alan Gilbert (git)
bert --- hmp-commands-info.hx | 8 +--- monitor/misc.c | 10 -- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index 188d9ece3b..e012035541 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -100,9 +100,11 @@ ERST

[PULL 3/3] hmp: Fix ordering of text

2022-09-15 Thread Dr. David Alan Gilbert (git)
--- hmp-commands.hx | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 182e639d14..8ab8000acd 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1742,23 +1742,6 @@ SRST *icount* for the reference may be observed wit

[PULL 2/3] monitor/hmp: print trace as option in help for log command

2022-09-15 Thread Dr. David Alan Gilbert (git)
: Dongli Zhang Message-Id: <20220831213943.8155-1-dongli.zh...@oracle.com> Reviewed-by: Markus Armbruster Signed-off-by: Dr. David Alan Gilbert --- monitor/hmp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/monitor/hmp.c b/monitor/hmp.c index 15ca04735c..a3

[PULL 0/3] hmp queue

2022-09-15 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The following changes since commit 79dfa177ae348bb5ab5f97c0915359b13d6186e2: Merge tag 'pull-qapi-2022-09-07' of git://repo.or.cz/qemu/armbru into staging (2022-09-07 13:13:30 -0400) are available in the Git repository at: https://gitla

[PATCH] hmp: Fix ordering of text

2022-09-13 Thread Dr. David Alan Gilbert (git)
- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 182e639d14..8ab8000acd 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1742,23 +1742,6 @@ SRST *icount* for the reference may be observed with ``info replay`` command. ERS

[PATCH] keyval: Print types on merge inconsistency

2022-09-13 Thread Dr. David Alan Gilbert (git)
lan Gilbert --- util/keyval.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/keyval.c b/util/keyval.c index 66a5b4740f..9757adf31f 100644 --- a/util/keyval.c +++ b/util/keyval.c @@ -329,8 +329,10 @@ static void keyval_do_merge(QDict *dest, const QDict *merged, GS

[PULL 5/5] virtiofsd: Disable killpriv_v2 by default

2022-08-02 Thread Dr. David Alan Gilbert (git)
--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c index 7a73dfcce9..371a7bead6 100644 --- a/tools/virtiofsd/passthrough_ll.c +++ b/tools/virtiofsd/passthrough_ll.c @@ -767,19 +767,10 @@ static void lo_init(void

[PULL 4/5] migration: Define BLK_MIG_BLOCK_SIZE as unsigned long long

2022-08-02 Thread Dr. David Alan Gilbert (git)
+- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/block.c b/migration/block.c index 9e5aae5898..3577c815a9 100644 --- a/migration/block.c +++ b/migration/block.c @@ -28,7 +28,7 @@ #include "sysemu/block-backend.h" #include "trace.h" -#define BLK_MI

[PULL 1/5] migration: add remaining params->has_* = true in migration_instance_init()

2022-08-02 Thread Dr. David Alan Gilbert (git)
ardo Bras Message-Id: <20220726010235.342927-1-leob...@redhat.com> Reviewed-by: Peter Xu Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 4 1 file changed, 4 insertions(+) diff --git a/migration/migration.c b/migration/migration.c index e03f698a3c..82fbe0cf55 100644 --

[PULL 2/5] Revert "migration: Simplify unqueue_page()"

2022-08-02 Thread Dr. David Alan Gilbert (git)
Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- migration/ram.c| 37 ++--- migration/trace-events | 3 ++- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index b94669ba5d.

[PULL 3/5] migration: Assert that migrate_multifd_compression() returns an in-range value

2022-08-02 Thread Dr. David Alan Gilbert (git)
aydell Message-Id: <20220721115207.729615-2-peter.mayd...@linaro.org> Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 1 + 1 file changed, 1 insertion(+) diff --git a/migration/migration.c b/migration/migration.c index 82fbe

[PULL 0/5] migration queue

2022-08-02 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The following changes since commit 0399521e53336bd2cdc15482bca0ffd3493fdff6: Merge tag 'for-upstream' of git://repo.or.cz/qemu/kevin into staging (2022-08-02 06:52:05 -0700) are available in the Git repository at: https://gitlab.com/dagr

[PULL 29/30] migration: Avoid false-positive on non-supported scenarios for zero-copy-send

2022-07-20 Thread Dr. David Alan Gilbert (git)
r to migration capability") Signed-off-by: Leonardo Bras Message-Id: <20220719122345.253713-1-leob...@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 15 ++- 1 file changed, 14 insertions(+), 1 deleti

[PULL 27/30] migration/multifd: Report to user when zerocopy not working

2022-07-20 Thread Dr. David Alan Gilbert (git)
-by: Peter Xu Message-Id: <2022071122.18951-4-leob...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/multifd.c | 2 ++ migration/ram.c | 5 + migration/ram.h | 2 ++ 3 files changed, 9 insertions(+) diff --git a/migration/multifd.c b/migration/multifd.c

[PULL 28/30] multifd: Document the locking of MultiFD{Send/Recv}Params

2022-07-20 Thread Dr. David Alan Gilbert (git)
: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert dgilbert: Typo fixes from Chen Zhang --- migration/multifd.h | 66 - 1 file changed, 41 insertions(+), 25 deletions(-) diff --git a/migration/multifd.h b/migration/multifd.h index 4d8d89e5e5..5

[PULL 30/30] Revert "gitlab: disable accelerated zlib for s390x"

2022-07-20 Thread Dr. David Alan Gilbert (git)
Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Thomas Huth --- .gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml | 12 .travis.yml| 6 ++ 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.d/custom-runners/ubuntu-2

[PULL 23/30] tests: Add postcopy preempt tests

2022-07-20 Thread Dr. David Alan Gilbert (git)
ilbert dgilbert: Manual merge --- tests/qtest/migration-test.c | 59 ++-- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index 5600b6d46a..71595a74fd 100644 --- a/tests/qtest/migration-

[PULL 25/30] QIOChannelSocket: Fix zero-copy flush returning code 1 when nothing sent

2022-07-20 Thread Dr. David Alan Gilbert (git)
eob...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- io/channel-socket.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/io/channel-socket.c b/io/channel-socket.c index 4466bb1cd4..74a936cc1f 100644 --- a/io/channel-socket.c +++ b/io/channel-socket.c @@ -716,

[PULL 18/30] migration: Enable TLS for preempt channel

2022-07-20 Thread Dr. David Alan Gilbert (git)
ilbert --- migration/postcopy-ram.c | 57 ++-- migration/trace-events | 1 + 2 files changed, 50 insertions(+), 8 deletions(-) diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c index 70b21e9d51..b9a37ef255 100644 --- a/migration/postcopy-ram.c +++ b/mig

[PULL 17/30] migration: Export tls-[creds|hostname|authz] params to cmdline too

2022-07-20 Thread Dr. David Alan Gilbert (git)
forgot to free it before this patch. Reviewed-by: Daniel P. Berrange Signed-off-by: Peter Xu Message-Id: <20220707185515.27475-1-pet...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mi

[PULL 21/30] tests: Add postcopy tls migration test

2022-07-20 Thread Dr. David Alan Gilbert (git)
85525.27692-1-pet...@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert dgilbert: Manual merge --- tests/qtest/migration-test.c | 61 ++-- 1 file changed, 51 insertions(+), 10 deletions(-) diff --git a/tests/qtest/migratio

[PULL 20/30] tests: Move MigrateCommon upper

2022-07-20 Thread Dr. David Alan Gilbert (git)
| 144 +-- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index db4dcc5b31..f3931e0a92 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -503,6 +503,78 @@ typedef struct { const char *opts_

[PULL 24/30] migration: remove unreachable code after reading data

2022-07-20 Thread Dr. David Alan Gilbert (git)
Fixes: Coverity CID 1490203 Signed-off-by: Daniel P. Berrangé Message-Id: <20220627135318.156121-1-berra...@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- migration/qemu-file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PULL 16/30] migration: Add helpers to detect TLS capability

2022-07-20 Thread Dr. David Alan Gilbert (git)
pet...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/channel.c | 9 ++--- migration/migration.c | 1 + migration/multifd.c | 4 +--- migration/tls.c | 9 + migration/tls.h | 4 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/mig

[PULL 22/30] tests: Add postcopy tls recovery migration test

2022-07-20 Thread Dr. David Alan Gilbert (git)
lan Gilbert dgilbert: Manual merge --- tests/qtest/migration-test.c | 39 +++- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index b2020ef6c5..5600b6d46a 100644 --- a/tests/qtest/migration-t

[PULL 09/30] multifd: Copy pages before compressing them with zlib

2022-07-20 Thread Dr. David Alan Gilbert (git)
ned-off-by: Dr. David Alan Gilbert --- migration/multifd-zlib.c | 38 ++ 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/migration/multifd-zlib.c b/migration/multifd-zlib.c index 3a7ae44485..18213a9513 100644 --- a/migration/multifd-zlib.c +++ b/mig

[PULL 11/30] migration: Postcopy preemption preparation on channel creation

2022-07-20 Thread Dr. David Alan Gilbert (git)
- migration/socket.h | 1 + migration/trace-events | 5 ++- 10 files changed, 219 insertions(+), 31 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index ce7bb68cdc..c965cae1d4 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -

[PULL 19/30] migration: Respect postcopy request order in preemption mode

2022-07-20 Thread Dr. David Alan Gilbert (git)
;20220707185520.27583-1-pet...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/ram.c | 65 +++++++-- 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 7cbe9c310d..4fbad74c6c 100644 --- a

[PULL 14/30] migration: Create the postcopy preempt channel asynchronously

2022-07-20 Thread Dr. David Alan Gilbert (git)
- migration/migration.c| 16 migration/migration.h| 7 + migration/postcopy-ram.c | 56 +++- migration/postcopy-ram.h | 1 + 4 files changed, 68 insertions(+), 12 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 3

[PULL 15/30] migration: Add property x-postcopy-preempt-break-huge

2022-07-20 Thread Dr. David Alan Gilbert (git)
id Alan Gilbert Reviewed-by: Manish Mishra Signed-off-by: Peter Xu Message-Id: <20220707185511.27366-1-pet...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 2 ++ migration/migration.h | 7 +++ migration/ram.c | 7 +++ 3 files changed, 16 insert

[PULL 07/30] softmmu/dirtylimit: Implement dirty page rate limit

2022-07-20 Thread Dr. David Alan Gilbert (git)
tests/qtest/qmp-cmd-test.c | 2 + 6 files changed, 324 insertions(+) diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index 3ffa24bd67..188d9ece3b 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -865,6 +865,19 @@ SRST Display the vcpu dirty rate information.

[PULL 06/30] softmmu/dirtylimit: Implement virtual CPU throttle

2022-07-20 Thread Dr. David Alan Gilbert (git)
imit.c| 291 softmmu/trace-events| 7 + 5 files changed, 338 insertions(+), 1 deletion(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 184aecab5c..3187656570 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -45,6

[PULL 26/30] Add dirty-sync-missed-zero-copy migration stat

2022-07-20 Thread Dr. David Alan Gilbert (git)
| 5 + qapi/migration.json | 7 ++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 7c7e529ca7..15ae48b209 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1057,6 +1057,8 @@ static void populate_ram_info(Migrati

[PULL 12/30] migration: Postcopy preemption enablement

2022-07-20 Thread Dr. David Alan Gilbert (git)
--- migration/migration.c | 2 + migration/migration.h | 2 +- migration/ram.c| 251 +++-- migration/trace-events | 7 ++ 4 files changed, 253 insertions(+), 9 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index

[PULL 02/30] cpus: Introduce cpu_list_generation_id

2022-07-20 Thread Dr. David Alan Gilbert (git)
diff --git a/cpus-common.c b/cpus-common.c index db459b41ce..793364dc0e 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -73,6 +73,12 @@ static int cpu_get_free_index(void) } CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus); +static unsigned int cpu_list_generation_id; + +unsign

[PULL 10/30] migration: Add postcopy-preempt capability

2022-07-20 Thread Dr. David Alan Gilbert (git)
by: Dr. David Alan Gilbert --- migration/migration.c | 18 ++ migration/migration.h | 1 + qapi/migration.json | 7 ++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 78f5057373..ce7bb68cdc 100644 --- a/migration/m

[PULL 05/30] accel/kvm/kvm-all: Introduce kvm_dirty_ring_size function

2022-07-20 Thread Dr. David Alan Gilbert (git)
/sysemu/kvm.h | 2 ++ 3 files changed, 12 insertions(+) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index ce989a68ff..184aecab5c 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -2318,6 +2318,11 @@ static void query_stats_cb(StatsResultList **result, StatsTarget target

[PULL 13/30] migration: Postcopy recover with preempt enabled

2022-07-20 Thread Dr. David Alan Gilbert (git)
anged, 119 insertions(+), 8 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index c5f0fdf8f8..3119bd2e4b 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -215,9 +215,11 @@ void migration_object_init(void) current_incoming->postcopy_remote_fds =

[PULL 03/30] migration/dirtyrate: Refactor dirty page rate calculation

2022-07-20 Thread Dr. David Alan Gilbert (git)
files changed, 174 insertions(+), 88 deletions(-) create mode 100644 include/sysemu/dirtyrate.h diff --git a/include/sysemu/dirtyrate.h b/include/sysemu/dirtyrate.h new file mode 100644 index 00..4d3b9a4902 --- /dev/null +++ b/include/sysemu/dirtyrate.h @@ -0,0 +1,28 @@ +/* + * dirty pag

[PULL 08/30] tests: Add dirty page rate limit test

2022-07-20 Thread Dr. David Alan Gilbert (git)
-dirty-limit". Signed-off-by: Hyman Huang(黄勇) Acked-by: Peter Xu Message-Id: Signed-off-by: Dr. David Alan Gilbert --- tests/qtest/migration-helpers.c | 22 +++ tests/qtest/migration-helpers.h | 2 + tests/qtest/migration-test.c| 256 ++++++++ 3 files ch

[PULL 00/30] migration queue

2022-07-20 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The following changes since commit 68e26e1e812c8b09313d7929271f6cbd47ef4c07: Merge tag 'pull-la-20220719' of https://gitlab.com/rth7680/qemu into staging (2022-07-19 22:54:43 +0100) are available in the Git repository at: https://gitla

[PULL 01/30] accel/kvm/kvm-all: Refactor per-vcpu dirty ring reaping

2022-07-20 Thread Dr. David Alan Gilbert (git)
all.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index ed8b6b896e..ce989a68ff 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -757,17 +757,20 @@ static uint32_t kvm_dirty_ring_reap_one(KVMState *s, CPU

[PULL 04/30] softmmu/dirtylimit: Implement vCPU dirtyrate calculation periodically

2022-07-20 Thread Dr. David Alan Gilbert (git)
sysemu/dirtylimit.h | 22 +++ softmmu/dirtylimit.c| 116 softmmu/meson.build | 1 + 4 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 include/sysemu/dirtylimit.h create mode 100644 softmmu/dirtylimit.c diff --git a/includ

[PATCH] Revert "gitlab: disable accelerated zlib for s390x"

2022-07-20 Thread Dr. David Alan Gilbert (git)
Signed-off-by: Dr. David Alan Gilbert --- .gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml | 12 .travis.yml| 6 ++ 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml b/.git

[PULL 28/29] multifd: Document the locking of MultiFD{Send/Recv}Params

2022-07-19 Thread Dr. David Alan Gilbert (git)
: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert dgilbert: Typo fixes from Chen Zhang --- migration/multifd.h | 66 - 1 file changed, 41 insertions(+), 25 deletions(-) diff --git a/migration/multifd.h b/migration/multifd.h index 4d8d89e5e5..5

[PULL 21/29] tests: Add postcopy tls migration test

2022-07-19 Thread Dr. David Alan Gilbert (git)
85525.27692-1-pet...@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert dgilbert: Manual merge --- tests/qtest/migration-test.c | 61 ++-- 1 file changed, 51 insertions(+), 10 deletions(-) diff --git a/tests/qtest/migratio

[PULL 27/29] migration/multifd: Report to user when zerocopy not working

2022-07-19 Thread Dr. David Alan Gilbert (git)
-by: Peter Xu Message-Id: <2022071122.18951-4-leob...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/multifd.c | 2 ++ migration/ram.c | 5 + migration/ram.h | 2 ++ 3 files changed, 9 insertions(+) diff --git a/migration/multifd.c b/migration/multifd.c

[PULL 24/29] migration: remove unreachable code after reading data

2022-07-19 Thread Dr. David Alan Gilbert (git)
Fixes: Coverity CID 1490203 Signed-off-by: Daniel P. Berrangé Message-Id: <20220627135318.156121-1-berra...@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- migration/qemu-file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PULL 23/29] tests: Add postcopy preempt tests

2022-07-19 Thread Dr. David Alan Gilbert (git)
ilbert dgilbert: Manual merge --- tests/qtest/migration-test.c | 57 ++-- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index e9350ea8c6..02f2ef9f49 100644 --- a/tests/qtest/migration-

[PULL 05/29] accel/kvm/kvm-all: Introduce kvm_dirty_ring_size function

2022-07-19 Thread Dr. David Alan Gilbert (git)
/sysemu/kvm.h | 2 ++ 3 files changed, 12 insertions(+) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index ce989a68ff..184aecab5c 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -2318,6 +2318,11 @@ static void query_stats_cb(StatsResultList **result, StatsTarget target

[PULL 29/29] migration: Avoid false-positive on non-supported scenarios for zero-copy-send

2022-07-19 Thread Dr. David Alan Gilbert (git)
r to migration capability") Signed-off-by: Leonardo Bras Message-Id: <20220719122345.253713-1-leob...@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 15 ++- 1 file changed, 14 insertions(+), 1 deleti

[PULL 07/29] softmmu/dirtylimit: Implement dirty page rate limit

2022-07-19 Thread Dr. David Alan Gilbert (git)
tests/qtest/qmp-cmd-test.c | 2 + 6 files changed, 324 insertions(+) diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index 3ffa24bd67..188d9ece3b 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -865,6 +865,19 @@ SRST Display the vcpu dirty rate information.

[PULL 26/29] Add dirty-sync-missed-zero-copy migration stat

2022-07-19 Thread Dr. David Alan Gilbert (git)
| 5 + qapi/migration.json | 7 ++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 7c7e529ca7..15ae48b209 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1057,6 +1057,8 @@ static void populate_ram_info(Migrati

[PULL 06/29] softmmu/dirtylimit: Implement virtual CPU throttle

2022-07-19 Thread Dr. David Alan Gilbert (git)
imit.c| 291 softmmu/trace-events| 7 + 5 files changed, 338 insertions(+), 1 deletion(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 184aecab5c..3187656570 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -45,6

[PULL 22/29] tests: Add postcopy tls recovery migration test

2022-07-19 Thread Dr. David Alan Gilbert (git)
lan Gilbert dgilbert: Manual merge --- tests/qtest/migration-test.c | 37 +++- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index b2020ef6c5..e9350ea8c6 100644 --- a/tests/qtest/migration-t

[PULL 08/29] tests: Add dirty page rate limit test

2022-07-19 Thread Dr. David Alan Gilbert (git)
-dirty-limit". Signed-off-by: Hyman Huang(黄勇) Acked-by: Peter Xu Message-Id: Signed-off-by: Dr. David Alan Gilbert --- tests/qtest/migration-helpers.c | 22 +++ tests/qtest/migration-helpers.h | 2 + tests/qtest/migration-test.c| 256 ++++++++ 3 files ch

[PULL 20/29] tests: Move MigrateCommon upper

2022-07-19 Thread Dr. David Alan Gilbert (git)
| 144 +-- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index db4dcc5b31..f3931e0a92 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -503,6 +503,78 @@ typedef struct { const char *opts_

[PULL 03/29] migration/dirtyrate: Refactor dirty page rate calculation

2022-07-19 Thread Dr. David Alan Gilbert (git)
files changed, 174 insertions(+), 88 deletions(-) create mode 100644 include/sysemu/dirtyrate.h diff --git a/include/sysemu/dirtyrate.h b/include/sysemu/dirtyrate.h new file mode 100644 index 00..4d3b9a4902 --- /dev/null +++ b/include/sysemu/dirtyrate.h @@ -0,0 +1,28 @@ +/* + * dirty pag

[PULL 25/29] QIOChannelSocket: Fix zero-copy flush returning code 1 when nothing sent

2022-07-19 Thread Dr. David Alan Gilbert (git)
eob...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- io/channel-socket.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/io/channel-socket.c b/io/channel-socket.c index 4466bb1cd4..74a936cc1f 100644 --- a/io/channel-socket.c +++ b/io/channel-socket.c @@ -716,

[PULL 14/29] migration: Create the postcopy preempt channel asynchronously

2022-07-19 Thread Dr. David Alan Gilbert (git)
- migration/migration.c| 16 migration/migration.h| 7 + migration/postcopy-ram.c | 56 +++- migration/postcopy-ram.h | 1 + 4 files changed, 68 insertions(+), 12 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 3

[PULL 04/29] softmmu/dirtylimit: Implement vCPU dirtyrate calculation periodically

2022-07-19 Thread Dr. David Alan Gilbert (git)
sysemu/dirtylimit.h | 22 +++ softmmu/dirtylimit.c| 116 softmmu/meson.build | 1 + 4 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 include/sysemu/dirtylimit.h create mode 100644 softmmu/dirtylimit.c diff --git a/includ

[PULL 15/29] migration: Add property x-postcopy-preempt-break-huge

2022-07-19 Thread Dr. David Alan Gilbert (git)
id Alan Gilbert Reviewed-by: Manish Mishra Signed-off-by: Peter Xu Message-Id: <20220707185511.27366-1-pet...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 2 ++ migration/migration.h | 7 +++ migration/ram.c | 7 +++ 3 files changed, 16 insert

[PULL 16/29] migration: Add helpers to detect TLS capability

2022-07-19 Thread Dr. David Alan Gilbert (git)
pet...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/channel.c | 9 ++--- migration/migration.c | 1 + migration/multifd.c | 4 +--- migration/tls.c | 9 + migration/tls.h | 4 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/mig

[PULL 18/29] migration: Enable TLS for preempt channel

2022-07-19 Thread Dr. David Alan Gilbert (git)
ilbert --- migration/postcopy-ram.c | 57 ++-- migration/trace-events | 1 + 2 files changed, 50 insertions(+), 8 deletions(-) diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c index 70b21e9d51..b9a37ef255 100644 --- a/migration/postcopy-ram.c +++ b/mig

[PULL 17/29] migration: Export tls-[creds|hostname|authz] params to cmdline too

2022-07-19 Thread Dr. David Alan Gilbert (git)
forgot to free it before this patch. Reviewed-by: Daniel P. Berrange Signed-off-by: Peter Xu Message-Id: <20220707185515.27475-1-pet...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mi

[PULL 19/29] migration: Respect postcopy request order in preemption mode

2022-07-19 Thread Dr. David Alan Gilbert (git)
;20220707185520.27583-1-pet...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/ram.c | 65 +++++++-- 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 7cbe9c310d..4fbad74c6c 100644 --- a

[PULL 10/29] migration: Add postcopy-preempt capability

2022-07-19 Thread Dr. David Alan Gilbert (git)
by: Dr. David Alan Gilbert --- migration/migration.c | 18 ++ migration/migration.h | 1 + qapi/migration.json | 7 ++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 78f5057373..ce7bb68cdc 100644 --- a/migration/m

[PULL 12/29] migration: Postcopy preemption enablement

2022-07-19 Thread Dr. David Alan Gilbert (git)
--- migration/migration.c | 2 + migration/migration.h | 2 +- migration/ram.c| 251 +++-- migration/trace-events | 7 ++ 4 files changed, 253 insertions(+), 9 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index

[PULL 02/29] cpus: Introduce cpu_list_generation_id

2022-07-19 Thread Dr. David Alan Gilbert (git)
diff --git a/cpus-common.c b/cpus-common.c index db459b41ce..793364dc0e 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -73,6 +73,12 @@ static int cpu_get_free_index(void) } CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus); +static unsigned int cpu_list_generation_id; + +unsign

[PULL 13/29] migration: Postcopy recover with preempt enabled

2022-07-19 Thread Dr. David Alan Gilbert (git)
anged, 119 insertions(+), 8 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index c5f0fdf8f8..3119bd2e4b 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -215,9 +215,11 @@ void migration_object_init(void) current_incoming->postcopy_remote_fds =

[PULL 00/29] migration queue

2022-07-19 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The following changes since commit da7da9d5e608200ecc0749ff37be246e9cd3314f: Merge tag 'pull-request-2022-07-19' of https://gitlab.com/thuth/qemu into staging (2022-07-19 13:05:06 +0100) are available in the Git repository at: http

[PULL 01/29] accel/kvm/kvm-all: Refactor per-vcpu dirty ring reaping

2022-07-19 Thread Dr. David Alan Gilbert (git)
all.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index ed8b6b896e..ce989a68ff 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -757,17 +757,20 @@ static uint32_t kvm_dirty_ring_reap_one(KVMState *s, CPU

[PULL 11/29] migration: Postcopy preemption preparation on channel creation

2022-07-19 Thread Dr. David Alan Gilbert (git)
- migration/socket.h | 1 + migration/trace-events | 5 ++- 10 files changed, 219 insertions(+), 31 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index ce7bb68cdc..c965cae1d4 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -

[PULL 09/29] multifd: Copy pages before compressing them with zlib

2022-07-19 Thread Dr. David Alan Gilbert (git)
ned-off-by: Dr. David Alan Gilbert --- migration/multifd-zlib.c | 38 ++ 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/migration/multifd-zlib.c b/migration/multifd-zlib.c index 3a7ae44485..18213a9513 100644 --- a/migration/multifd-zlib.c +++ b/mig

[PULL 23/25] migration: remove the QEMUFileOps 'writev_buffer' callback

2022-06-23 Thread Dr. David Alan Gilbert (git)
-channel.c | 43 --- migration/qemu-file.c | 24 +++ migration/qemu-file.h | 9 3 files changed, 8 insertions(+), 68 deletions(-) diff --git a/migration/qemu-file-channel.c b/migration/qemu-file-channel.c index 7b32831752

[PULL 21/25] migration: remove the QEMUFileOps 'close' callback

2022-06-23 Thread Dr. David Alan Gilbert (git)
| 12 migration/qemu-file.c | 12 ++-- migration/qemu-file.h | 10 -- 3 files changed, 6 insertions(+), 28 deletions(-) diff --git a/migration/qemu-file-channel.c b/migration/qemu-file-channel.c index 0350d367ec..8ff58e81f9 100644 --- a/migration/qemu-file

[PULL 25/25] migration: remove the QEMUFileOps abstraction

2022-06-23 Thread Dr. David Alan Gilbert (git)
100644 migration/qemu-file-channel.c delete mode 100644 migration/qemu-file-channel.h diff --git a/migration/channel.c b/migration/channel.c index a162d00fea..90087d8986 100644 --- a/migration/channel.c +++ b/migration/channel.c @@ -14,7 +14,7 @@ #include "channel.h" #include "t

[PULL 22/25] migration: remove the QEMUFileOps 'get_buffer' callback

2022-06-23 Thread Dr. David Alan Gilbert (git)
as spotted by Peter Xu --- migration/qemu-file-channel.c | 29 - migration/qemu-file.c | 18 -- migration/qemu-file.h | 9 - 3 files changed, 16 insertions(+), 40 deletions(-) diff --git a/migration/qemu-file-channel.c b/migration

[PULL 20/25] migration: remove the QEMUFileOps 'set_blocking' callback

2022-06-23 Thread Dr. David Alan Gilbert (git)
-channel.c | 14 -- migration/qemu-file.c | 4 +--- migration/qemu-file.h | 5 - 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/migration/qemu-file-channel.c b/migration/qemu-file-channel.c index 80f05dc371..0350d367ec 100644 --- a/migration/qemu-file

[PULL 19/25] migration: remove the QEMUFileOps 'shut_down' callback

2022-06-23 Thread Dr. David Alan Gilbert (git)
| 27 --- migration/qemu-file.c | 13 ++--- migration/qemu-file.h | 10 -- 3 files changed, 10 insertions(+), 40 deletions(-) diff --git a/migration/qemu-file-channel.c b/migration/qemu-file-channel.c index 5cb8ac93c0..80f05dc371 100644 --- a

[PULL 24/25] migration: remove the QEMUFileOps 'get_return_path' callback

2022-06-23 Thread Dr. David Alan Gilbert (git)
-channel.c | 16 migration/qemu-file.c | 22 ++ migration/qemu-file.h | 6 -- 3 files changed, 10 insertions(+), 34 deletions(-) diff --git a/migration/qemu-file-channel.c b/migration/qemu-file-channel.c index 2e139f7bcd..51717c1137 100644

[PULL 11/25] migration: rename qemu_update_position to qemu_file_credit_transfer

2022-06-23 Thread Dr. David Alan Gilbert (git)
Alan Gilbert --- migration/qemu-file.c | 4 ++-- migration/qemu-file.h | 9 - migration/ram.c | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/migration/qemu-file.c b/migration/qemu-file.c index 7ee9b5bf05..f73b010d39 100644 --- a/migration/qemu-file.c +++ b/migr

[PULL 16/25] migration: hardcode assumption that QEMUFile is backed with QIOChannel

2022-06-23 Thread Dr. David Alan Gilbert (git)
anged, 20 insertions(+), 21 deletions(-) diff --git a/migration/qemu-file-channel.c b/migration/qemu-file-channel.c index bb5a5752df..ce8eced417 100644 --- a/migration/qemu-file-channel.c +++ b/migration/qemu-file-channel.c @@ -184,11 +184,11 @@ static const QEMUFileOps channel_outp

  1   2   3   4   5   6   7   8   9   10   >