Message ID | 20220802155447.216018-4-dgilbert@redhat.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp4465850maz; Tue, 2 Aug 2022 08:56:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4uCw0YSlov8Rl3+8v5dSAN2IHrogR6MqgqVwLPP+0N/VcxoP0RRhmdnbhwzjNwzjFoa5K X-Received: by 2002:ac8:57d6:0:b0:31f:14ff:adb5 with SMTP id w22-20020ac857d6000000b0031f14ffadb5mr19378687qta.164.1659455789661; Tue, 02 Aug 2022 08:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659455789; cv=none; d=google.com; s=arc-20160816; b=fI/CzLPGhl+tDeHc40SIH/5alkQ/FZN7jMFVFUxkInhUleSeTs6uje9+8AN4QqHVJi czsMjZfk1KnXcpPitV2TYDDNqUpP1yJy9WBoZbhv20TfC9P7gKvuvMvYLIcRQ9gIorVd ftoeRHuFNS+bZ2xNce0Ck48zZkIfX+q9w86eLf5ppwb6Fudvis8t2TWNXIlNcqutpX2G Rnkq4E/7H3GpVC/becDCaOt1RSxy8nrMhTvEa06V+y+CTW547ynFL+C3R1Wbx/uQQjt4 eSE8UupV+BZ1DH7Lryk+DUYYE85HaIh2gIKZHbK8z6QOdqtorTKx1qPtXqz61DLGoKTL H52Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=edEQsUhR6hr1/ASmTNeS6vScYe5Y3o/L9fpqOz8wMgA=; b=fSqMR0RuPWNHCtG4QQzbxL75ZhYtBQu0MCXyjw0NIwCTQqLJ8SnQhnFFZjA43av4CT KCnqTBjEcBwYNjhHs3PHrbYSE6PxjOt9BxqEod1AacXY+u8WIq3+joMPjnb0ySAQAEsu ha3S3/gqkCqDuBhvLghNhq3oJCnu9FyCxxhUxlmbYagJrPbr15JdqfXmQo6sCJcEwBZd 4t6ol9KZQW6OyxVaSK4tOGV4ocm3ol6cxoFTUjmKeXM75AmyQAHRDTUBQbUUtDrCcZlz lvI5pA6VEPEwf7PKseFoC3uK6TLX0W6kQ18/wbgxW44TJDnlfw2WID+CSR7ophDzKlE7 bgfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q6dcrJvk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 5-20020ac85745000000b0031f022362dfsi10224752qtx.458.2022.08.02.08.56.29 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Aug 2022 08:56:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q6dcrJvk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:33984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1oIuFx-0004AD-6l for patch@linaro.org; Tue, 02 Aug 2022 11:56:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <dgilbert@redhat.com>) id 1oIuEY-000475-7b for qemu-devel@nongnu.org; Tue, 02 Aug 2022 11:55:02 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <dgilbert@redhat.com>) id 1oIuEV-00024P-3j for qemu-devel@nongnu.org; Tue, 02 Aug 2022 11:55:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659455698; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=edEQsUhR6hr1/ASmTNeS6vScYe5Y3o/L9fpqOz8wMgA=; b=Q6dcrJvk0YKCIPyqGl73z1VF//kc0k+Ag7Jzv+Nj33kieZ1rCDIIOafT1JwtCaM7mGM26C fX8nTygQpadJVF4zQrHwBjdiThXRoEuiZjItHRkg2Bd3zUHpt1yaumc8H1hajWsXJdPxaz v9DHF1FTdhuf1CHUri/LsaWpLA5+wA4= 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-670-IYGkIK35ORyVNeZGqDzELA-1; Tue, 02 Aug 2022 11:54:57 -0400 X-MC-Unique: IYGkIK35ORyVNeZGqDzELA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 37CD92800482; Tue, 2 Aug 2022 15:54:57 +0000 (UTC) Received: from dgilbert-t580.localhost (unknown [10.33.36.167]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4460C141510F; Tue, 2 Aug 2022 15:54:56 +0000 (UTC) From: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com> To: qemu-devel@nongnu.org, leobras@redhat.com, thuth@redhat.com, peter.maydell@linaro.org, vgoyal@redhat.com Cc: peterx@redhat.com, quintela@redhat.com Subject: [PULL 3/5] migration: Assert that migrate_multifd_compression() returns an in-range value Date: Tue, 2 Aug 2022 16:54:45 +0100 Message-Id: <20220802155447.216018-4-dgilbert@redhat.com> In-Reply-To: <20220802155447.216018-1-dgilbert@redhat.com> References: <20220802155447.216018-1-dgilbert@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Received-SPF: pass client-ip=170.10.133.124; envelope-from=dgilbert@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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_NONE=-0.0001, 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
None
|
expand
|
diff --git a/migration/migration.c b/migration/migration.c index 82fbe0cf55..bb8bbddfe4 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -2617,6 +2617,7 @@ MultiFDCompression migrate_multifd_compression(void) s = migrate_get_current(); + assert(s->parameters.multifd_compression < MULTIFD_COMPRESSION__MAX); return s->parameters.multifd_compression; }