From patchwork Wed Jan 24 15:54:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 765637 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp2180696wrx; Wed, 24 Jan 2024 07:55:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdMpGlpXs0lINo681nDNFytRGOx7uNrKWD9ufy1IkY/evCwAfyPiNylzYxqziK/PHtMr2w X-Received: by 2002:a05:6808:1451:b0:3bd:587c:5b6 with SMTP id x17-20020a056808145100b003bd587c05b6mr1841874oiv.61.1706111731414; Wed, 24 Jan 2024 07:55:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706111731; cv=none; d=google.com; s=arc-20160816; b=AvCI8bu+Lmr5NgBtvhGjHKoKOrhqbLwYRZAkD7cmOtn1gDhTo00rM4FJPhFar6oQH1 dKk8fk/P473HfSHVZ9Ir/mubeLumHnKHNujf1KMM5e1pALLtUoUnkRPQLDHChhakzp9/ S/nCYiWO46WagfSB8P8QqAJazaK7gRSb+0F8h2Gium8I2DfKecigq5jC1VLuVc0q4jTv ufYzuq+gHCE5Aj+K+7nDA28wMbK1KKsup2UHVANhyQ5zwRh8iwDcFTwWyGzmLpvjpGxt z2WtwBBBQprhh2/9vH+A6Bc+HKEUa8NFHYH73y2GpdSkFob2Nt2ksbHC2GJt1LR5YRzO XJCQ== 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=BK/V9dj5YhGk0iLWuoz8QxmPAwCjQLFlhcHGZGmRcrA=; fh=xK/PpTBdOmWf4C8q/qM/JEZSr/jQk367oOzmeGjbBKo=; b=kOD1vg92HLtOxCMJjV1mwaPeD8fups8K0JEto0zsatzrvAWEUVemvXeSsKJdWHSesO wYkArCfxpn/kCwH/NfQ/iA+RQAj4YTPJYrzWcIgNnXDZ3Ml4Wa6+Hqjjgp70A9N4V6Li q3ZNo7kl140Aa0FRnZyecqsFfWXAwz151EiYPny2aa1L0/KgTxY8fypg6Oy1PuTO5wq7 xukD93jlojkTa1f0eIwnEbSk+kx/hHiNOFlKf1h9Ry44fZ7n3S2p56nLqatKxeTuHqxR d8dONTdrqBCxH9tZX3XQMDWrpre+NCwrDgM9Rvhmw899hhAm8O9fZIW+UnPeIs61JttW +eHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A45BWDTw; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ow26-20020a05620a821a00b00783a17bcb40si6215233qkn.633.2024.01.24.07.55.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2024 07:55:31 -0800 (PST) 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=A45BWDTw; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSfaF-0003Z4-AH; Wed, 24 Jan 2024 10:54:35 -0500 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 1rSfaD-0003YN-CM for qemu-devel@nongnu.org; Wed, 24 Jan 2024 10:54:33 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSfaB-0002MT-7M for qemu-devel@nongnu.org; Wed, 24 Jan 2024 10:54:33 -0500 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-337d32cd9c1so4962932f8f.2 for ; Wed, 24 Jan 2024 07:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706111669; x=1706716469; 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=BK/V9dj5YhGk0iLWuoz8QxmPAwCjQLFlhcHGZGmRcrA=; b=A45BWDTwJPswzj1c8EJFOY35BoVLhiIaaPINgUnDLlpsg88vuGtY1O2tDlVHquYWTz l/Zn6Marm/xsKyO5AKGC6eMGT11qezmohmFOxK70cjvIre2zeDUnTlETyxKCpWXL3qJO 9x0+VXbpUqz4lfIvx/GdG96+LTrX7V6BMCFUAH6maqWCnlln0fdOi3KXuumR0NQ2e4+v lVH2svZtxgbGDIqO5T2T9X18od12/qmEYWA6ScpFL5jB3tejjBIyf+fcjs2w/63ez200 WQoltk4evhBotxkaoEBUOOwSCBcg+Ue9G2fHFJuV2l5cxe0flJIShkFBOF36B6IUbLcU D+xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706111669; x=1706716469; 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=BK/V9dj5YhGk0iLWuoz8QxmPAwCjQLFlhcHGZGmRcrA=; b=jD1WOv4qwBBUxDHAXxuuy29x2TzQysbgRCuCZqP4Zi5ay5Pxi8qRYon0W95KBD92In IjUYktt18PR6uVqMY9h7dsHCWzlFta5ZJ86F+vb1owwGVTH8pZPtKJDnpg0JTN9GOCAV XGh+YEiI3qbKNEQWhcnI7FNgWXw4muFY9vuWWdGRkdODAISIH/Vbgr5dql3woq8O/hm4 ZJK9L/izXGGgLlQaGEXqyP/qTrP5RXP29xySXjAaKxgscH3CuL5bKHeSISH3Q8rJdA2G 47wqIKdG7Lj5YjdVV5XRP8Chx6RZthfTO9bXFi57zhVVm5QeDIp8AH3tr8kyqHj/Rgn5 HHew== X-Gm-Message-State: AOJu0Yz5Dq+s9XhCcRKtwVQS5hP73o/KCNRsYgQEwUZBGY1V/7ap4NZM LZWq0EZlkteRx8Afk8qVAdjCUmb1B+QVqJ1fJzOPSlJtOOyj5G8nwbusBmv4hx1L4GSFoo3CsKn z X-Received: by 2002:adf:eace:0:b0:338:fcdc:ad19 with SMTP id o14-20020adfeace000000b00338fcdcad19mr698831wrn.6.1706111668791; Wed, 24 Jan 2024 07:54:28 -0800 (PST) Received: from localhost.localdomain (lgp44-h02-176-184-8-67.dsl.sta.abo.bbox.fr. [176.184.8.67]) by smtp.gmail.com with ESMTPSA id a17-20020a5d5711000000b00339273d0626sm11842179wrv.84.2024.01.24.07.54.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Jan 2024 07:54:28 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , qemu-ppc@nongnu.org, qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Thomas Huth , Paolo Bonzini , Peter Maydell , kvm@vger.kernel.org, qemu-s390x@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/2] accel/kvm: Sanitize KVM_HAVE_MCE_INJECTION definition Date: Wed, 24 Jan 2024 16:54:23 +0100 Message-ID: <20240124155425.73195-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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=unavailable 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 Trivial replacement of KVM_HAVE_MCE_INJECTION by KVM_ARCH_HAVE_MCE_INJECTION (not the "ARCH_" difference). Philippe Mathieu-Daudé (2): accel/kvm: Define KVM_ARCH_HAVE_MCE_INJECTION in each target accel/kvm: Directly check KVM_ARCH_HAVE_MCE_INJECTION value in place include/sysemu/kvm.h | 7 ++++++- target/arm/cpu-param.h | 5 +++++ target/arm/cpu.h | 4 ---- target/i386/cpu-param.h | 2 ++ target/i386/cpu.h | 2 -- target/loongarch/cpu-param.h | 2 ++ target/mips/cpu-param.h | 2 ++ target/ppc/cpu-param.h | 2 ++ target/riscv/cpu-param.h | 2 ++ target/s390x/cpu-param.h | 2 ++ accel/kvm/kvm-all.c | 10 +++++----- 11 files changed, 28 insertions(+), 12 deletions(-)