Message ID | 20240411063027.493165-11-andrea.righi@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VFVFX1cjwz1yYL for <incoming@patchwork.ozlabs.org>; Thu, 11 Apr 2024 16:30:56 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1runxR-0001oh-Aj; Thu, 11 Apr 2024 06:30:49 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <andrea.righi@canonical.com>) id 1runxK-0001bv-Ka for kernel-team@lists.ubuntu.com; Thu, 11 Apr 2024 06:30:42 +0000 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (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 smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 36F773F17B for <kernel-team@lists.ubuntu.com>; Thu, 11 Apr 2024 06:30:42 +0000 (UTC) Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a46cc88be5fso502623566b.2 for <kernel-team@lists.ubuntu.com>; Wed, 10 Apr 2024 23:30:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712817042; x=1713421842; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0SYmGCgt3Aymx2U9U72RftwJBChVwJeOeKsooLB9/Bk=; b=si9yB6iRMBxzHGgmFOlFKGx2gSmsweQYQ06qDVX4Q6ydoEdElaUYXq52qCqqAD83qt NxhuHMvlGJwmCkrdmN+O9szmGs02zOum6vAToHBF+A9h3AEpVbGNteS3i/VRQLFCF+jB R8sQRnQosuO3Y4G3JyOAshRirbWDDEw/r22QPOmsif1sNYxz6xsy+sCbVODk/R2t0qpR CjeZhbGACvLCCOL/ATXuorjwo5vIwh1FWZTx8OsNUrAmVzLjEvfHYUwFGyeLL8imhnPt qRfd26EtwuluAWwEis8hT7H93a5O7h+NHXHoC++rUFIqUDe4u78LXwhiENDRM18VQAzp uxRw== X-Gm-Message-State: AOJu0YxT2Fn+KH1ypiMXiLe7bvuo/BOOSK9Dm4nnzeteNUiLa6mVPQnV lR3n4rQJkvhafPeZ3CAe3dFI1kBpCTwoEHL0RC5VyiNSmLfySqeGxouLZodamHbdSgIDZ3Swtxt r8fFs1954L30tNhVfSfu12zKuLZz7Wum5lNu9nHcbtLw8bYGfjUJCWvaNHXjCJbYuZMAPWyvB6y CyyIqd2DtiFA== X-Received: by 2002:a17:906:494f:b0:a51:ad4e:15f0 with SMTP id f15-20020a170906494f00b00a51ad4e15f0mr2761324ejt.29.1712817041665; Wed, 10 Apr 2024 23:30:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUX2P8K8UEYW9Y7Lu5GRu2eR+mqjCb/BczWMUE903EIK01RJB+0QS+LLa57z+rjvq7gZRs7Q== X-Received: by 2002:a17:906:494f:b0:a51:ad4e:15f0 with SMTP id f15-20020a170906494f00b00a51ad4e15f0mr2761315ejt.29.1712817041273; Wed, 10 Apr 2024 23:30:41 -0700 (PDT) Received: from gpd.homenet.telecomitalia.it (host-82-49-69-7.retail.telecomitalia.it. [82.49.69.7]) by smtp.gmail.com with ESMTPSA id la23-20020a170906ad9700b00a5224d9a596sm148108ejb.11.2024.04.10.23.30.40 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 23:30:41 -0700 (PDT) From: Andrea Righi <andrea.righi@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [N/U][PATCH 10/11] KVM: x86: Add BHI_NO Date: Thu, 11 Apr 2024 08:24:23 +0200 Message-ID: <20240411063027.493165-11-andrea.righi@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240411063027.493165-1-andrea.righi@canonical.com> References: <20240411063027.493165-1-andrea.righi@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Apply mitigations for the native BHI hardware vulnerabilty
|
expand
|
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index ffe580169c93..8e4e48840290 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -1624,7 +1624,7 @@ static bool kvm_is_immutable_feature_msr(u32 msr) ARCH_CAP_PSCHANGE_MC_NO | ARCH_CAP_TSX_CTRL_MSR | ARCH_CAP_TAA_NO | \ ARCH_CAP_SBDR_SSDP_NO | ARCH_CAP_FBSDP_NO | ARCH_CAP_PSDP_NO | \ ARCH_CAP_FB_CLEAR | ARCH_CAP_RRSBA | ARCH_CAP_PBRSB_NO | ARCH_CAP_GDS_NO | \ - ARCH_CAP_RFDS_NO | ARCH_CAP_RFDS_CLEAR) + ARCH_CAP_RFDS_NO | ARCH_CAP_RFDS_CLEAR | ARCH_CAP_BHI_NO) static u64 kvm_get_arch_capabilities(void) {