[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] ui: fix dpy_ui_info_supported(con) assertion
|
From: |
Paolo Bonzini |
|
Subject: |
Re: [PATCH v2] ui: fix dpy_ui_info_supported(con) assertion |
|
Date: |
Mon, 2 Oct 2023 12:18:04 +0200 |
On Mon, Oct 2, 2023 at 11:58 AM Marc-André Lureau
<marcandre.lureau@redhat.com> wrote:
>
> Hi
>
> On Mon, Oct 2, 2023 at 1:54 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
> >
> > VGA does not support getting the physical video size or refresh rate.
> > This is causing an assertion failure when the GTK+ user interface
> > calls dpy_get_ui_info(). Return NULL from dpy_get_ui_info() if the
> > information is not supported, and just ignore the request to set
> > refresh rate or size in that case.
> >
> > While the assertion failure was introduced by commit a92e7bb4cad
> > ("ui: add precondition for dpy_get_ui_info()", 2023-09-12), QEMU had
> > been using con->ui_info incorrectly since before.
> >
> > Fixes: a92e7bb4cad ("ui: add precondition for dpy_get_ui_info()",
> > 2023-09-12)
> > Fixes: aeffd071ed8 ("ui: Deliver refresh rate via QemuUIInfo", 2022-06-14)
> > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
> Did you see my patch ?
> https://lore.kernel.org/qemu-devel/20230915113637.2127644-1-marcandre.lureau@redhat.com/
>
> I think I prefer mine :)
I hadn't seen it, either is okay with me.
Paolo