[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 2/3] amd/msr: allow passthrough of VIRT_SPEC_CTRL for HVM guests


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 17 May 2022 17:33:17 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; 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=YPomcrMHyVS4yEhzFuY5BqzsedvZHUZKTmP9f5LQiEA=; b=jJ3PjPf+ps5Zn4SXmIWgq099hxObnqJue65uOA3yISoK0j6+rqIGGxY6C4TsjRtsdKe57/oTKSmW183n0Yu+UP8otRbAbOdM9vnaVW7rkMvQkKrA/NmFvtxzERbWknk+8B8nXwM24ycyNvGjXVMoDPpUSSNUqdFWDqhHN/ARmSpJtodc9jKUS/sesKl21zWoKhzKK9Z0NH6hqc8ysrwJz/DwYMSOg9o6KFhEZGbJ5ZBGOfuc9+Qa1j2X/5bYUWK3+jwmneO70I+i7hflMiP/pKAA66EDR4H3PV0CL3OvQ/0VdfNgHsyrqQIDufS7Xr0YsmGB7/UogDcGPo9R3STuSg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eZJXoAVaQueZYV/9dBG26zlrwmEZ1lGxphL/YOW65ILQT3IXe+DWxQXxBAf4a5kOGBKon2dRmc5IVM7Ps1Lf8wKABkCT6rOkXFB+LPdr/hRjURBDiOoCeniWibKjRBNixHZNwb4cZLEcefZQZBw9GNv/RB5uc10sV/ri/syEEpw9WQoS4p+wka4kuuJrJO6XwmzfHpDYaPSEcFhk4VuGBRk9wBwJuS/g83euaooVsmj66Fzy4VHxCNwwyFrKDtgGsf/ixepZgf94Ins1d3ZINTgSqwus7bJm3XMDYvLhsOhgoPCMqgt9asz1P8OpgVuVUHiFs9sKU84K1IoTR+MAUw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 17 May 2022 15:33:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.05.2022 17:31, Roger Pau Monne wrote:
> Allow HVM guests access to MSR_VIRT_SPEC_CTRL if the platform Xen is
> running on has support for it.  This requires adding logic in the
> vm{entry,exit} paths for SVM in order to context switch between the
> hypervisor value and the guest one.  The added handlers for context
> switch will also be used for the legacy SSBD support.
> 
> Introduce a new synthetic feature leaf (X86_FEATURE_VIRT_SC_MSR_HVM)
> to signal whether VIRT_SPEC_CTRL needs to be handled on guest
> vm{entry,exit}.
> 
> Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.