From patchwork Mon Dec 2 12:04:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 13890501 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92C931FE473; Mon, 2 Dec 2024 12:04:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733141061; cv=none; b=mYg7g1kk9bAI7o6m4MCf/wj8xfOVZ6ncJTyeC7GiGOBcQOB5fPzku+zE4e8wNUD79fIVnGBL2/CTO7X/VthrAsMy60XhSTqsOmyhmkK5JBAhz22GEl7+cXXFQ+8qtK+dnUIBtDy0pVX0zSPDIWknrAwaEAml+ANdb8JjrTdEP84= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733141061; c=relaxed/simple; bh=vR+qv2NB8nsfTisJ2Ckp7+Knn+5xHm36+cK3KWkfffA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VG3H3IgAtVWRnaOaPRCp0LMm+CEkt8qN+J4hpCLkWSXuJFNae6kZ34zmWrnZlOKBx71y0Zhbqb1Vzt27egOz0BJexZElFTt9Q+YcDLHhxeXSlgmZOXMACJcmqSbhKAsagey3kEFif6GvqPp7m3Ir1xg3sI/AOSP4rs/HZTVPvaE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iWj3QDTN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iWj3QDTN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AAB8C4CED1; Mon, 2 Dec 2024 12:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733141061; bh=vR+qv2NB8nsfTisJ2Ckp7+Knn+5xHm36+cK3KWkfffA=; h=From:To:Cc:Subject:Date:From; b=iWj3QDTNe+PwJ8oP81ALjCqoWbgddTryiiaccgDAZaqTFCbhAvvJXmypdgPtH8WUU BWNq3xTBt/WES7ZRSv47zejwqH+wdujSk7Yl1oaAgZJTHfFsDpe69496Gm8O+yaTGz PDaRRv0fAGv0bN3gcxPQMDLop2Y+gY/dV3zyuZNanpHRFKq3TstE/fhWGaHUpApXwR HnDBCuMnVEVXqJfTkQIiK52J9QdVC+mnedhAuh7o4Q1vFtV1IqDSt9ErqgJGCqYuZi quRl7ZALadxoXnenRLe7W7LFRwxg34+UKqmZH21ieQYESoYJcndDmPh154bHj2MOtD ESjzdwheEd+yg== From: Borislav Petkov To: Sean Christopherson , X86 ML Cc: Paolo Bonzini , Josh Poimboeuf , Pawan Gupta , KVM , LKML , "Borislav Petkov (AMD)" Subject: [PATCH v2 0/4] x86/bugs: Adjust SRSO mitigation to new features Date: Mon, 2 Dec 2024 13:04:12 +0100 Message-ID: <20241202120416.6054-1-bp@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Borislav Petkov (AMD)" Hi, here's the next revision, with hopefully all review feedback addressed. Changelog: v1: https://lore.kernel.org/r/20241104101543.31885-1-bp@kernel.org Thx. Borislav Petkov (AMD) (4): x86/bugs: Add SRSO_USER_KERNEL_NO support KVM: x86: Advertise SRSO_USER_KERNEL_NO to userspace x86/bugs: KVM: Add support for SRSO_MSR_FIX Documentation/kernel-parameters: Fix a typo in kvm.enable_virt_at_load text Documentation/admin-guide/hw-vuln/srso.rst | 10 ++++++++++ Documentation/admin-guide/kernel-parameters.txt | 2 +- arch/x86/include/asm/cpufeatures.h | 2 ++ arch/x86/include/asm/msr-index.h | 1 + arch/x86/kernel/cpu/bugs.c | 16 +++++++++++++++- arch/x86/kernel/cpu/common.c | 1 + arch/x86/kvm/cpuid.c | 2 +- arch/x86/kvm/svm/svm.c | 6 ++++++ arch/x86/lib/msr.c | 2 ++ 9 files changed, 39 insertions(+), 3 deletions(-) base-commit: 40384c840ea1944d7c5a392e8975ed088ecf0b37 Reviewed-by: Nikolay Borisov