Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C76DC433F5 for ; Wed, 3 Nov 2021 11:35:47 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F052D61058 for ; Wed, 3 Nov 2021 11:35:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F052D61058 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.220836.382253 (Exim 4.92) (envelope-from ) id 1miEYJ-0007jL-LY; Wed, 03 Nov 2021 11:35:35 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 220836.382253; Wed, 03 Nov 2021 11:35:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1miEYJ-0007jE-Id; Wed, 03 Nov 2021 11:35:35 +0000 Received: by outflank-mailman (input) for mailman id 220836; Wed, 03 Nov 2021 11:35:33 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1miEYH-0007j5-It for xen-devel@lists.xenproject.org; Wed, 03 Nov 2021 11:35:33 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id d8322479-a767-48ac-b4e4-ded55c68ab86; Wed, 03 Nov 2021 11:35:32 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B4077D6E; Wed, 3 Nov 2021 04:35:31 -0700 (PDT) Received: from [10.57.22.11] (unknown [10.57.22.11]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B167F3F7B4; Wed, 3 Nov 2021 04:35:29 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d8322479-a767-48ac-b4e4-ded55c68ab86 Subject: Re: [PATCH v2 00/15] xen: drop hypercall function tables To: Juergen Gross , xen-devel@lists.xenproject.org Cc: Jan Beulich , Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Wei Liu , George Dunlap , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Ian Jackson , Christopher Clark References: <20211101152015.28488-1-jgross@suse.com> From: Michal Orzel Message-ID: Date: Wed, 3 Nov 2021 12:35:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20211101152015.28488-1-jgross@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Hi Juergen, On 01.11.2021 16:20, Juergen Gross wrote: > In order to avoid indirect function calls on the hypercall path as > much as possible this series is removing the hypercall function tables > and is replacing the hypercall handler calls via the function array > by automatically generated call macros. > > Another by-product of generating the call macros is the automatic > generating of the hypercall handler prototypes from the same data base > which is used to generate the macros. > > This has the additional advantage of using type safe calls of the > handlers and to ensure related handler (e.g. PV and HVM ones) share > the same prototypes. > > A very brief performance test (parallel build of the Xen hypervisor > in a 6 vcpu guest) showed a very slim improvement (less than 1%) of > the performance with the patches applied. The test was performed using > a PV and a PVH guest. > > Changes in V2: > - new patches 6, 14, 15 > - patch 7: support hypercall priorities for faster code > - comments addressed For the ARM part: Apart from the issue I found and reported in patch 7/15, the build was successful. I tested the following basics also successfully: -booting a dom0 -booting domUs -networking between guest and dom0 using NAT -stressing hypercall xen_version so, Tested-by: Michal Orzel Cheers, Michal