[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] macio: set user_creatable to false in macio_class_init()
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH] macio: set user_creatable to false in macio_class_init() |
Date: |
Sat, 7 Nov 2020 12:50:04 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 11/7/20 12:28 PM, Mark Cave-Ayland wrote:
> Commit 348b8d1a76 "macio: don't reference serial_hd() directly within the
> device"
> removed the setting of user_creatable to false on the basis that the
> restriction
> was due to the use of serial_hd() in macio_instance_init().
>
> Unfortunately this isn't the full story since the PIC object property links
> must still be set before the device is realized. Whilst it is possible to
> update
> the macio device and Mac machines to resolve this, the fix is too invasive at
> this point in the release cycle.
>
> For now simply set user_creatable back to false in macio_class_init() to
> prevent QEMU from segfaulting in anticipation of the proper fix arriving in
> QEMU 6.0.
>
> Reported-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> ---
> hw/misc/macio/macio.c | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>