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

Re: [PATCH v3 0/4] x86/spec-ctrl: IPBP improvements


  • To: Andrew Cooper <amc96@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 26 Jan 2023 08:32:48 +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=211q3Ct1tYDPKt6ZFKS3g1+8GWE4XUWKff1Fz9CZ/fA=; b=ccJWDvxF+hTCaYQ08VMT+0Hv8utlzb+EbcMPgkwE2XFCgY/npUFybDTNQ7a/iA891vU3F85GbUNZwFNzYzHUvZRNVXi+KG9lo4kW+4xV6B5d9IGlGtNu0KVRdzRErZyuudxLKa4b/11j2rWYnDiXVewe56T6xeOC0YI8LzoQUpmopp3WyjAzD7SC1kxVdS5if4ZXXLB8fofR+ZWK5bixTtDdfQYGoS8Yn8/+PSmlh0HMsSL4rQVTeSmj31XXhgBiSSp2OMYv/Mz1bP/Vc/BkgtXsU3PpCQpdFruGE3/Q2Pl+Vf3uKNTt+L2V7lAwACB7ZrmdMne+YEcWuc0UHrKcGg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZzUgLNJ1riouUaAL0jTs8K6XJgRWWw3Ep1vI+4+c0OOsxaB3pDMqM4Qx4UbwF/4gRqoR/Re8LXyOxHrO5LAMRaEyeGiWQJ6uBqHwOqh6Gj+5qvgqa6Cm7e7a4Vn1s0kKkjd0Ivxq11RUi5g2Y9b+DnGLCWOjl8y9EP3G30Pd8J2FN1cYhvUGs4nxP8O2iPNrbhFyw+h5Mn/S2ij63Aq1LJNhFQnwcZC0rLqwbyEkVciMIRqKMnnLjrbRv4n4BdLRzXyMTNnuAUGAAXNG8fhNSewPnysZSjEhg8l/ZvqMm79ApfRpXE3S5PJ9/yPVVGPa+x/SCnGc3lTworHGQVNJKw==
  • 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>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 26 Jan 2023 07:33:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25.01.2023 18:49, Andrew Cooper wrote:
> On 25/01/2023 3:24 pm, Jan Beulich wrote:
>> Versions of the two final patches were submitted standalone earlier
>> on. The series here tries to carry out a suggestion from Andrew,
>> which the two of us have been discussing. Then said previously posted
>> patches are re-based on top, utilizing the new functionality.
>>
>> 1: spec-ctrl: add logic to issue IBPB on exit to guest
>> 2: spec-ctrl: defer context-switch IBPB until guest entry
>> 3: limit issuing of IBPB during context switch
>> 4: PV: issue branch prediction barrier when switching 64-bit guest to kernel 
>> mode
> 
> In the subject, you mean IBPB.  I think all the individual patches are fine.

Yes, I did notice the typo immediately after sending.

> Do you have an implementation of VMASST_TYPE_mode_switch_no_ibpb for
> Linux yet?  The thing I'd like to avoid is that we commit this perf it
> to Xen, without lining Linux up to be able to skip it.

No, I don't. I haven't even looked at where invoking this might be best placed.
Also I have to admit that it's not really clear to me what the criteria are
going to be for Linux to disable this, and whether perhaps finer grained
control might be needed (i.e. to turn it on/off dynamically under certain
conditions).

In any event this concern is only related to patch 4; I'd appreciate if at
least the earlier three patches wouldn't be blocked on there being something
on the Linux side. (In fact patch 3 ends up [still] being entirely independent
of the rest of the rework, unlike I think you were expecting it to be.)

Jan



 


Rackspace

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