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

Re: [PATCH] x86/SVM: restrict hardware SSBD update upon guest VIRT_SPEC_CTRL write


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 9 Dec 2022 11:11:29 +0100
  • 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=/HqgRSoTut7COvEcw/JZWEfJtvUMHrnzloAMAO2YluI=; b=oHpcDCi4p7+eQhXp+DhbevkUUWP+S9xDgbmJpZKGoJbpIXruyHceV6ZulE3ljQMIjr7apGE6xMIkHKYCpXXpVEHG75O4UfKOJMe3WmAq95kc8sOqwkZgfdWtq7x09S2thHFskoW1GW4M5i6rbwf9AsvyjFTmiZ9/rV7a6l8tA6lT0i4VeJcUPYoF8a/yyFtFwzaX8gwmVnHy9PghbkRh/CHI9ph4dKzAbdiXyEE9oya7ZX6S+3odFrY2LFC2Z7F3t2AEJVJLc9gHRO3GpSwM5SjTrX62C/0UnCIZKLcFa51gobDX7lCq+ijNSCQwjZrArAFf60l6fk2Najvpc0EETA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QS9wcHotcuGwtHpIcfx9k0/JJeioAnUPHfs//jQXXJ+9krW417ZxxoYF6GO2Y6Sp2YLtjG8KuRfU4HLn3zXZ2vnpCQSfdqNrYjxsvDyNKEz0kPiA+qAM7u8jvSO3KMwJkK6FH+9Tj0T7+rOFoyEJydSN+/bRkAyB44727nz4sR08R5VXVxXe1DnmrPLpYWsWyknL89qO8gYBZ99ZUf8AJEf+PlSTqsBkwLdSgmm654xLvFJE6lzBHqtqAZNmFjowgCcwhBf0//5tF3fkQC1vmEuKne4r4FWchM7rN0e9Xm/+WjUeavK7W9tHQcaY5RY4sRAPPwMaEt0kfXenWR3PZw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 09 Dec 2022 10:11:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 09.12.2022 10:59, Roger Pau Monné wrote:
> On Thu, Dec 08, 2022 at 12:24:54PM +0100, Jan Beulich wrote:
>> --- a/xen/arch/x86/msr.c
>> +++ b/xen/arch/x86/msr.c
>> @@ -699,12 +699,16 @@ int guest_wrmsr(struct vcpu *v, uint32_t
>>          }
>>          else
> 
> I think you could turn this into an `else if` and check if the new
> value and the current one differ on the SSBD bit?

I'd prefer not to: Keeping it as I have it will likely reduce code churn
if a 2nd bit wants supporting in that MSR.

> Provided it fixes the issue:
> 
> Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks, but I'm a little puzzled by the constraint: Imo even if this
doesn't address the observed issue, it still fixes one aspect of wrong
behavior here. The sole difference then would be that the Reported-by:
would go away.

Jan



 


Rackspace

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