[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 6/9] x86/spec-ctrl: Use common MSR_SPEC_CTRL logic for AMD
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 31 Jan 2022 11:25:47 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uCX8xF9FVUPpcbKKhu0HL4/O08CoxLxbKuHiVC4DxqU=; b=mGaWQS1PPiNA8w6Z8O4xRYAu6NfdknUblqm3cEtiN/1KvFLiJkxw5pJd4SyFhL7TevR4GriAXCNV/Zdi5MdrYVc4Kg2Z9L6kwTNnSVh5GnVkAH7/giCGPcFrYNf8aKH3zC9P929RmglAuqDzUUX9HT42e3Wxg0ea3ALtpWnXNfErdn4BxJtdaPSfpS5p1lqORfah9xmzeUgVyEqH3p4F1N7tWtUitcxlohnsOtmjjolQs2FHuub062CrhA3ATT7IJOgEC+mx+r9SF2FvguA3JL3L40ryEJ6VONtTtNlsjZ3aXsKjATD6KCJU5ihMo9sfM5MqdNfDhm7D41lhanmBJQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bw0/y8FNuNuWZ8m9ejuUICez+i5a/2ONCOgPswLKIpSit+uIT1DUn4xFL9CeSPWZeHKq5vckHIrcW9aZgIH0Zzt29ONlWjccwDGPvUoR2qn7nmP4wSo3Ucdr/BueXPixit54n9WA0NXNUwsUKfzWfwhSh4xWoZl86hnKrI4aFplxfe8FkWqJtrsZn0R53i4z8qL/zkWx2s8mrq0nvPR7ZD43Ju2iIFrbRynKpb/gxsXnX/nUEZAOcmx9QbDAIp2qYHJP1g4yNu9QKsMwbEIGPLdxsNfbw5f+Ss1Xz1fT2ZvIOgWYhJ127em1AL96GLCdBekhIp7/LFoxXyqyhhBTrQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Mon, 31 Jan 2022 10:25:56 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 28.01.2022 14:29, Andrew Cooper wrote:
> Currently, amd_init_ssbd() works by being the only write to MSR_SPEC_CTRL in
> the system. This ceases to be true when using the common logic.
>
> Include AMD MSR_SPEC_CTRL in has_spec_ctrl to activate the common paths, and
> introduce an AMD specific block to control alternatives. Also update the
> boot/resume paths to configure default_xen_spec_ctrl.
>
> svm.h needs an adjustment to remove a dependency on include order.
>
> For now, only active alternatives for HVM - PV will require more work. No
> functional change, as no alternatives are defined yet for HVM yet.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
|