From patchwork Sat Aug 13 01:10:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joelle van Dyne X-Patchwork-Id: 12942642 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 93CC8C00140 for ; Sat, 13 Aug 2022 01:13:31 +0000 (UTC) Received: from localhost ([::1]:51992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMfiU-0001bj-IH for qemu-devel@archiver.kernel.org; Fri, 12 Aug 2022 21:13:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMffl-0004ug-Ln for qemu-devel@nongnu.org; Fri, 12 Aug 2022 21:10:41 -0400 Received: from mail-pj1-f47.google.com ([209.85.216.47]:35530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMffk-0003F7-8e for qemu-devel@nongnu.org; Fri, 12 Aug 2022 21:10:41 -0400 Received: by mail-pj1-f47.google.com with SMTP id o3-20020a17090a0a0300b001f7649cd317so9793407pjo.0 for ; Fri, 12 Aug 2022 18:10:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=oXQhEqesQmOkBaOOD7EPr55TRQt7Z0UZEV6CPXFQ1eM=; b=aj1beelHz4S0hgPGhLm9gyx0BJAJ07lCuKkNQ6auLGVi7RaR0tmKneg/NDSIoIN5Kf U1cPwYY9bbYv50e+K2BWKFYxxaCg2ys4L0jiLPIGgPxBbkZviQXEKfTwO164+bPgIpG1 0PYYxzHeBT4vCgVBkXhvLnRPkhq/Y1HG/+WywNHAgt+zOmJNsYnT8nmRvlYsjJaPVKXa prELSxxyz7LexD4RsLOoUspEerSsguOFzDtBAaFfpbmYIv29YHMUBvVlkZGWFU//Ko7z 1GbzxW2WUBoJA0alcwbta5la0awaDrWYGtFCctuwfJXrOVTtlQ5f4ezs/+zuoi3KTAY3 Nv8A== X-Gm-Message-State: ACgBeo2lP/mRsbc38kdXnnNDPPf+01lHqGM95+om3tbYfup/CiGyLqxV 00eMf4iwEoOqRqUUKq9BFYOMEg1KdsB65w== X-Google-Smtp-Source: AA6agR6Qy9+jIGMfMzyI2WxtdVjIM2o9qMBDqmUnelg7TFhWSAzku1F0SRdyefRdNcZQAkS73nIVpQ== X-Received: by 2002:a17:903:248:b0:168:ce2f:cbd2 with SMTP id j8-20020a170903024800b00168ce2fcbd2mr6456936plh.63.1660353038640; Fri, 12 Aug 2022 18:10:38 -0700 (PDT) Received: from localhost.localdomain ([2601:642:4c09:6206:ddeb:f971:2f4c:7f03]) by smtp.gmail.com with ESMTPSA id i10-20020a170902c94a00b0016dcfedfe30sm2440976pla.90.2022.08.12.18.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 18:10:38 -0700 (PDT) From: Joelle van Dyne To: qemu-devel@nongnu.org Cc: Joelle van Dyne , Gerd Hoffmann Subject: [PATCH 1/3] Revert "usbredir: avoid queuing hello packet on snapshot restore" Date: Fri, 12 Aug 2022 18:10:29 -0700 Message-Id: <20220813011031.3744-2-j@getutm.app> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20220813011031.3744-1-j@getutm.app> References: <20220813011031.3744-1-j@getutm.app> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.47; envelope-from=osy86dev@gmail.com; helo=mail-pj1-f47.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" Run state is also in RUN_STATE_PRELAUNCH while "-S" is used. This reverts commit 12d182898a4866e4be418e2abac286b497cfa1b2. Signed-off-by: Joelle van Dyne Reviewed-by: Ján Tomko --- hw/usb/redirect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 1bd30efc3e..fd7df599bc 100644 --- a/hw/usb/redirect.c +++ b/hw/usb/redirect.c @@ -1280,8 +1280,7 @@ static void usbredir_create_parser(USBRedirDevice *dev) } #endif - if (runstate_check(RUN_STATE_INMIGRATE) || - runstate_check(RUN_STATE_PRELAUNCH)) { + if (runstate_check(RUN_STATE_INMIGRATE)) { flags |= usbredirparser_fl_no_hello; } usbredirparser_init(dev->parser, VERSION, caps, USB_REDIR_CAPS_SIZE,