From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 424F929A309 for ; Sun, 14 Jun 2026 16:33:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781454833; cv=none; b=nWRKhG1L9yp/yi9A1Tsf2zEFgNdhAbVSS5Q2J1X6qVwCaF0O4f0+fqCr3cvZoYV0wJXzeZRcrazImBE/d6Mg27MdjaI6dxOU4WSK4nFvjIiGAtMIfFhwoD4YV/wq52bhgRgt0G4yE01mAJglj5LBuh+pOWAXNNVCMzgr7SBIohA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781454833; c=relaxed/simple; bh=rB6p4hgnJajGerBJPefFKCwu6SD4tYdi0vEtVCjN+DE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=qrq7r2x/AII9GpFl72bXelkmMQFvobl9TwgLjdmdGbffHaWi1d/pc/kmkApcFK4CetB6lLZsV67M5uS/smRSWYSEiz4Srt+8e8UWEQu5WkwU08yO/1KZpR6lnfnFkYcj/jKVqk9lHSi2AVPNJfp7T9Hew9kVq9hiiafIQozLFnY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--tabba.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=a9/OMX+Z; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--tabba.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="a9/OMX+Z" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-490e547f3cfso23777315e9.3 for ; Sun, 14 Jun 2026 09:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781454824; x=1782059624; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=NFNzURuXDPJOtNYOPDVBgp1lrFOmwFX8HD0T0LBBDZw=; b=a9/OMX+Z6dSXdxbYpL31yfXMtP9/XRUFPQiBY4gKBur8a7GjV7W1gWEFoXLj9B1YHB uiOyFWEZLaHlAxuguUT2wv6gPrNAwYVhkNk5dn570LSyIyQaGjjuDSTZ4u1Ef5IYpSyT zDILPK0WQbAmPbeLj4hZhBSlLwzTaMe5aUsMo37cckAMUwUkl9eLUyQH4m6YW047PvGw Pz2n7M1mkLmOrmulD6kKKB5nrXb/NCkDRe5Zp6fyljFX/dB6W+QvRwfHMTT3vEdvh/FG U/qEJ7nEo3THjZxGqs8xt3SmBrLu7alGCy/eKnZaoJ4bs6dVqPCbRueL3WLMQN4uw22R imAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781454824; x=1782059624; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NFNzURuXDPJOtNYOPDVBgp1lrFOmwFX8HD0T0LBBDZw=; b=G3xnU3ELKXyZH+ojv6EygjBrUAt7s61/unzTnzWCBFGRGEV6vSMLGAr5e19o/5YrE/ g/OofLieIdKDTWs8TWXCUG0SjXUNr9RwmjECC3wVs8WqzylbR6uIqV41TlWrkL9nP/il QYidRKVYDMFRrFcaA+KAnoxDlMze2Mpx3eWXYepPBhCDJ2QrEHhyO2vJSv0fRwi65vbF rgHfvA+qgQEHeQ51e4Tv1J9dQ7xn9VXAhy8XHRnv5Wbil/lZX5ZbfPv5M9BG/w0keGEO OvdZhc2+lbXiwIxv9gfBLW94++Ajry/dAEfEXPW7+jaUfUANfROxM1pC0GMUIaTTZETq hozg== X-Forwarded-Encrypted: i=1; AFNElJ9KALpuQzR5P6gRsfYK+gMkdOQVPiDRSfTqQU0GWj73qZuPRzOpBflQzWidGX5oM/Anz9AY1zNp5ZgdbDE=@vger.kernel.org X-Gm-Message-State: AOJu0YzWCiVde8OaIodMUzna+GOqWEdOIKHvgJxF153KW175SyGeyQ/A 5m8uyHpO6fCqlczl98++KzWEjXC1+35jryWiCZCGBoqkaokiWqvbV1vmcJ0f5ETzoUPmHLAfYlI VeQ== X-Received: from wmqi7.prod.google.com ([2002:a05:600c:3547:b0:490:5e18:ff1c]) (user=tabba job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:a215:b0:490:e89a:b221 with SMTP id 5b1f17b1804b1-490ec5071dfmr86889055e9.35.1781454824318; Sun, 14 Jun 2026 09:33:44 -0700 (PDT) Date: Sun, 14 Jun 2026 17:33:35 +0100 In-Reply-To: <20260614163336.3490925-1-tabba@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260614163336.3490925-1-tabba@google.com> X-Mailer: git-send-email 2.54.0.1136.gdb2ca164c4-goog Message-ID: <20260614163336.3490925-7-tabba@google.com> Subject: [PATCH 6/7] KVM: arm64: Set IL for nested SError injection From: Fuad Tabba To: Marc Zyngier , Oliver Upton , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Vincent Donnefort , Sascha Bischoff , tabba@google.com Content-Type: text/plain; charset="UTF-8" kvm_inject_nested_serror() constructs an SError syndrome without IL. The architecture mandates IL=1 for SError unconditionally. Fixes: 77ee70a07357 ("KVM: arm64: nv: Honor SError exception routing / masking") Signed-off-by: Fuad Tabba --- arch/arm64/kvm/emulate-nested.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/emulate-nested.c b/arch/arm64/kvm/emulate-nested.c index 4b39363cf891..4262d4c17a87 100644 --- a/arch/arm64/kvm/emulate-nested.c +++ b/arch/arm64/kvm/emulate-nested.c @@ -2938,6 +2938,6 @@ int kvm_inject_nested_serror(struct kvm_vcpu *vcpu, u64 esr) * vSError injection. Manually populate EC for an emulated SError * exception. */ - esr |= FIELD_PREP(ESR_ELx_EC_MASK, ESR_ELx_EC_SERROR); + esr |= FIELD_PREP(ESR_ELx_EC_MASK, ESR_ELx_EC_SERROR) | ESR_ELx_IL; return kvm_inject_nested(vcpu, esr, except_type_serror); } -- 2.54.0.1136.gdb2ca164c4-goog