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

Re: [PATCH v2] x86/flushtlb: remove flush_area check on system state


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 25 May 2022 09:34:32 +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=pqW6WifE+JclFIX6Pe5SaWbVsI1V6porN+qdVcQ0erw=; b=ANrbHIfxti1JLyA4JXlgKGSwpNM1W+rxN2/NidvePmyhHC5f8/ocuJxg6ybJ1LZSLnyEb80QmN8bGCqR1fK3qLecJb8wnGoYVsFJN3bNC60gvutABVvzYr0+b8JEUsGShykgAEILrUAI4G87eZPbFuJk/vTLKrsfBoXlSrk5yjoUiBh75nVRics5YO0Xhn2eePNCvexYfXwc/O2Edi9VJ5i9lCGrHvlUku4oZ3M8iW3sxRwmJslGSVcvHl4tppVcfkvXfn8EDtt/l6huDgUyA6p6WjuW+phj9sdcnENBWlSXf1HrYR48BF17dASP368MdP96RDFMHQ2zPVy6TE6eiA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J2SOm8gBXWh9ai/8orp/H/q/tjjGso0nX7qAt5qcjjPVENLFwJx4O6f2/vCSqqDe4glNdrUnNI0odpbMku/ujIfX1qsQwY3wmrY9zBiRzqhe3UXP2KGe0T722CH06siO1/dsofx6S6DyVwcu0MAUHH7uNLGEPKKTWxopIJQUWfAFNY4G/s17hBHVtbp9WAuiID6ygGidgK3J6ep7ujsxxx7LuF1XuqOBIW0EL0wUoVJWb+Ecp+O9/ZGBB4EHHRdXvam/RJEbgcWEEebEHQLLyi+cb+XBQcEIu3KhjoidryYUFZQaIlIQcdN/C3B9jq3UP8Uel2C1YT+gmzSBNEXbfg==
  • 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: Wed, 25 May 2022 07:34:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25.05.2022 09:21, Roger Pau Monné wrote:
> On Wed, May 25, 2022 at 08:02:17AM +0200, Jan Beulich wrote:
>> On 24.05.2022 18:46, Roger Pau Monné wrote:
>>> Would you be fine with adding:
>>>
>>> Note that FLUSH_FORCE_IPI doesn't need to be handled explicitly, as
>>> it's main purpose is to prevent the usage of the hypervisor assisted
>>> flush if available, not to force the sending of an IPI even for cases
>>> where it won't be sent.
>>
>> Hmm, yes, that's even more verbose than I would have expected it to
>> be. Just one point: I'm not sure about "main" there. Is there really
>> another purpose?
> 
> Right, I should remove main.
> 
>> Of course an alternative would be to rename the flag to properly
>> express what it's for (e.g. FLUSH_NO_HV_ASSIST). This would then
>> eliminate the need for a comment, afaic at least.
> 
> I think it's likely that we also require this flag if we make use of
> hardware assisted flushes in the future, and hence it would better
> stay with the current name to avoid renaming in the future.
> 
> Whether the avoidance of sending the IPI is due to hardware or
> hypervisor assistance is of no interest to the caller, it only cares
> to force a real IPI to be sent to remote processors.

Well, then it could still be named FLUSH_NO_ASSIST, since as said
(and as you look to agree with) there's no IPI being forced in the
general case.

Jan




 


Rackspace

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