* [Qemu-devel] Crash when deleting the diag288 watchdog
@ 2017-08-16 5:05 Thomas Huth
2017-08-16 9:23 ` Cornelia Huck
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2017-08-16 5:05 UTC (permalink / raw)
To: QEMU Developers, Cornelia Huck, Christian Borntraeger
Cc: David Hildenbrand, Sascha Silbe
Hi,
I recently noticed that QEMU abort()s if you try to remove the diag288
watchdog. For example:
$ qemu-system-s390x -nographic -nodefaults -S -monitor stdio
QEMU 2.9.92 monitor - type 'help' for more information
(qemu) device_add diag288,id=x
(qemu) device_del x
**
ERROR:/home/thuth/devel/qemu/qdev-monitor.c:872:qdev_unplug: assertion
failed: (hotplug_ctrl)
Aborted (core dumped)
This is ugly, can we fix this somehow? For example, should the diag288
device be hot-pluggable at all, or can it only be used via the
"-watchdog" parameter instead? In the latter case, we could simply mark
the device with "user_creatable = false", I guess?
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Crash when deleting the diag288 watchdog
2017-08-16 5:05 [Qemu-devel] Crash when deleting the diag288 watchdog Thomas Huth
@ 2017-08-16 9:23 ` Cornelia Huck
2017-08-16 13:36 ` Thomas Huth
0 siblings, 1 reply; 4+ messages in thread
From: Cornelia Huck @ 2017-08-16 9:23 UTC (permalink / raw)
To: Thomas Huth
Cc: QEMU Developers, Christian Borntraeger, David Hildenbrand,
Sascha Silbe
On Wed, 16 Aug 2017 07:05:37 +0200
Thomas Huth <thuth@redhat.com> wrote:
> Hi,
>
> I recently noticed that QEMU abort()s if you try to remove the diag288
> watchdog. For example:
>
> $ qemu-system-s390x -nographic -nodefaults -S -monitor stdio
> QEMU 2.9.92 monitor - type 'help' for more information
> (qemu) device_add diag288,id=x
> (qemu) device_del x
> **
> ERROR:/home/thuth/devel/qemu/qdev-monitor.c:872:qdev_unplug: assertion
> failed: (hotplug_ctrl)
> Aborted (core dumped)
>
> This is ugly, can we fix this somehow? For example, should the diag288
> device be hot-pluggable at all, or can it only be used via the
> "-watchdog" parameter instead? In the latter case, we could simply mark
> the device with "user_creatable = false", I guess?
I don't think the diag288 watchdog should be hotpluggable. IIUC, it is
simply present on z/VM (and I don't think it's different on LPAR, but I
could not find docs for that). So yes, user_creatable = false sounds
like the right thing to do.
Related: We currently only handle diag288 via kvm if I did not miss
something. It probably makes sense to wire it up for tcg as well.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Crash when deleting the diag288 watchdog
2017-08-16 9:23 ` Cornelia Huck
@ 2017-08-16 13:36 ` Thomas Huth
2017-08-16 13:50 ` Cornelia Huck
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2017-08-16 13:36 UTC (permalink / raw)
To: Cornelia Huck
Cc: Christian Borntraeger, Sascha Silbe, QEMU Developers,
David Hildenbrand
On 16.08.2017 11:23, Cornelia Huck wrote:
> On Wed, 16 Aug 2017 07:05:37 +0200
> Thomas Huth <thuth@redhat.com> wrote:
>
>> Hi,
>>
>> I recently noticed that QEMU abort()s if you try to remove the diag288
>> watchdog. For example:
>>
>> $ qemu-system-s390x -nographic -nodefaults -S -monitor stdio
>> QEMU 2.9.92 monitor - type 'help' for more information
>> (qemu) device_add diag288,id=x
>> (qemu) device_del x
>> **
>> ERROR:/home/thuth/devel/qemu/qdev-monitor.c:872:qdev_unplug: assertion
>> failed: (hotplug_ctrl)
>> Aborted (core dumped)
>>
>> This is ugly, can we fix this somehow? For example, should the diag288
>> device be hot-pluggable at all, or can it only be used via the
>> "-watchdog" parameter instead? In the latter case, we could simply mark
>> the device with "user_creatable = false", I guess?
>
> I don't think the diag288 watchdog should be hotpluggable. IIUC, it is
> simply present on z/VM (and I don't think it's different on LPAR, but I
> could not find docs for that). So yes, user_creatable = false sounds
> like the right thing to do.
I tried that now, but it does not work - when I specify the -watchdog
parameter, I get a "Parameter 'driver' expects pluggable device type"
with that modification.
I think the best option is to use "hotpluggable = false" instead...
> Related: We currently only handle diag288 via kvm if I did not miss
> something. It probably makes sense to wire it up for tcg as well.
Sounds like a good idea, yes... are you going to send a patch, or shall
I put it on my todo list?
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Crash when deleting the diag288 watchdog
2017-08-16 13:36 ` Thomas Huth
@ 2017-08-16 13:50 ` Cornelia Huck
0 siblings, 0 replies; 4+ messages in thread
From: Cornelia Huck @ 2017-08-16 13:50 UTC (permalink / raw)
To: Thomas Huth
Cc: Christian Borntraeger, Sascha Silbe, QEMU Developers,
David Hildenbrand
On Wed, 16 Aug 2017 15:36:42 +0200
Thomas Huth <thuth@redhat.com> wrote:
> On 16.08.2017 11:23, Cornelia Huck wrote:
> > On Wed, 16 Aug 2017 07:05:37 +0200
> > Thomas Huth <thuth@redhat.com> wrote:
> >
> >> Hi,
> >>
> >> I recently noticed that QEMU abort()s if you try to remove the diag288
> >> watchdog. For example:
> >>
> >> $ qemu-system-s390x -nographic -nodefaults -S -monitor stdio
> >> QEMU 2.9.92 monitor - type 'help' for more information
> >> (qemu) device_add diag288,id=x
> >> (qemu) device_del x
> >> **
> >> ERROR:/home/thuth/devel/qemu/qdev-monitor.c:872:qdev_unplug: assertion
> >> failed: (hotplug_ctrl)
> >> Aborted (core dumped)
> >>
> >> This is ugly, can we fix this somehow? For example, should the diag288
> >> device be hot-pluggable at all, or can it only be used via the
> >> "-watchdog" parameter instead? In the latter case, we could simply mark
> >> the device with "user_creatable = false", I guess?
> >
> > I don't think the diag288 watchdog should be hotpluggable. IIUC, it is
> > simply present on z/VM (and I don't think it's different on LPAR, but I
> > could not find docs for that). So yes, user_creatable = false sounds
> > like the right thing to do.
>
> I tried that now, but it does not work - when I specify the -watchdog
> parameter, I get a "Parameter 'driver' expects pluggable device type"
> with that modification.
> I think the best option is to use "hotpluggable = false" instead...
OK, let's try that.
>
> > Related: We currently only handle diag288 via kvm if I did not miss
> > something. It probably makes sense to wire it up for tcg as well.
>
> Sounds like a good idea, yes... are you going to send a patch, or shall
> I put it on my todo list?
I'll deal with the diag288 stuff, I started to look into it anyway.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-16 13:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-16 5:05 [Qemu-devel] Crash when deleting the diag288 watchdog Thomas Huth
2017-08-16 9:23 ` Cornelia Huck
2017-08-16 13:36 ` Thomas Huth
2017-08-16 13:50 ` Cornelia Huck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).