qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Bug: qemu-system-ppc -M mac99 boots into compat-monitor, not openbios.
@ 2020-12-16 21:16 Howard Spoelstra
  2020-12-17  9:44 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Howard Spoelstra @ 2020-12-16 21:16 UTC (permalink / raw)
  To: qemu-devel qemu-devel, Mark Cave-Ayland, Paolo Bonzini

[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]

Hi all,

It seems a qemu-system-ppc from current master no longer boots into
openbios, but into to the compat monitor.
Command line to reproduce:
/home/hsp/src/qemu-master/build/qemu-system-ppc \
-L pc-bios \
-M mac99,via=pmu -m 1024 -boot c \
-drive file=/home/hsp/Mac-disks/9.2.img,format=raw,media=disk

Bisecting leads to this commit:

commit b4e1a342112e50e05b609e857f38c1f2b7aafdc4
Author: Paolo Bonzini <pbonzini@redhat.com>
Date:   Tue Oct 27 08:44:23 2020 -0400

    vl: remove separate preconfig main_loop

    Move post-preconfig initialization to the x-exit-preconfig.  If
preconfig
    is not requested, just exit preconfig mode immediately with the QMP
    command.

    As a result, the preconfig loop will run with accel_setup_post
    and os_setup_post restrictions (xen_restrict, chroot, etc.)
    already done.

    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

 include/sysemu/runstate.h |  1 -
 monitor/qmp-cmds.c        |  9 -----
 softmmu/vl.c              | 95
++++++++++++++++++++---------------------------
 3 files changed, 41 insertions(+), 64 deletions(-)

Thanks for looking into this,

Best,
Howard

[-- Attachment #2: Type: text/html, Size: 1656 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: qemu-system-ppc -M mac99 boots into compat-monitor, not openbios.
  2020-12-16 21:16 Bug: qemu-system-ppc -M mac99 boots into compat-monitor, not openbios Howard Spoelstra
@ 2020-12-17  9:44 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2020-12-17  9:44 UTC (permalink / raw)
  To: Howard Spoelstra, qemu-devel qemu-devel, Mark Cave-Ayland

On 16/12/20 22:16, Howard Spoelstra wrote:
> Hi all,
> 
> It seems a qemu-system-ppc from current master no longer boots into 
> openbios, but into to the compat monitor.
> Command line to reproduce:
> /home/hsp/src/qemu-master/build/qemu-system-ppc \
> -L pc-bios \
> -M mac99,via=pmu -m 1024 -boot c \
> -drive file=/home/hsp/Mac-disks/9.2.img,format=raw,media=disk
> 
> Bisecting leads to this commit:
> 
> commit b4e1a342112e50e05b609e857f38c1f2b7aafdc4
> Author: Paolo Bonzini <pbonzini@redhat.com <mailto:pbonzini@redhat.com>>
> Date:   Tue Oct 27 08:44:23 2020 -0400
> 
>      vl: remove separate preconfig main_loop
> 
>      Move post-preconfig initialization to the x-exit-preconfig.  If 
> preconfig
>      is not requested, just exit preconfig mode immediately with the QMP
>      command.
> 
>      As a result, the preconfig loop will run with accel_setup_post
>      and os_setup_post restrictions (xen_restrict, chroot, etc.)
>      already done.
> 
>      Reviewed-by: Igor Mammedov <imammedo@redhat.com 
> <mailto:imammedo@redhat.com>>
>      Signed-off-by: Paolo Bonzini <pbonzini@redhat.com 
> <mailto:pbonzini@redhat.com>>
> 
>   include/sysemu/runstate.h |  1 -
>   monitor/qmp-cmds.c        |  9 -----
>   softmmu/vl.c              | 95 
> ++++++++++++++++++++---------------------------
>   3 files changed, 41 insertions(+), 64 deletions(-)
> 
> Thanks for looking into this,
> 
> Best,
> Howard

Should be a one-line change, I have sent a patch.

Paolo



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-17 10:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-16 21:16 Bug: qemu-system-ppc -M mac99 boots into compat-monitor, not openbios Howard Spoelstra
2020-12-17  9:44 ` Paolo Bonzini

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).