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

Re: [PATCH v3 1/3] amd/msr: implement VIRT_SPEC_CTRL for HVM guests on top of SPEC_CTRL


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 21 Apr 2022 11:34:47 +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=k68fuNs+Aikxltf9kuzUs8ZmRf7XM5WMesTjk3NmLn0=; b=CRaq3Zy760RfntonF9pFFQOlBB7CgQItvLY/PhliQhkQz/CBCuRsWU7ljUiuFfY81zRCSOQYkgwDmwfnYLCMcrrm82mXDeLoPMZDPJxM8b0mt08hZ++TfZdukwSyfc2f2QWTi+6GWjNcdI2Xtw/yGNjwHGfPbWiSJPMwunRRHOoGnD5uCVWmOWtIiw4u6jfgC2AYEy3LJCsDgUNwbvd5mBxD0EjRQg/Efm22sokOTKxyIe5o+sG6hPGQ3HaqH+qcTW0INnK/5ZkuIL1cyOeQHiWKvkmsQmxQozAgw46jkYG5c8AUFKyyhBFMvUvE0x4/9v30nUxsa6IFhfA1H7cvOw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H7b18MJ2tjOtQAHmMntqJECoK2sIktHZHhqygiwt2+ISpq7HpK/An4QJBRqB1KXAKprIF7rvCZx1QrCrBo3UVc5DuETkxZJwOIZUlCxqJoam/enhssX3QKYA6Jo7ryC/B9wpkBKFTXhX4nT3KjFie2wkoop/whqJ5T3pn6+MMOvzqrz0CDs2UZXZcHY12fYlQwpv6FvsGhqgcwD6E6c4FAnKue27uhAoGUyUfdaeEfmQdsVI1Ah+j6Ju8mdDT5WM9PhUAwUEgadiGSYVThb2bno01cP2OMobPQULWgwO4wVuvk37yMW+1ED+zPFwvuJHN9qtRvSusTFblz4ty3Znvw==
  • 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: Thu, 21 Apr 2022 09:35:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 31.03.2022 11:27, Roger Pau Monne wrote:
> Use the logic to set shadow SPEC_CTRL values in order to implement
> support for VIRT_SPEC_CTRL (signaled by VIRT_SSBD CPUID flag) for HVM
> guests. This includes using the spec_ctrl vCPU MSR variable to store
> the guest set value of VIRT_SPEC_CTRL.SSBD, which will be OR'ed with
> any SPEC_CTRL values being set by the guest.
> 
> On hardware having SPEC_CTRL VIRT_SPEC_CTRL will not be offered by
> default to guests. VIRT_SPEC_CTRL will only be part of the max CPUID
> policy so it can be enabled for compatibility purposes.
> 
> Some reasoning regarding why '!s' is used to annotate the feature:
>  * '!': the feature might be exposed to guests even when not present
>    on the host hardware.

As mentioned before I don't think ! is to be used for this particular
purpose. But this needs input from Andrew. Hence ...

>  * 's': the feature won't be exposed by default.
> 
> Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

... only tentatively:
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan




 


Rackspace

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