[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/6] xsm: refactoring xsm hooks
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Fri, 18 Jun 2021 13:48:22 +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-SenderADCheck; bh=rldUnsukw/2MnnSommIzXPsDhN5BxKPLlDuZZ7OsPGc=; b=K9Vyo50TexTF5EUsyb3puDyiAzYZM80mi9/+0u2oETo9zlzLuJedlDGUU0hVJjqVDJQviUKc5xEfe+vxQAAFHj/3fYJT9mOWb6Gki/DN2IvtzXG8kV9uZr6z9G3wDv04W2B5bPwUYvBLtOD9Gvlbp43/nhWGWWqsc5AISvT/amYkGSps/IWp9pmx2yX5aagcQ3Kv3iYqmlUeZvRSH0omOHx5Tt+1aY/S7QQSJyqPN9bzXYzwUfg7U/BnBhwqrUMGWmbrk9akg7+U64UhA5SFC3alj5Xf+3/DtNbYmuDmlce7JkE7JGUDsajpVWdoKpOTL+ARJHJ2EdOaMDXrZRdmIQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ip7rWOIXmvA19ArFeClCQS9NMu44mupsh+a9j5d0kDWo+/9/xo1CvwPObyYhVD19mBi+qsTyxcfPqTzjucojBwlFGsIM/SIi5Yn1yJFquigNjfCZfxA5I2HMk0HNl9vTrGRuIMSn04awyDT50SYGp2dy9Z2mSpo+40u3i+CydsHuFCVTwW9JX6QC87ytSlFCoTwgjqhyxAWjZoa2Ot7tLd0dHJKQVzoyypwpgWlbTTJSzBT0ax61jqKdjqBm9E/0oQ56JHjkiK28PfWmfMXm0g4LwetOQZ8cokFq817Eyc7Lzn0zyGk4/k6go9F01V2vs7q5OWIDCJMijjmvn0nitw==
- Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>, persaur@xxxxxxxxx, christopher.w.clark@xxxxxxxxx, adam.schwalm@xxxxxxxxxx, scott.davis@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Fri, 18 Jun 2021 11:48:49 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 18.06.2021 12:14, Andrew Cooper wrote:
> On 18/06/2021 00:39, Daniel P. Smith wrote:
>> Based on feedback from 2021 Xen Developers Summit the xsm-roles RFC
>> patch set is being split into two separate patch sets. This is the first
>> patch set and is focused purely on the clean up and refactoring of the
>> XSM hooks.
>>
>> This patch set refactors the xsm_ops wrapper hooks to use the
>> alternative_call
>> infrastructure. Then proceeds to move and realign the headers to remove the
>> psuedo is/is not enable implementation. The remainder of the changes are
>> clean up
>> and removing no longer necessary abstractions.
>>
>> <snip>
>> 51 files changed, 1309 insertions(+), 1413 deletions(-)
>
> The diffstat is great, but sadly CI says no.
> https://gitlab.com/xen-project/patchew/xen/-/pipelines/323044913
>
> The problem is that ARM doesn't have alternative_vcall(). Given how
> much of an improvement this ought to be for hypercalls, I don't want to
> lose the vcalls.
>
> One option is to implement vcall() support on ARM, but that will leave
> new architectures (RISC-V on the way) with a heavy lift to get XSM to
> compile.
>
> Instead, what we want to do is make vcall() a common interface, falling
> back to a plain function pointer call for architectures which don't
> implement the optimisation. So something like:
>
> 1) Introduce CONFIG_HAS_VCALL, which is selected by X86 only right now
> 2) Introduce xen/vcall.h which uses CONFIG_HAS_VCALL to either include
> asm/vcall.h or provide the fallback implementation
A word on the suggested names: The 'v' in alternative_vcall() stands for
"returning void", as opposed to alternative_call(). It's unclear to me
what you see it stand for in the names you propose.
Jan
|