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

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 23 Jun 2022 10:24:22 +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=34i3CXDk1TptQVT7grwKaTQ6s2KDkyL3tOrtsxFaFFw=; b=Mq62sujjvkZRNahYthFbP9vJzHSOGvN1tKPGIgKqg4fcW34SzBwAOvIr3Szdo8oOtxDE6O6DU5aIM7hZji2s+y+sxvAq0CKiyBDvvk4rDQk0kBCT6CJ2FAjtA3f2A0xYOYASr+X1CNNVJrW8A/wHfGJjdMQ2qRahR2dzBRDwmhonG5pRflAV2yqlg3kkeibs+g2Z4iSicf4QGN2LtIVxq8u41O+LjeZlShxnAqU9bQ6BYIabD1PiemzdCv57QRBGXcOMI5dJtyuAczXoX8zLjbwv+euPErK6IGorX+pQXNKq8QZAlVjiebv9e/WBknsupV97uPkPkpA11Ys8gp52Bg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gvE3DmcvBDlDk9MuabAx6sH76/26KnK2IUspBj7orUosy1SzrSl189Va8febC/IeQ1QZyRjMAnH5WZyG4JBvLHBYbJK1mPswkfJV0I9kglDRTF1xMFm+jtXQW4vDtPPi+zAZFVBrl0OH065Zdwln7r7HEuCqAJ3I5tIkmaTSbqtlS/UFmDJ+8l+ThmAILis/AheiJlOPTmOUUpmr3jYKKl4pPgH5Ve/pXopz7tArWyP8OWAldyAT3dDqFa6q4oKMoTsQCcg26fObgwMMuZQijJ5KV4QoRGuQ7dQmxh6iZmHz308ez800TGTdCX7hBf1RF95MAIheQ+vnYN8TLL9DxA==
  • 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, 23 Jun 2022 08:25:27 +0000
  • Ironport-data: A9a23:2Q9qqavYT/a7t/zlgeh5J2+PWOfnVEpfMUV32f8akzHdYApBsoF/q tZmKW3UOPeNa2fwfdolYdu2oxkBsJXUy981SQJkrywyES8X+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZhSAgk/nOHNIQMcacUsxLbVYMpBwJ1FQywYbVvqYy2YLjW13X4 4uuyyHiEATNNwBcYzp8B52r8HuDjNyq0N/PlgVjDRzjlAa2e0g9VPrzF4noR5fLatA88tqBb /TC1NmEElbxpH/BPD8HfoHTKSXmSpaKVeSHZ+E/t6KK2nCurQRquko32WZ1he66RFxlkvgoo Oihu6BcRi8vNbLMvb05UyBIAn1PBKJd8qLaKCmW5Jn7I03uKxMAwt1IJWRvZ8g037gyBmtDs /sFNDoKcxaPwfqsx662QfVtgcJlK9T3OIQYuTdryjSx4fQOGMifBfmVo4IJmm5v26iiHt6HD yYdQSBoYxnaJQVGJ38cCY4knffujX76G9FdgA3J+/RvsjiMpOB3+Km1K8DecNCKftR6l2+Fp lCdpmnbHjhPYbRzzhLAqBpAnNTnjS79HY4fCrC83vprm0GIgHweDgUMUlm2quX/jVSxM/pdI UEJ/islrYAp6VemCNL6WnWQv3qsrhMaHd1KHIUS6hyJy6fSyxaUAC4DVDEpQMc9qMY8SDgu1 1mIt9DkHzpitPuSU331y1uPhTa7OCxQIWpcYyYBFFEB+4O6/9x1iQ/TRNF+FqLzlsfyBTz73 zGNqm45mqkXiskIka68+Dgrng6Rm3QAdSZtji2/Y45vxloRiFKND2Bw1WXm0A==
  • Ironport-hdrordr: A9a23:hVXLM6yeinh6Jb5fL3XUKrPxyuskLtp133Aq2lEZdPULSKGlfp GV9sjziyWetN9wYh4dcB67Scu9qBTnhOZICOgqTM6ftWzd1FdAQ7sSibcKrweBJ8SczJ8h6U 4fSdkYNDSYNzET46fHCWGDYqwdKbK8gcWVbInlvhRQpVYAUdAa0+41MHftLmRGAC19QbYpHp uV4cRK4xKmZHQsd8y+Ql0IRfLKqdHnnI/vJUduPW9v1CC+yReTrJLqGRmR2RkTFxtJ3LcZ6G DA1yj0/L+qvf2XwgLVk0XT85NVst38zcYrPr37tuElbhHXziq4boVoXLOP+BgzveGU8V4v1O LBph8xVv4DmU/5TyWQm1/AygPg2DEh5zvJ0lmDm0bupsT/WXYTF9dBrZgxSGqV12MQ+PVHlI 5b1WOQsJRaSTnamj7m2tTOXxZ20mKpvHsZl/IJhXA3a/pVVFZol/1RwKppKuZPIMqjg7pXUd WGTfusr8q+SGnqI0ww5QJUsZyRtndaJGb0fqFNgL3X79FspgEH86Ip/r1iop4+zuNCd3A93Z WjDk1JrsA6ciZEV9MIOA8+KfHHe1DlcFbrDF+4B2jBOeUuB0/twqSHkIndotvaMKA18A==
  • 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 selection of 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              | 29 +++++++++++++++++++++++++++++
 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, 57 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®.