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

Re: [PATCH v3 05/13] xen: generate hypercall interface related code


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 14 Dec 2021 09:56:42 +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=f/CK4Xg4r9JkrPu6oWc8+6LnGDSchffmw1nI7kyKrVI=; b=AjtkSy63HjhZnc3D3eLmTpan+L+btVoqRoacDVW67Zh2bvOu/Qkbl5LCg4HZ9Nm9cKD8GxRRkHL2GdFTgsreQHl1GoLMdxtN9hRH4n6xwkdPKt4Iqo3xHUD5Dk0hfS41H8qT59wB9psTY7Ob9eanA61qsvhaJevPaDMAE8nhylcajebRuAq3miHUdo1HE1fyL6KnIguHkqFRqfna1TdO1pw846o6EORY4ul52Rei/gjhVIP3Z/394rJtiok6K3K3RNsgs3n2eG377kpndIc8DHmcyknE5i9EkKNZh4R1GzL+NeSyFMaD8Gg9kMg5tOg5jvIKmjxJY0DvIDxfL51qCA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N10ZBwrHWFR6boOWgsJ6AQIhAUnzw3in2DqCwwGwXHRZhClOicWLY/HmVRRRnGpPHuhv6EBXO2r/9890iORnswRSDaAj84pCfqVtG4jaE2wLmcDuRGY96tdI9HU1zbcabuSj7gTPssjORMaWdkdVGe/GNWdtWwt8kdPi38NxrjrSlHiTA2KFZQj5gp28e+Gy/KVJErNpvXlCOuKUEr4hFqeFBThvW9sz3ehwpry/JVjyx+/nRA+EylWeDAkUks3lV+AwHhIclyGNzB6/F+lBrDYkNOiXcMax7H15yR9vzzl+nCJQB68pfIbjMY/snuyLOw3pPNIBBDb8x2FV9d+MYw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 14 Dec 2021 08:58:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 08.12.2021 16:55, Juergen Gross wrote:
> Instead of repeating similar data multiple times use a single source
> file and a generator script for producing prototypes and call sequences
> of the hypercalls.
> 
> As the script already knows the number of parameters used add generating
> a macro for populating an array with the number of parameters per
> hypercall.
> 
> The priorities for the specific hypercalls are based on two benchamrks
> performed in guests (PV and PVH):
> 
> - make -j 4 of the Xen hypervisor (resulting in cpu load with lots of
>   processes created)
> - scp of a large file to the guest (network load)
> 
> With a small additional debug patch applied the number of the
> different hypercalls in the guest and in dom0 (for looking at backend
> activity related hypercalls) were counted while the benchmark in domU
> was running:
> 
> PV-hypercall    PV-guest build   PV-guest scp    dom0 build     dom0 scp
> mmu_update           186175729           2865         20936        33725
> stack_switch           1273311          62381        108589       270764
> multicall              2182803             50           302          524
> update_va_mapping       571868             10            60           80
> xen_version              73061            850           859         5432
> grant_table_op               0              0         35557       139110
> iret                  75673006         484132        268157       757958
> vcpu_op                 453037          71199        138224       334988
> set_segment_base       1650249          62387        108645       270823
> mmuext_op             11225681            188          7239         3426
> sched_op                280153         134645         70729       137943
> event_channel_op        192327          66204         71409       214191
> physdev_op                   0              0          7721         4315
> (the dom0 values are for the guest running the build or scp test, so
> dom0 acting as backend)
> 
> HVM-hypercall   PVH-guest build    PVH-guest scp
> vcpu_op                  277684             2324
> event_channel_op         350233            57383
> (the related dom0 counter values are in the same range as with the test
> running in the PV guest)
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>




 


Rackspace

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