From patchwork Thu Aug 15 13:12:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 819409 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp1151734wrm; Thu, 15 Aug 2024 06:12:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW2ecZLtIjyQXt9PuBJh+HqsEjVDDPVa7FhNY5Kt9qTHqH/1Rer4jKkkvpHoPCsWrZDh/WB6A==@linaro.org X-Google-Smtp-Source: AGHT+IF8qQGcv2nqWK2rX2blEPyy0QFjIuL22WexGrIOeBMBIxRz8gZX6sqcofIo+GdTnU2HmEvT X-Received: by 2002:a05:620a:29c8:b0:79f:4c8:d873 with SMTP id af79cd13be357-7a4fd1d144fmr587295185a.28.1723727572232; Thu, 15 Aug 2024 06:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723727572; cv=none; d=google.com; s=arc-20160816; b=ZODUz6M5T01unGlBN8B1Ix7OmLPc63bYJAUvZT+4C54dJoaj0bYKHmn+kZkd6/nH8n 5fqxM87NQR9fgw2vQOpsESDZQtVWM2Yx4/HJ0H9z7JBN1Yc1bF5M+jD5i0DU0VBNj1j8 0mbWgTf/fjJr4QPXQgEohKPBiCgGmvt2JBJoM7Bw2ZwwMuU+AzUXxZ+FWGvmmM2XKrAz IveFLDgFC7bQk8mdRMWLZNdQ67pWXK5YbdnredSO1yP5v8JGyAfpGDybqZrJoXxiN3Ez /SWbv+549HIPeIOlVI5q16ZsWlHhgxjDke734I4ygQzhT38U+28LweMTDW2I6LnAIhxq 5k7w== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=fQeJTGYV8gJkGc7HH3WsnrWzsRykqMMD3HBZvBu6UDs=; fh=OTkfrEnbNDInppsfj4HB8z6V33zCj7LOct256XBfW6M=; b=lxcZFRabu/6MNeMn5FzZr9oHc79E92CJkn/dvcKCsnjTyD+WzXy4Pp5B8fX6722kr2 svXUC4Xuu3PYdNYAzYjSpg3Z6qNNhTWs8QEBMKXI6x8rbziqiQcgTZ5+b3ZtFxYyBr5E SB1uO/han9RJNV4e9mG+SB86q2OUknQ0GwGBtExZ8hM4ufKMUJK0QaoTB8ylVcdot9BG xwoeTUmT0A+HcqZiOY7jb2l81xPAvyWr39iImgdtXjNOaDKiV7no5zVJeBqC7kvm/Kuh a2Y5YulJgDKX6CUoGR8xKl+bOrjHDjULvDcc1RF+rFOajkwRbTSyoM0JFeVuV9YIlpDf NtyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Grxdt8Ix; 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=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a4ff0e2842si187100685a.382.2024.08.15.06.12.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Aug 2024 06:12:52 -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=@linaro.org header.s=google header.b=Grxdt8Ix; 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=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seaGz-0002ae-4j; Thu, 15 Aug 2024 09:12:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seaGx-0002Vd-Bs for qemu-devel@nongnu.org; Thu, 15 Aug 2024 09:12:11 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seaGv-0001Iy-LG for qemu-devel@nongnu.org; Thu, 15 Aug 2024 09:12:11 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-42816ca782dso6004095e9.2 for ; Thu, 15 Aug 2024 06:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723727527; x=1724332327; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fQeJTGYV8gJkGc7HH3WsnrWzsRykqMMD3HBZvBu6UDs=; b=Grxdt8IxCsdkj7RPeI5rZW+Y2p0u5fVFjWLO4zRDYkOW/x6Fb/ZkMgA22jTaGZXaIY TKJu394L6jKRiKzxCxPtMo9e/P9TQ+4tkcqAxUMUxNrynCcCsuHuK1jOcQqAGizkfidB B3y9oYSK5V522db9QkxvPIPmWjJIi0H9J66VgHVmd7pzKZWH/kwmvbtWzCYgnHrqtty5 +OX4k2RhyyzeLwgSfWiWQlrj+JjADE0TQERH3FuFAXWSJZUTrCuFNV+CBU6AqV1aEeeD 0bQpNiV5bdBxv/TDZ4Kfe/RsM6a2u/9/dBMVOVrXVXlVvy1xCENYkHljWgXtP9tSIehL DFgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723727527; x=1724332327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fQeJTGYV8gJkGc7HH3WsnrWzsRykqMMD3HBZvBu6UDs=; b=o1hcpa+tJklHNFMd7AnJKUwaIPPdRqRKs4nf3PKCaDs4pA7VPa7Nr6F2jrBbaCx3dl 4yrT/4rgmdqa9BNNlfXy0FxFHN9G7onJvQzbAIPKKUH9CkaS0l2IYyi5XRHgi0o83TbX yCVW9Z5SuEY5tWCAxVnG314BxJa2fwTrHjN3NxjZOqayNy9vUC8zWRXr7Wtny44SDV6l qnRTeqTCtKXPefWSj+iMMorLmidaqqUH14okbjtBuLxZfNDCMGyWzJoYPwyj6VRFYYUA CwuzRDUfsOA6AqT5BkpexiJuRcD/LymwKDd9HG1XZQGu1gfp4dovoQB+oqaym1wllOXv xRDw== X-Gm-Message-State: AOJu0YzYEUJb+v05ItIhW2D+wcUDkMvJeN4BS4U2ucn9AQMpwEYyQr2b USaDA7b1dUmI303VmGiGdewKS6qkWDftSKggEpTtmdVIly0ORBR8eFEivyKSqBmF7p82AyHR2Jc V X-Received: by 2002:a05:600c:3155:b0:426:647b:1bfa with SMTP id 5b1f17b1804b1-429dd22ee1emr38363455e9.8.1723727527369; Thu, 15 Aug 2024 06:12:07 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded19627sm48269935e9.5.2024.08.15.06.12.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 06:12:07 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Cc: Paolo Bonzini Subject: [PATCH for-9.2 0/2] accel/kvm: Fix two minor Coverity nits Date: Thu, 15 Aug 2024 14:12:04 +0100 Message-Id: <20240815131206.3231819-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patchset fixes a couple of minor Coverity nits: * a can't-happen integer overflow when assigning from a long to an int in kvm_init_vcpu() * some unreachable code in kvm_dirty_ring_reaper_thread() Since there's no actual incorrect behaviour, these are 9.2 material. thanks -- PMM Peter Maydell (2): kvm: Make 'mmap_size' be 'int' in kvm_init_vcpu(), do_kvm_destroy_vcpu() kvm: Remove unreachable code in kvm_dirty_ring_reaper_thread() accel/kvm/kvm-all.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)