All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Phil Dennis-Jordan <phil@philjordan.eu>
Cc: Akihiko Odaki <akihiko.odaki@daynix.com>,
	qemu-devel@nongnu.org, agraf@csgraf.de, peter.maydell@linaro.org,
	pbonzini@redhat.com, rad@semihalf.com, quic_llindhol@quicinc.com,
	stefanha@redhat.com, mst@redhat.com, slp@redhat.com,
	richard.henderson@linaro.org, eduardo@habkost.net,
	marcel.apfelbaum@gmail.com, gaosong@loongson.cn,
	jiaxun.yang@flygoat.com, chenhuacai@kernel.org, kwolf@redhat.com,
	hreitz@redhat.com, philmd@linaro.org, shorne@gmail.com,
	palmer@dabbelt.com, alistair.francis@wdc.com, bmeng.cn@gmail.com,
	liwei1518@gmail.com, dbarboza@ventanamicro.com,
	zhiwei_liu@linux.alibaba.com, jcmvbkbc@gmail.com,
	marcandre.lureau@redhat.com, qemu-arm@nongnu.org,
	qemu-block@nongnu.org, qemu-riscv@nongnu.org
Subject: Re: [PATCH v8 01/15] ui & main loop: Redesign of system-specific main thread event handling
Date: Mon, 11 Nov 2024 09:08:16 +0000	[thread overview]
Message-ID: <ZzHJgAbBJZYrSt84@redhat.com> (raw)
In-Reply-To: <CAAibmn3NbtOEwWLQFOo_UmAGTehOj+dDP04A=-JGMZVK9AYMDw@mail.gmail.com>

On Sun, Nov 10, 2024 at 08:08:16AM +0100, Phil Dennis-Jordan wrote:
> On Sun 10. Nov 2024 at 08:01, Akihiko Odaki <akihiko.odaki@daynix.com>
> wrote:
> 
> > On 2024/11/08 23:46, Phil Dennis-Jordan wrote:
> > > macOS's Cocoa event handling must be done on the initial (main) thread
> > > of the process. Furthermore, if library or application code uses
> > > libdispatch, the main dispatch queue must be handling events on the main
> > > thread as well.
> > >
> > > So far, this has affected Qemu in both the Cocoa and SDL UIs, although
> > > in different ways: the Cocoa UI replaces the default qemu_main function
> > > with one that spins Qemu's internal main event loop off onto a
> > > background thread. SDL (which uses Cocoa internally) on the other hand
> > > uses a polling approach within Qemu's main event loop. Events are
> > > polled during the SDL UI's dpy_refresh callback, which happens to run
> > > on the main thread by default.
> >
> > GTK should also do the same as SDL and requires treatment; I forgot to
> > note that in previous reviews.
> 
> 
> Although it‘s possible to build Qemu with GTK support enabled on macOS,
> that UI doesn’t actually work on macOS at all, and apparently hasn’t been
> supported since 2018, see:
> https://stackoverflow.com/a/51474795
> 
> I don’t think there’s any point making adjustments to the GTK code by
> guessing what might be needed if someone did fix that to work with macOS at
> some point.

