All of
 help / color / mirror / Atom feed
Subject: [Bug 208767] kernel stack overflow due to Lazy update IOAPIC on an x86_64 *host*, when gpu is passthrough to macos guest vm
Date: Thu, 06 Aug 2020 09:09:28 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

--- Comment #6 from Yani Stoyanov ( ---
I am not sure if this is relevant but there was old bug which explains how osx
configure IOAPIC with the wrong polarity bit values. I may be interesting to
take a look (I know it is from 6 years ago).

the part: 

ACPI-compliant operating systems are expected to query the firmware for an
indication of which polarity type (ActiveLow or ActiveHigh) to use for any
devices with level-triggered interrupts, and to configure the IOAPIC registers
accordingly. Both QEMU and KVM have accumulated a significant number of
optimizations based on the assumption that guest operating systems use
ActiveHigh polarity, and are coded to assume that "physical" and "logical" IRQ
line states are in sync. Even when a misbehaving guest OS (you guessed it, OS X
does this) ignores the ACPI polarity hint (which in QEMU/KVM is ActiveLow, i.e.
"physical"=="logical") and configures the virtual IOAPIC with the wrong
polarity bit values, both QEMU and KVM will mostly use "logical" IRQ line

You are receiving this mail because:
You are watching the assignee of the bug.

  parent reply	other threads:[~2020-08-06 17:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-02  9:01 [Bug 208767] New: " bugzilla-daemon
2020-08-02  9:03 ` [Bug 208767] " bugzilla-daemon
2020-08-02  9:19 ` bugzilla-daemon
2020-08-02 10:36 ` bugzilla-daemon
2020-08-02 17:45 ` bugzilla-daemon
2020-08-03  9:43 ` bugzilla-daemon
2020-08-03 20:39 ` [Bug 208767] New: " Jim Mattson
2020-08-03 20:39 ` [Bug 208767] " bugzilla-daemon
2020-08-04  0:25 ` bugzilla-daemon
2020-08-06  9:02 ` bugzilla-daemon
2020-08-06  9:09 ` bugzilla-daemon [this message]
2020-10-07 22:45 ` bugzilla-daemon
2021-02-03 20:32 ` bugzilla-daemon
2022-04-29  3:14 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: [Bug 208767] kernel stack overflow due to Lazy update IOAPIC on an x86_64 *host*, when gpu is passthrough to macos guest vm' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.