From patchwork Fri May 15 11:11:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Straub X-Patchwork-Id: 11551223 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53917913 for ; Fri, 15 May 2020 11:14:32 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2A36C206B6 for ; Fri, 15 May 2020 11:14:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=web.de header.i=@web.de header.b="n0a9+qe+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A36C206B6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=web.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:47672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZYIQ-0004kc-Vs for patchwork-qemu-devel@patchwork.kernel.org; Fri, 15 May 2020 07:14:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZYFs-0001iP-E4 for qemu-devel@nongnu.org; Fri, 15 May 2020 07:11:52 -0400 Received: from mout.web.de ([212.227.15.14]:54817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZYFr-0008Dy-75 for qemu-devel@nongnu.org; Fri, 15 May 2020 07:11:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1589541095; bh=6wKFvILC/i7tZeoYXB6gsC5xpQEL7/lU5BhuowIrN0o=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=n0a9+qe+0pZhUG0e8+W9gk2Z8/uSU53a03tSEJ3WDY9QZ/T2blGshkGTeEQ5i1U2a AuY71Zs4RoklFy11LMNFIi1QY4mRo1+QtD/Ik10T7NizOiJgsFP0795OaZstJMG0cx sihrxLZvHHp092ATpeW+5LoU/VftIvJA1dDBp4e8= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from luklap ([94.134.180.164]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MeBZO-1jioRN1K0M-00Ps3z; Fri, 15 May 2020 13:11:35 +0200 Date: Fri, 15 May 2020 13:11:18 +0200 From: Lukas Straub To: qemu-devel Subject: [PATCH v5 0/6] colo-compare bugfixes Message-ID: MIME-Version: 1.0 X-Provags-ID: V03:K1:53y1AI+ODEegrAfskT3B5l18/EuawRnGSqI0mYjHNAYUKT6fkYF tTCzDxFyisyJ7FFbrh+Lqi6FCbinBujh2R7ZC0o9E/1Qt2Qy0GLEDqrrCxSkyKjJOIN/Bei R0WQSAmvFamjchvG+hralA2HLodqHNmnIEnaz+B3CyS02MOqiSoVZSFgPXPPYeoIajek3BU KzYKLGmCxIBWZK+1q24Tg== X-UI-Out-Filterresults: notjunk:1;V03:K0:7CdXT/oRDVg=:Ae99K1ylYWNzXssUHvKKyf kWSLbyUskXmEWLyWyMQG8wVqUNs+g2kOTsdXWHXzIE3QXd28ZfG9tkx4QwVPmLKMpLJ16Q5Vk cjJXuDVnUL+btzSAJIlHTRlfKh6fSRscnrp7i5S72SvdyCuqb7ekUNCYEr0da97WZP+oJyChC G6zCrR6zCvfi51I5/XFzDzWiLt64CV6B4bLL5fxt5N6cqcIwQJrO9sWQ8xosqNHaLfYoK+8ns xaqY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raub2@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/15 07:11:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhang Chen , Jason Wang , Paolo Bonzini , Li Zhijian , =?utf-8?q?Marc-Andr=C3=A9?= Lureau Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Hello Everyone, Here are fixes for bugs that I found in my tests. Regards, Lukas Straub Version changes: v5: -initialize and use notify_sendco only if notify_dev is set v4: -fix potential deadlock with notify_remote_frame -avoid malloc and memcpy in many cases v3: -fix checkpatch.pl error v2: -better wording -fix performance-regression in patch 3 "net/colo-compare.c: Fix deadlock in compare_chr_send" -add more bugfixes Lukas Straub (6): net/colo-compare.c: Create event_bh with the right AioContext chardev/char.c: Use qemu_co_sleep_ns if in coroutine net/colo-compare.c: Fix deadlock in compare_chr_send net/colo-compare.c: Only hexdump packets if tracing is enabled net/colo-compare.c, softmmu/vl.c: Check that colo-compare is active net/colo-compare.c: Correct ordering in complete and finalize chardev/char.c | 7 +- net/colo-compare.c | 254 ++++++++++++++++++++++++++++++++++----------- net/colo-compare.h | 1 + net/colo.c | 7 ++ net/colo.h | 1 + softmmu/vl.c | 2 + 6 files changed, 209 insertions(+), 63 deletions(-)