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

Re: [PATCH] x86/ioapic: sanitize IO-APIC pins before enabling the local APIC


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 17 Jul 2023 08:40:05 +0200
  • 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=VKmexXTbrUGTn9DQSN9fpZ/XfjPhjBUEKn6DOlNpc+c=; b=DRRU7xuf3pi3n+eR/ak9RB5zS5aW+gu30QDaw8vOQuq9c8I8oRjmMTzXyNGeG2PArI3P/YVp+VXuX6vpzIRsr3dNfvqx70it95zJTi4WIoJwMo9E2gYh4l1yDKPSUrTQ9nPoWlP1t+0ysGECGVCW/WCL2NrN+HK2eNyb5+3iobLQBJN+CzzakmT2TQGcbh1ckLosjIkIOYEF7WYAhPdXUIBCpv9DJewz+Ds+uobBkAcBHSMvVmf0FW9Vv/fu4iOdYwoMuIqd6/QCPsiEsY8q9Dnv3R9hDtZuKvAyBO3yw2ciKPZ3ctc+uy6Rfg0b9Dj4jJ8UfgM7skt4t/qsvsDWiw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z3wBIWQb9wMYgmCQvwOTcE8wlf6saM44kONMJVGRcgLbHJ/U5yQJp6sg/qyrKvaBz02UIu3/JGztqv95jgwosc/BGfhsffHUvTjGLvg5ea+LEMrxJCpRvDhXEkjq8C4U7JBlLaf+W/mmOzJHL1zJL1DrV8G2obTfh3FmmKEJ8eQRWILu/ioMKqvfbO0hdpX6s7UO/mNJ/vT2bf40FCBcHI7iKnnjLRARWjgawFEjAfFkxxzWu5uLjMUYdUW7QtMtFqKtgXBzNIV/+073SRC4kmnJgdlOsViTvySDTPimeT9A/FSPjkAZysXo8fhpV7IwrE89A6TLRFC7hNm+qhaD+A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 17 Jul 2023 06:40:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 14.07.2023 18:05, Roger Pau Monné wrote:
> On Thu, Jul 13, 2023 at 02:18:29PM +0200, Jan Beulich wrote:
>> On 13.07.2023 13:29, Roger Pau Monné wrote:
>>> So to recap, I think we are in agreement that calling enable_IO_APIC()
>>> just ahead of the call to setup_local_APIC() is the preferred
>>> solution?
>>
>> Well, yes and no. My preferred course of action for the issue at hand
>> would be to convert RTE 0 to ExtInt (under the mentioned set of
>> conditions). I agree though that we also want to move the masking of
>> RTEs, and for that I further agree with the placement mentioned above.
> 
> So I hacked up a change to set pin 0 to ExtINT mode (and avoid doing
> the masking early), and I got:
> 
> (XEN) spurious 8259A interrupt: IRQ7.
> 
> This was a single interrupt, but still I think the masking is the
> critical part to get backported.

One way to look at it, yes. My perspective is different though: If
there truly is a (spurious or not) IRQ at the 8259, then it needs
dealing with sooner or later (in the process of booting). Aiui if
we masked pin 0 initially and then later unmasked it (after
switching to ExtInt, if not set so by firmware), we'd still see a
spurious IRQ7.

Jan



 


Rackspace

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