Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7174AC433EF for ; Wed, 20 Jul 2022 11:21:52 +0000 (UTC) Received: from localhost ([::1]:58070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE7m3-00079A-8y for qemu-devel@archiver.kernel.org; Wed, 20 Jul 2022 07:21:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE7jz-00048p-Pe for qemu-devel@nongnu.org; Wed, 20 Jul 2022 07:19:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:31402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE7jw-00005e-FP for qemu-devel@nongnu.org; Wed, 20 Jul 2022 07:19:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658315976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l0kqz3hRh/kz4pBp911EHZ8PE2/abHN/zHOKW4O5vMk=; b=XNyC3ILR80MaAVoZsPgVdbpZpB8J3X3FuaVXiF/4iomtVmHXDDctAG1jMj2LSdvj8/Mbr0 BIxx76ctUbFdpm355xw76HICvHDhKkwclm+Y8e11BRnZeOUqGEEmeGE5AweRhsQNBEBQGp MBkrhj3j3A/Zuju0h6XM4a5hMQTHGEU= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-17-8-ir_jmIOfmxNsLIAH82-A-1; Wed, 20 Jul 2022 07:19:33 -0400 X-MC-Unique: 8-ir_jmIOfmxNsLIAH82-A-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B6F223C11736; Wed, 20 Jul 2022 11:19:32 +0000 (UTC) Received: from dgilbert-t580.localhost (unknown [10.33.36.158]) by smtp.corp.redhat.com (Postfix) with ESMTP id 448282166B26; Wed, 20 Jul 2022 11:19:31 +0000 (UTC) From: "Dr. David Alan Gilbert (git)" To: qemu-devel@nongnu.org, leobras@redhat.com, quintela@redhat.com, berrange@redhat.com, peterx@redhat.com, iii@linux.ibm.com, huangy81@chinatelecom.cn Subject: [PULL 00/30] migration queue Date: Wed, 20 Jul 2022 12:18:56 +0100 Message-Id: <20220720111926.107055-1-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Received-SPF: pass client-ip=170.10.129.124; envelope-from=dgilbert@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" 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://gitlab.com/dagrh/qemu.git tags/pull-migration-20220720c for you to fetch changes up to db727a14108b5f7ee1273f94e8ccce428a646140: Revert "gitlab: disable accelerated zlib for s390x" (2022-07-20 12:15:09 +0100) ---------------------------------------------------------------- Migration pull 2022-07-20 This replaces yesterdays pull and: a) Fixes some test build errors without TLS b) Reenabled the zlib acceleration on s390 now that we have Ilya's fix Hyman's dirty page rate limit set Ilya's fix for zlib vs migration Peter's postcopy-preempt Cleanup from Dan zero-copy tidy ups from Leo multifd doc fix from Juan Revert disable of zlib acceleration on s390x Signed-off-by: Dr. David Alan Gilbert ---------------------------------------------------------------- Daniel P. Berrangé (1): migration: remove unreachable code after reading data Dr. David Alan Gilbert (1): Revert "gitlab: disable accelerated zlib for s390x" Hyman Huang (8): accel/kvm/kvm-all: Refactor per-vcpu dirty ring reaping cpus: Introduce cpu_list_generation_id migration/dirtyrate: Refactor dirty page rate calculation softmmu/dirtylimit: Implement vCPU dirtyrate calculation periodically accel/kvm/kvm-all: Introduce kvm_dirty_ring_size function softmmu/dirtylimit: Implement virtual CPU throttle softmmu/dirtylimit: Implement dirty page rate limit tests: Add dirty page rate limit test Ilya Leoshkevich (1): multifd: Copy pages before compressing them with zlib Juan Quintela (1): multifd: Document the locking of MultiFD{Send/Recv}Params Leonardo Bras (4): QIOChannelSocket: Fix zero-copy flush returning code 1 when nothing sent Add dirty-sync-missed-zero-copy migration stat migration/multifd: Report to user when zerocopy not working migration: Avoid false-positive on non-supported scenarios for zero-copy-send Peter Xu (14): migration: Add postcopy-preempt capability migration: Postcopy preemption preparation on channel creation migration: Postcopy preemption enablement migration: Postcopy recover with preempt enabled migration: Create the postcopy preempt channel asynchronously migration: Add property x-postcopy-preempt-break-huge migration: Add helpers to detect TLS capability migration: Export tls-[creds|hostname|authz] params to cmdline too migration: Enable TLS for preempt channel migration: Respect postcopy request order in preemption mode tests: Move MigrateCommon upper tests: Add postcopy tls migration test tests: Add postcopy tls recovery migration test tests: Add postcopy preempt tests .gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml | 12 - .travis.yml | 6 +- accel/kvm/kvm-all.c | 46 +- accel/stubs/kvm-stub.c | 5 + cpus-common.c | 8 + hmp-commands-info.hx | 13 + hmp-commands.hx | 32 ++ include/exec/cpu-common.h | 1 + include/exec/memory.h | 5 +- include/hw/core/cpu.h | 6 + include/monitor/hmp.h | 3 + include/sysemu/dirtylimit.h | 37 ++ include/sysemu/dirtyrate.h | 28 + include/sysemu/kvm.h | 2 + io/channel-socket.c | 8 +- migration/channel.c | 9 +- migration/dirtyrate.c | 227 +++++--- migration/dirtyrate.h | 7 +- migration/migration.c | 152 +++++- migration/migration.h | 44 +- migration/multifd-zlib.c | 38 +- migration/multifd.c | 6 +- migration/multifd.h | 66 ++- migration/postcopy-ram.c | 186 ++++++- migration/postcopy-ram.h | 11 + migration/qemu-file.c | 31 +- migration/qemu-file.h | 1 + migration/ram.c | 331 +++++++++++- migration/ram.h | 6 +- migration/savevm.c | 46 +- migration/socket.c | 22 +- migration/socket.h | 1 + migration/tls.c | 9 + migration/tls.h | 4 + migration/trace-events | 15 +- monitor/hmp-cmds.c | 5 + qapi/migration.json | 94 +++- softmmu/dirtylimit.c | 601 +++++++++++++++++++++ softmmu/meson.build | 1 + softmmu/trace-events | 7 + tests/qtest/migration-helpers.c | 22 + tests/qtest/migration-helpers.h | 2 + tests/qtest/migration-test.c | 543 ++++++++++++++++--- tests/qtest/qmp-cmd-test.c | 2 + 44 files changed, 2400 insertions(+), 301 deletions(-) create mode 100644 include/sysemu/dirtylimit.h create mode 100644 include/sysemu/dirtyrate.h create mode 100644 softmmu/dirtylimit.c