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

[PATCH v2 0/6] x86/irq: switch x2APIC default destination mode


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 30 Jun 2022 10:54:33 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=3Lk+qrBP83OcPYZn5y6uqm8i6vkKiGznZizcw4FHPHk=; b=jaM7UL9J8fS8TUzUq505S8uhH4y11VtdIcu9r3So0HzvWbnQzsRd6MRaFwhTpkP26JuICt/M+N5sngVlmuqXsRVhMIklmW3wFycpJpNYScX9k/SQ7baDD+TLudHZzvv43/typXzoMYJI1vFP9OLq6tE6z6+l5tgKAO5rd1Pp0Vp2WXoHSZs9MK7e50DpJAg/vuhOdSuyENzjGyqSX+WxOV7QuOVSeKul7QaJiCPpbtv4KQe2sUqJjL/8EcTfK3sIHeeUm6TtaicAtKWHn9g2PYmXepv/6VvgnOoJZDhwk4i/VRRurcVCBOKnNEndLmUfNgXMvg32NgX4VCsgqnvVLQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nQO5qWeJEKKlcn+nVWXCcwGUI9OYalvvKQ4tJTMNbd7RZUThr2dqQ9UJXgGsto6aW9DvBv0WI+m2lyI6uIAkK8q0Bc1mlQYVlbGD0/ylETXg7ZV3ONneYzqQDL7/CSrs62m1Red+MW3lYSKDqIw5vepJbhUI5h5zZVLE9bzm6TPyMVrgjPoZpn3nPaZTwyEJ45vywIfGwzDJaCZtubWGU8zQmLmxYR+rRpbwxl0g6ud6ZgU8/wem7FW7C/LRPtYJblYV1cR6ODuk1H2S2eK99XgCEqYwcnmBZ9FjxEd4c0Wtips5DQqcDATZ1Y3HXtLXJvne7Xl1wXlCIQPCoC53Dg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 30 Jun 2022 08:56:26 +0000
  • Ironport-data: A9a23:w8bkUa2cv5QQduBhzPbD5c9wkn2cJEfYwER7XKvMYLTBsI5bpzUCz GAcCjzVPP7ZYDDxKYgkPISyphxV6pCGytNjTlFupC1hF35El5HIVI+TRqvS04J+DSFhoGZPt Zh2hgzodZhsJpPkjk7xdOCn9xGQ7InQLlbGILes1htZGEk1Ek/NtTo5w7Rj2tAz2YDga++wk YiaT/P3aQfNNwFcagr424rbwP+4lK2v0N+wlgVWicFj5DcypVFMZH4sDfjZw0/DaptVBoaHq 9Prl9lVyI97EyAFUbtJmp6jGqEDryW70QKm0hK6UID66vROS7BbPg/W+5PwZG8O4whlkeydx /1m6sW/WUAgG5bokdg+bggINw1PF6dZreqvzXiX6aR/zmXgWl61mbBLMxtzOocVvOFqHWtJ6 PoUbigXaQyOjP63x7T9TfRwgsMkL4/gO4Z3VnNIlGmFS6p5B86dBfmajTNb9G5YasRmB/HRa tBfcTNyRB/BfwdOKhEcD5dWcOKA2SWhK2EF9w79Sawfzmv86FxK1P/UM9f7dNO7QfxVkEzHu TeTl4j+KlRAXDCF8hKV/3TpiuLRkCfTXIMJCKb+5vNsmEeUxGEYFFsRT1TTifuzh1O6WtlfA 1cJ4Sdopq83nGS0SvHtUhv+p2SL1jYeRt5RHusS+AyLjK3O7G6xHXMYRzRMbNgnss4eRjEw0 FKN2dTzClRSXKa9THuc8vKRsmm0MC1Md2saP3dYHU0C/sXpp5w1glTXVNF/HaWpj9rzXzbt3 zSNqyt4jLIW5SIW65iGEZn8q2rEjvD0osQdv1y/sr6Nhu+hWLOYWg==
  • Ironport-hdrordr: A9a23:4rmv4K6MUwThnhKG3gPXwSeBI+orL9Y04lQ7vn2ZFiY5TiXIra qTdaogviMc6Ax/ZJjvo6HjBEDmewKlyXcV2/hpAV7GZmXbUQSTXeVfBOfZowEIeBeOi9K1q5 0QFJSWYeeYZTYasS+T2njDLz9K+qjjzEnHv5a88587JjsaEJ2Ioj0JfjqzIwlTfk1rFJA5HJ 2T6o5uoCehQ20eaoCeCmMeV+bOitXXnNa+CCR2cSIP2U2rt3eF+bT6Gx+X0lM3VC5O+64r9S zgnxbi7quunvmnwlv31nPV7b5RhNz9o+Ezc/Cku4wwEHHBmwyobINuV/mruy00mvim7BIQnN zFs34bTrdOwkKUWlvwjQrm2gHm3jprwWTl00WkjXzqptG8bC4mCuJa7LgpOCfx2g4FhpVRwa hL12WWu958FhXbhhnw4NDOSlVDile0m3w/iuQe5kYvGrf2UIUh4bD3wXklX6vpREnBmc4a+a hVfYnhDc9tAB6nhyuzhBgv/DSuNk5DbituDHJy+vB96AIm40yR/3FouPD3oU1wiq7VM6M0gd gsEp4Y5o2mHfVmGJ5VNaMmffadLFDrbFblDF+ySG6XZZ3vfUi94qLK3A==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hello,

The following series aims to change the default x2APIC Destination mode
from Logical to Physical.  This is done in order to cope with boxes that
don't have a huge amount of CPUs, but do have a non trivial amount of
PCI devices using MSI(-X).

The default x2APIC destination mode can now be set from Kconfig, and
will default to phys in order to reliable boot on all boxes.

Further patches are a bit of cleanup related to the interrupt limits
reported at boot, and making those values more realistic.

Thanks, Roger.

Roger Pau Monne (6):
  x86/Kconfig: add option for default x2APIC destination mode
  x86/x2apic: use physical destination mode by default
  x86/setup: init nr_irqs after having detected x2APIC support
  x86/irq: fix setting irq limits
  x86/irq: print nr_irqs as limit on the number of MSI(-X) interrupts
  x86/irq: do not set nr_irqs based on nr_irqs_gsi in APIC mode

 docs/misc/xen-command-line.pandoc |  5 ++---
 xen/arch/x86/Kconfig              | 19 +++++++++++++++++++
 xen/arch/x86/genapic/x2apic.c     |  6 ++++--
 xen/arch/x86/include/asm/apic.h   |  2 ++
 xen/arch/x86/io_apic.c            | 10 ----------
 xen/arch/x86/irq.c                | 15 +++++++++++++++
 xen/arch/x86/mpparse.c            |  5 +++++
 7 files changed, 47 insertions(+), 15 deletions(-)

-- 
2.36.1




 


Rackspace

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