If we don't support GTK on macOS, then we should update meson.build
to actively prevent users enabling GTK on macOS builds, rather than
letting them suffer random runtime crashes.


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



  parent reply	other threads:[~2024-11-11  9:13 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-08 14:46 [PATCH v8 00/15] macOS PV Graphics and new vmapple machine type Phil Dennis-Jordan
2024-11-08 14:46 ` [PATCH v8 01/15] ui & main loop: Redesign of system-specific main thread event handling Phil Dennis-Jordan
2024-11-10  7:00   ` Akihiko Odaki
2024-11-10  7:08     ` Phil Dennis-Jordan
2024-11-10  7:09       ` Akihiko Odaki
2024-11-10 15:15         ` Phil Dennis-Jordan
2024-11-11  9:08       ` Daniel P. Berrangé [this message]
2024-11-11  9:55         ` Phil Dennis-Jordan
2024-11-11 12:41           ` BALATON Zoltan
2024-11-11 13:15             ` Phil Dennis-Jordan
2024-11-12  1:50               ` BALATON Zoltan
2024-11-08 14:46 ` [PATCH v8 02/15] hw/display/apple-gfx: Introduce ParavirtualizedGraphics.Framework support Phil Dennis-Jordan
2024-11-10  6:48   ` Akihiko Odaki
2024-11-10  8:28   ` Akihiko Odaki
2024-11-10 15:54     ` Phil Dennis-Jordan
2024-11-11  2:57       ` Akihiko Odaki
2024-11-08 14:46 ` [PATCH v8 03/15] hw/display/apple-gfx: Adds PCI implementation Phil Dennis-Jordan
2024-11-10  6:53   ` Akihiko Odaki
2024-11-08 14:46 ` [PATCH v8 04/15] hw/display/apple-gfx: Adds configurable mode list Phil Dennis-Jordan
2024-11-10  6:56   ` Akihiko Odaki
2024-11-08 14:46 ` [PATCH v8 05/15] MAINTAINERS: Add myself as maintainer for apple-gfx, reviewer for HVF Phil Dennis-Jordan
2024-11-08 14:47 ` [PATCH v8 06/15] hw: Add vmapple subdir Phil Dennis-Jordan
2024-11-08 14:47 ` [PATCH v8 07/15] hw/misc/pvpanic: Add MMIO interface Phil Dennis-Jordan
2024-11-08 14:47 ` [PATCH v8 08/15] hvf: arm: Ignore writes to CNTP_CTL_EL0 Phil Dennis-Jordan
2024-11-08 14:47 ` [PATCH v8 09/15] gpex: Allow more than 4 legacy IRQs Phil Dennis-Jordan
2024-11-08 14:47 ` [PATCH v8 10/15] hw/vmapple/aes: Introduce aes engine Phil Dennis-Jordan
2024-11-10  7:05   ` Akihiko Odaki
2024-11-08 14:47 ` [PATCH v8 11/15] hw/vmapple/bdif: Introduce vmapple backdoor interface Phil Dennis-Jordan
2024-11-10  7:08   ` Akihiko Odaki
2024-11-08 14:47 ` [PATCH v8 12/15] hw/vmapple/cfg: Introduce vmapple cfg region Phil Dennis-Jordan
2024-11-10  7:14   ` Akihiko Odaki
2024-11-10 15:01     ` Phil Dennis-Jordan
2024-11-11  4:20       ` Akihiko Odaki
2024-11-13 14:32         ` Phil Dennis-Jordan
2024-11-08 14:47 ` [PATCH v8 13/15] hw/vmapple/virtio-blk: Add support for apple virtio-blk Phil Dennis-Jordan
2024-11-08 14:47 ` [PATCH v8 14/15] hw/block/virtio-blk: Replaces request free function with g_free Phil Dennis-Jordan
2024-11-08 14:47 ` [PATCH v8 15/15] hw/vmapple/vmapple: Add vmapple machine type Phil Dennis-Jordan
2024-11-10  7:36   ` Akihiko Odaki
2024-11-10 11:41     ` Phil Dennis-Jordan
2024-11-10 20:18     ` Phil Dennis-Jordan
2024-11-11  4:42       ` Akihiko Odaki
2024-11-11 14:02         ` Phil Dennis-Jordan

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=ZzHJgAbBJZYrSt84@redhat.com \
    --to=berrange@redhat.com \
    --cc=agraf@csgraf.de \
    --cc=akihiko.odaki@daynix.com \
    --cc=alistair.francis@wdc.com \
    --cc=bmeng.cn@gmail.com \
    --cc=chenhuacai@kernel.org \
    --cc=dbarboza@ventanamicro.com \
    --cc=eduardo@habkost.net \
    --cc=gaosong@loongson.cn \
    --cc=hreitz@redhat.com \
    --cc=jcmvbkbc@gmail.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kwolf@redhat.com \
    --cc=liwei1518@gmail.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mst@redhat.com \
    --cc=palmer@dabbelt.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=phil@philjordan.eu \
    --cc=philmd@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=quic_llindhol@quicinc.com \
    --cc=rad@semihalf.com \
    --cc=richard.henderson@linaro.org \
    --cc=shorne@gmail.com \
    --cc=slp@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=zhiwei_liu@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.