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

[PATCH v3 0/2] x86/io-apic: Loop changes


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Wed, 15 Oct 2025 17:04:52 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=rH4M3114CKSr59YHF7TVZ3l3ebO8ra5rgkSKIU2aCZI=; b=G89uAPyMv+ji/T6+XllIpD1ICaODJIg6W4QlKOxjRaU2qKJnmZYB4S8dkC53B/KY6NbN18iePgABZWfLdb3TBFEyENK//uAoNEtWDbh/bHaqALNmDgc/YY/3nu3IZXuxr+N/CpfBLgIWpfRKSMT81u8LIHMvMe4/A3WvQV7gCYrt49zytN1tQnL8uJ/ZZbYxPczEm9KkLJshnen5xn6n4wwuwGLJ8M7QmxdthE3GdjBDyyYqowM7JnSUXHU6mwc7TWS33RhTVDgtbBIHkXiu6bMkmvlpJ+uoYxCVK6jOaYcmh7YEg2rlPcv6MEaYvb5czYajs7euQU94sGl3//GFyQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OyyUoNgAIKUpuuAa14Cv5wqZT75D4G2YEu+C8VIo7A6gL58UXCUqV+oZ0AFFr6ApStZav0Py/z3Lsc+9md+RLa2AWYPB5aCUA32WzYd75Jd/DXKoJbFtI+LV8iOAUYksG+Zj/nhUNAKuD4RxqXEBsPkcYTciTWOaZJ/g+z6LRIox1cLdTaEFq2hfVPNQeF4gOr3KjWxwg+3++H9klNPFhopicJ9SsaRY/RKTHNJq6bIVjzI+K0wJiK0OIupeQjZpwr1lJLB8BTmFyj5XZ4HuF2uk2By2GySSvdTUlZwfJJsOI1qo/K4JWj3q2GMPoHv7LqisiqR66D8O7cAljXLgyg==
  • Cc: Jason Andryuk <jason.andryuk@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Wed, 15 Oct 2025 21:05:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

The first patch is the v3 resubmission for 4.21.

The second patch shows the conversion of the rest of the file to use
next_entry() in the loops.  It is targetting 4.22.

$ bloat-o-meter xen/xen-syms.baseline xen/xen-syms.patch-1
add/remove: 0/0 grow/shrink: 1/0 up/down: 4/0 (4)
Function                                     old     new   delta
io_apic_level_ack_pending                    218     222      +4
Total: Before=3419485, After=3419489, chg +0.00%

$ bloat-o-meter xen/xen-syms.patch-1 xen/xen-syms.patch-2
add/remove: 1/0 grow/shrink: 0/7 up/down: 31/-62 (-31)
Function                                     old     new   delta
next_entry                                     -      31     +31
setup_IO_APIC                               3435    3430      -5
__print_IO_APIC                             1010    1004      -6
set_ioapic_affinity_irq                      288     281      -7
io_apic_level_ack_pending                    222     214      -8
eoi_IO_APIC_irq                              128     117     -11
dump_ioapic_irq_info                         850     838     -12
modify_IO_APIC_irq                           132     119     -13
Total: Before=3419489, After=3419458, chg -0.00%

Jason Andryuk (2):
  x86/apic: Avoid infinite loop in io_apic_level_ack_pending()
  x86/io_apic: Use next_entry() in loops

 xen/arch/x86/io_apic.c | 50 +++++++++++++-----------------------------
 1 file changed, 15 insertions(+), 35 deletions(-)

-- 
2.51.0




 


Rackspace

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