From mboxrd@z Thu Jan 1 00:00:00 1970 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.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 3A824C3DA64 for ; Thu, 1 Aug 2024 08:58:16 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=k+z/ezQr; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4WZNCp6g80z3dKd for ; Thu, 1 Aug 2024 18:58:14 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=k+z/ezQr; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2a00:1450:4864:20::531; helo=mail-ed1-x531.google.com; envelope-from=alex.bennee@linaro.org; receiver=lists.ozlabs.org) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4WZNC146rHz30V2 for ; Thu, 1 Aug 2024 18:57:32 +1000 (AEST) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5af6a1afa7bso7393189a12.1 for ; Thu, 01 Aug 2024 01:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722502649; x=1723107449; darn=lists.ozlabs.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Syi3zSlJ8k1vqxBzUq6nZD+avtMgHQU+/NZ7B5gDmQ4=; b=k+z/ezQrp64j9ihc1MNT3dBGXRBEeFjl3AGZvyuxZBEbXVp84Fu9gouKDdF34ksIqn ABiPvwyWhouBrAUV8WV0qFpajen6esHMAJKsATLXQElToJuKxiksKhKgOh5kJ2WJKZgt pyNRrO9wwjJkSgffpJ2/p9Aw03UhR9fK4ijnRdmV5wooE/6QejdYMbLpC06VmHjmN77C fOqSiIh6ZRPVnJind4NkYVFMWwIMJXN2/UOFtss643WC/PCYVgtpG4fIqgqG19+JuqSm /UO98WR58o6mtLtOljK5FLQnVwlny863Dx5Q/9elNnxpA1cqzDcRGHzIeAQ79yJcDHKH Jdhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722502649; x=1723107449; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Syi3zSlJ8k1vqxBzUq6nZD+avtMgHQU+/NZ7B5gDmQ4=; b=QsezOgk5PO6r9el9POdRHsUnaZqr9sQOLuUo5Z2bvyuP460NbaEZUq9eel05xBmIum 93IVzt5fW0utMkE3i1otfMSMpJFV6Yc87nIxZEBtw1DnGkvQ/8GVRQKu89mynAlIPZiu oF52W2W3mVWZ6ha5W7O9bVn8XI1wZechhm2LibEWIzAy3gKlzysBcjD8nlC3XOl4VuAy RSt2L0idEpA1R7r43/qnLS4B/y4BmPJ6Npg24cxb1bFfpeCbjgkMTnBqLFPxqQwlJ76d DwChRwOXsW92lDPFKfKUkhN1QViQpI8ed930C55EQrFS2HxvpzpMjllEaaHr1b5vamID f6JQ== X-Forwarded-Encrypted: i=1; AJvYcCV0iw6tuR35Dx6nJPB6ryxdlZB3Zyh6IPB1SdV/o6fbfldVyJIY3q4UA4Eee68tqEljTWjYPHUagGtRlnoLTySJMCzHAyLoGheW0Mx/1g== X-Gm-Message-State: AOJu0YxYmrSQIE/kVr7AiR+OABHsvbm9QyhfDph49NiQYemwlBEFBFc5 aIsdf9n4hxlGQ0Eu9Efhw3tWjl6DJtOSkRVaDJ6Up/2aqGDVeW3paaKUykQxOqU= X-Google-Smtp-Source: AGHT+IEdS3NM6t6Y7T/95sEL4C7ubpn/6F0Cu3mCtANczyd9mmWSLE4tcyyhWaOoIZKPq4CsXdarWQ== X-Received: by 2002:a17:907:6d0e:b0:a75:1069:5b94 with SMTP id a640c23a62f3a-a7daf535320mr136914966b.21.1722502647807; Thu, 01 Aug 2024 01:57:27 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acadb82d5sm865337466b.199.2024.08.01.01.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 01:57:27 -0700 (PDT) Received: from draig (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 3FE7E5F80C; Thu, 1 Aug 2024 09:57:26 +0100 (BST) From: =?utf-8?Q?Alex_Benn=C3=A9e?= To: Sean Christopherson Subject: Re: [PATCH v12 03/84] KVM: Drop KVM_ERR_PTR_BAD_PAGE and instead return NULL to indicate an error In-Reply-To: <20240726235234.228822-4-seanjc@google.com> (Sean Christopherson's message of "Fri, 26 Jul 2024 16:51:12 -0700") References: <20240726235234.228822-1-seanjc@google.com> <20240726235234.228822-4-seanjc@google.com> Date: Thu, 01 Aug 2024 09:57:26 +0100 Message-ID: <875xskfwnd.fsf@draig.linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, David Matlack , linux-riscv@lists.infradead.org, Claudio Imbrenda , Janosch Frank , Marc Zyngier , Huacai Chen , Christian Borntraeger , Albert Ou , Bibo Mao , loongarch@lists.linux.dev, Paul Walmsley , kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Oliver Upton , Palmer Dabbelt , David Stevens , kvm-riscv@lists.infradead.org, Anup Patel , Paolo Bonzini , Tianrui Zhao , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Sean Christopherson writes: > Remove KVM_ERR_PTR_BAD_PAGE and instead return NULL, as "bad page" is just > a leftover bit of weirdness from days of old when KVM stuffed a "bad" page > into the guest instead of actually handling missing pages. See commit > cea7bb21280e ("KVM: MMU: Make gfn_to_page() always safe"). > > Signed-off-by: Sean Christopherson Reviewed-by: Alex Benn=C3=A9e --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro