From patchwork Sat Jul 13 12:03:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5LyK6JekIOWkqua4hQ==?= X-Patchwork-Id: 13732401 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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7164DC3DA45 for ; Sat, 13 Jul 2024 12:04:39 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSbTg-0003HW-Un; Sat, 13 Jul 2024 08:03:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSbTe-0003GF-9c for qemu-devel@nongnu.org; Sat, 13 Jul 2024 08:03:46 -0400 Received: from mail-sgaapc01olkn20827.outbound.protection.outlook.com ([2a01:111:f400:feab::827] helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSbTb-000850-Rh for qemu-devel@nongnu.org; Sat, 13 Jul 2024 08:03:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kyj+qb1p624m3GyWOrzhoOqwpOUBiMOxNvKSwIyvByxOyGyADhaOSPbqV1ZY2oS/Q1mNOzu9AIAP7g4yrzTp2Ha8c6gGr0NRkSPwjJ+1JJamdTQI88QojjTSPEJW7RB+tbnOke2zL0yVGaZUAA4FuX3G/fVpV472gODFNOHiOBT4ui5x0bX4uLTyGDGnRh2Jpi3nuTwG10C1U8fvhchp0B+Qh9W5qHidKlN0iL+2ceIIYX64EsKtmYDciyq1JeucnDlMIolcZ8zVz09wS0S3Jy8A9AOSEvg3dV2tjOFVLr4pha+5PCLB+uapR4+4/DEql9fXvOCMXXVhWL9v1gwnLA== 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=fwpK0PGp56uHEoPbStgypFeG3VCVqPjw+iv6uDzI/Ss=; b=LTRuUH426FKjkq+lFxM/sR8h7vlniwJrRmB+vxQVgFkL7Y+JXbN68usKO5BdAC7/dJmsEvGPdoX0TY6Oz1Ae2Stl1+cn/dAbj4mGL/bWznoKbKZSBJ7Y8zX6kO5dBGYCN/Mh7mQP3KAPKwdhjJkbiZbj1bs+mm7jrvsJ9/8fBZ40OegC1IWWvwTTgm2QK1ejgpHCQZWPM2tBJyn0dr2z9unBtzru/3hmqAcrf2XimplnDHxMPuct4K2YoG5JksjzvWaufYbGTMpkEZx6S49vN+Gbt5Tum7pd1x0dOsuq4eC2WM6cW44oTgMW5qxjMablriAKDcl8v5E1vFyY2kywaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=OUTLOOK.JP; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fwpK0PGp56uHEoPbStgypFeG3VCVqPjw+iv6uDzI/Ss=; b=DQewFya5aM49l0ub4+2+/Vlg6nM1xxMWvBbo6ItuA9uPyjyi3EZOCLcNY3GDUjulqJPxRkFpfoqFzsvdWURX/xvNuFb3vfCxAyn+fbg1cv7RW7Rw+0qitVG3HfYIhvmurnCMQ/oFbmXC5alEEO8TJe/ogo2+7K8/XfULCYn4dbnyzSW3QIT9uwTatg6054mCsMB6/JHNKO1mHzHc1ogoHYruWAKf2reRjmcNgV2u2QZAu4QNQC4539itep3UCZcJOCXv297HrWv4azbceHxqBqh2NYGqoQxIohlEFBcXwUL0h2u7tcMTt0gXZniri1/5X1ukc0z18c01nYgDj6kbAA== Received: from TY0PR0101MB4285.apcprd01.prod.exchangelabs.com (2603:1096:400:1b0::11) by TYZPR01MB5454.apcprd01.prod.exchangelabs.com (2603:1096:400:41e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.23; Sat, 13 Jul 2024 12:03:36 +0000 Received: from TY0PR0101MB4285.apcprd01.prod.exchangelabs.com ([fe80::85c5:f6c5:8a81:ee35]) by TY0PR0101MB4285.apcprd01.prod.exchangelabs.com ([fe80::85c5:f6c5:8a81:ee35%6]) with mapi id 15.20.7741.042; Sat, 13 Jul 2024 12:03:36 +0000 From: =?iso-2022-jp?b?GyRCMEtGIxsoQiAbJEJCQEA2GyhC?= To: "qemu-devel@nongnu.org" CC: "pbonzini@redhat.com" , "mst@redhat.com" Subject: [PING^2][PATCH] hw/intc/ioapic: Delete a wrong IRQ redirection on I/O APIC Thread-Topic: [PING^2][PATCH] hw/intc/ioapic: Delete a wrong IRQ redirection on I/O APIC Thread-Index: AQHa1RywQiuKMOR1Ok+VgKWEKjnrmg== Date: Sat, 13 Jul 2024 12:03:36 +0000 Message-ID: References: In-Reply-To: Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [LBvOzIUT+QV8Osl6kuAE41GNHRb4cNWi] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TY0PR0101MB4285:EE_|TYZPR01MB5454:EE_ x-ms-office365-filtering-correlation-id: dbe08571-58ab-48cb-cfc7-08dca333d365 x-microsoft-antispam: BCL:0; ARA:14566002|19110799003|9400799024|12050799009|461199028|8060799006|102099032|3412199025|440099028; x-microsoft-antispam-message-info: HzYdZjHFjrPD2Vp/i40EtE88Ka9TvdOHIDWMkq5fOF8Q5+hSpDyTLygZSeDBicL2b/DsBfLvnQJkZuwW3ys9C6jE9ENBWq5qXwFKUSu1unXg4AXAoOhQ4DOagdROLcGffW22igXedmi9AYXLevZenbXTFemNY2Bo2H54DQp+ddW4ynmaxznsOAArdi9O7PoG/EGF6tJDcMPfkrpv/zeNMVTEf7x0dqT0jNFl8VlDaEBcpsJ/+4NrS1qc/GLcDL5dVm8v7UG4sngk220aQhLr8t0ytR30AWDREYtQJHC6fb14wOvqW4YhOiTgZEPmb3tWeKd84y0hwy3nQPPdounB13RSZ4PpiSikoeOqP4k1lu144CoxasSNH1x/yuTylR7h/5JClKC27y35IsJwBC3s2vwa/z5IQzAfHUb7xXT8VulaPSjmEnHw8YEL6pAxL6Ag0kizjSPIUJcDtGxEqKy8Q/oQ6fxofNyJPqcpD5kEaOXh4PEd5+Mp3AGnqxj9M50dRolrEzl9cARx5N9ftEJ2KXLEw0vIuBmoPTxlQkk1ItT6BvxgbQKTvVIgsQAyigEDDo+voaCgS1M463d7aZ8fVxYg6krzWNYaoo4Xqsx20JQNX5uy1myPfGaOQ+qS9dnB1cQp1JSEdd/eY6uTZ0Ci9JFN5x/wv/zvlFUcFXUqlLzRMOyYS3tRRuQqEsTgxnakYWeT3vNvqD0MUqzMG/uA8HX6vNcs4FYl5Dkrea7z/+wlvO0vGHX/6IxXxHNH1/lg x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?b?V285azh5RUViUzdTV0JT?= =?iso-2022-jp?b?dERpUjJ3aytnUmU4eEF5MkhqamNNUEFqanlZczRzSit3V25VRnlwZEtU?= =?iso-2022-jp?b?eThEOTBYd2FsTW9ncml6bElhVUNRSm1zalR3ampMekRHSCtJRkxNcGEx?= =?iso-2022-jp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= =?iso-2022-jp?b?bjFBdTlJWU5CdWRUOXZOM29aRWY5QUo4VG0rOEtDTDhQcmZTNnFTbXJa?= =?iso-2022-jp?b?Z3dEZjBZQXF4eldrZiswWUJDNWlQcDk5L2pFdENTTVg0Ri9JSkdkcHhQ?= =?iso-2022-jp?b?dXVrZU95WmdiTUh3U2FQZDNtc2dGbFZNeFArRGlHTUxnaldOR2Y2d2FO?= =?iso-2022-jp?b?WGVXTHpYTnU2c1VSWUNKemhINVh3L3hxdjlIMHI0Y1ZMNE8zUVdHUm5j?= =?iso-2022-jp?b?L2ZyMWJ6VTQ2bUMyVnUrbzNzcjZheHNody9OOVo3K1ExdlMyaGhsODZC?= =?iso-2022-jp?b?Z0RGaEh2NEh2djl0MjY0TEhpMWQ0bGtqRHhGeG9uMTFHUkN5a1l5OWNC?= =?iso-2022-jp?b?QVVtQXA3T0xJclpZdWZkdTlncS9VaTdGaisxK0NmbkVXTVRkQXh5TDl4?= =?iso-2022-jp?b?R04waHVERFRaMFowMFZaUnRManMyQXJ4ZVMrem94aWtnMG5TWmV5YW8x?= =?iso-2022-jp?b?YWZZMkFERE1Tcmp2NFNWK3RhWmNQSVF0UkFrOFlaWXFmczNYcm5qdklS?= =?iso-2022-jp?b?SHYvb2lacXFCNlBvcnVPRkdsYm5MaEszOEc5eVlZemlyWm55VE9oQUYw?= =?iso-2022-jp?b?bGNwUWpGU0ZqU0poR3NHZFF0eCs0T1VyT0xUVVFncXJNdHhtRUN5ZE53?= =?iso-2022-jp?b?T3FzTlNWc2xBY2ZvRTlkNnJaQjlYV2NJZmlYNHhSZXlFcGUrcDhVZjJh?= =?iso-2022-jp?b?R2NuNDQ4NlVndEM4VnJoUStWSXJ4MVlyd1k9?= MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-d8e84.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TY0PR0101MB4285.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: dbe08571-58ab-48cb-cfc7-08dca333d365 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2024 12:03:36.4639 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR01MB5454 Received-SPF: pass client-ip=2a01:111:f400:feab::827; envelope-from=taisei1212@outlook.jp; helo=APC01-SG2-obe.outbound.protection.outlook.com X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, CHARSET_FARAWAY_HEADER=3.2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This is a ping to the patch below. https://lore.kernel.org/qemu-devel/TY0PR0101MB42850337F8917D1F514107FBA4D52@TY0PR0101MB4285.apcprd01.prod.exchangelabs.com/ diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c index 716ffc8bbb..6b630b45ca 100644 --- a/hw/intc/ioapic.c +++ b/hw/intc/ioapic.c @@ -154,15 +154,8 @@ static void ioapic_set_irq(void *opaque, int vector, int level) { IOAPICCommonState *s = opaque; - /* ISA IRQs map to GSI 1-1 except for IRQ0 which maps - * to GSI 2. GSI maps to ioapic 1-1. This is not - * the cleanest way of doing it but it should work. */ - trace_ioapic_set_irq(vector, level); ioapic_stat_update_irq(s, vector, level); - if (vector == 0) { - vector = 2; - } if (vector < IOAPIC_NUM_PINS) { uint32_t mask = 1 << vector; uint64_t entry = s->ioredtbl[vector];