Han Han <
hhan@redhat.com> writes:
> On Tue, Oct 15, 2019 at 4:04 PM Michal Privoznik <
mprivozn@redhat.com>
> wrote:
>
>> On 10/15/19 7:23 AM, Han Han wrote:
>> > Hi Michal,
>> > Any more advice update?
>>
>> Well, as I've said earlier, since we document that -1 is accepted value
>> and it means that it suppresses automatic reboots we need a way to
>> preserve this behaviour. For instance, what happens if you don't put
>> reboot-timeout onto the cmd line at all? Does qemu use some default and
>>
> If no reboot-timeout, qemu will not reboot by default. I have updated the
> qemu doc:
>
https://github.com/qemu/qemu/commit/bbd9e6985ff342cbe15b9cb7eb30e842796fbbe8
Since your message, upstream QEMU got this:
commit 20a192203222efde055df688cc344f9efb87c372
Author: Dr. David Alan Gilbert <
dgilbert@redhat.com>
Date: Fri Oct 25 17:57:06 2019 +0100
fw_cfg: Allow reboot-timeout=-1 again
Commit ee5d0f89de3e53cdb0dc added range checking on reboot-timeout
to only allow the range 0..65535; however both qemu and libvirt document
the special value -1 to mean don't reboot.
Allow it again.
Fixes: ee5d0f89de3e53cdb0dc ("fw_cfg: Fix -boot reboot-timeout error checking")
RH bz:
https://bugzilla.redhat.com/show_bug.cgi?id=1765443
Signed-off-by: Dr. David Alan Gilbert <
dgilbert@redhat.com>
Message-Id: <
20191025165706.177653-1-dgilbert@redhat.com>
Suggested-by: Laszlo Ersek <
lersek@redhat.com>
Message-Id: <
37ac197c-f20e-dd05-ff6a-13a2171c7148@redhat.com>
[PMD: Applied Laszlo's suggestions]
Reviewed-by: Laszlo Ersek <
lersek@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <
philmd@redhat.com>
Commit bbd9e6985f "qemu-options.hx: Update for reboot-timeout parameter"
could be reverted now. Rewriting the parapgraph for clarity would be
better, though.