qemu-system-hppa hangs on 64bit installations (machine -C3700)

Hi,

I have successfully installed a qemu VM using hpux11vi 32bit. that works fine. But the 64bit does not yet - I know its being worked on, and you are almost there, which is great so I hope the output below from the hangs I get using different hpux media (all 3 different cd versions hang at the same place then I NMI it to force a dump) will help you progress getting the 64bit (-machine C3700) version working.

All hang on the console mapping the memory. I just get a "g" then they hang (see below output will show it). NMI seems to show all of them hung at the same place thats why im logging this bug report in the hope it will help you to resolve it. Ive tried this on Ubuntu 22.04 and Rocky Linux 9 and same issue - always hangs the same way and in the same place with all 3 media.

Good luck ! Cheers, Stefan - Senior Unix Admin Yell.com

Command run; followed by the output on the console, then the crash I forced from Qemu monitor using NMI command;

/usr/local/bin/qemu-system-hppa -boot d -cdrom /stefan/hpux11iv1-mcoe-200509-cd1.iso -drive if=scsi,bus=0,index=6,file=/stefan/hpux11-11-64b.img,format=raw -serial telnet::4442,server -D /tmp/foo -nographic -m 16384 -d nochain -D /tmp/foo -machine C3700 -fw_cfg opt/OS64,string=1

[root@uyum-cl-r9 ~]# telnet localhost 4442
Trying ::1...
Connected to localhost.
Escape character is '^]'.

SeaBIOS PA-RISC 64-bit Firmware Version 18 (QEMU 9.2.92)

Duplex Console IO Dependent Code (IODC) revision 18

------------------------------------------------------------------------------
  (c) Copyright 2017-2024 Helge Deller <deller@gmx.de> and SeaBIOS developers.
------------------------------------------------------------------------------

  Processor   Speed            State           Coprocessor State  Cache Size
  ---------  --------   ---------------------  -----------------  ----------
      0      250 MHz    Active                 Functional            0 KB


  Emulated machine:     HP C3700 (64-bit PA2.0), 64-bit PDC, OS64
  Available memory:     16384 MB
  Good memory required: 16 MB

  Primary boot path:    FWSCSI.6.0
  Alternate boot path:  FWSCSI.2.0
  Console path:         SERIAL_2.9600.8.none
  Keyboard path:        SERIAL_2.9600.8.none

  Available boot devices:
  FWSCSI.6.0 : lsi 00:00.0 6:0 Drive QEMU QEMU HARDDISK 2.5+
  FWSCSI.2.0 : DVD/CD [lsi 00:00.0 2:0 Drive QEMU QEMU CD-ROM 2.5+]

Booting from FWSCSI.2.0 ...

Booting...
Boot IO Dependent Code (IODC) revision 153

HARD Booted.

ISL Revision A.00.43  Apr 12, 2000

ISL booting  hpux (;0):INSTALL

Boot
: disk(10/0/0/0.2.0.0.0.0.0;0):WINSTALL
11145216 + 1822808 + 2610464 start 0x1ffd68
g
Stored message buffer up to panic:
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: nfs3_link(): File system was registered at index 4.
NOTICE: autofs_link(): File system was registered at index 6.
NOTICE: cachefs_link(): File system was registered at index 7.
10 sba
10/0 lba
10/0/0/0 c720
10/0/0/0.2 tgt
10/0/0/0.2.0 sdisk
10/0/0/0.6 tgt
10/0/0/0.6.0 sdisk
10/0/0/0.7 tgt
10/0/0/0.7.0 sctl
10/0/1/0 btlan
10/0/2/0 asio0
10/1 lba
10/4 lba
10/6 lba
32 processor
49 memory
btlan: Invalid connection type in SROM, using MII_AUTOSENSE as default.
btlan: Initializing 10/100BASE-TX card at 10/0/1/0....

    System Console is on the Built-In Serial Interface
    Swap device table:  (start & size given in 512-byte blocks)
        entry 0 - auto-configured on root device; ignored - no room
WARNING: no swap device configured, so dump cannot be defaulted to primary swap.
WARNING: No dump devices are configured.  Dump is disabled.
Starting the STREAMS daemons-phase 1
Create STCP device files
         $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
Memory Information:
    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 3932160 Kbytes, lockable: 3005408 Kbytes, available: 3462644 Kbytes


Trap Type 9 (Break instruction trap):
  Instruction Address (pcsq.pcoq) = 0x0.0xf0000000
  Instruction (iir) = 0x00000000 (non-load/store)
  Savestate Ptr (ssp) = 0x0.0x000000000c21f310
  Savestate Return Pointer (ss_rp) = 0x0000000000000000

linkstamp:          Wed Jan 22 13:35:27 MST 2003
_release_version:   @(#)     $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
panic: Unexpected trap while PSW-Q = 0

PC-Offset Stack Trace (read across, top of stack is 1st):
  0x00210da8  0x00265a60  0x00164224
  0x00166ba4  0xf0000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000
End Of Stack

Trap Type 15 (Data page fault):
  Instruction Address (pcsq.pcoq) = 0x0.0x38c30

Trap Type 15 (Data page fault):
  Instruction Address (pcsq.pcoq) = 0x0.0x166214
  Instruction (iir) = 0x6bd63661 (load/store)
  Target Address (isr.ior) = 0x0.0x000000000c9e7e90
  Base Register (gr30) = 0x000000000c9e8360
  Savestate Ptr (ssp) = 0x0.0x000000000c9e8360
  Savestate Return Pointer (ss_rp) = 0x00000000000ad9b0

System Panic:

linkstamp:          Wed Jan 22 13:35:27 MST 2003
_release_version:   @(#)     $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
panic: Data page fault

*** A system crash has occurred.  (See the above messages for details.)
*** The system is now preparing to dump physical memory to disk, for use
*** in debugging the crash.

ERROR:  No dump space is configured.  Physical memory will not be dumped.
SeaBIOS wants SYSTEM RESET.
***************************

USING DIFFERENT HPUX 11i CD Media hangs in the same place;

/usr/local/bin/qemu-system-hppa -boot d -cdrom /stefan/hpux11iv1-mcoe-200509-cd1.iso -drive if=scsi,bus=0,index=6,file=/stefan/hpux11-11-64b.img,format=raw -serial telnet::4442,server -D /tmp/foo -nographic -m 16384 -d nochain -D /tmp/foo -machine C3700 -fw_cfg opt/OS64,string=1

[root@uyum-cl-r9 ~]# telnet localhost 4442
Trying ::1...
Connected to localhost.
Escape character is '^]'.

SeaBIOS PA-RISC 64-bit Firmware Version 18 (QEMU 9.2.92)

Duplex Console IO Dependent Code (IODC) revision 18

------------------------------------------------------------------------------
  (c) Copyright 2017-2024 Helge Deller <deller@gmx.de> and SeaBIOS developers.
------------------------------------------------------------------------------

  Processor   Speed            State           Coprocessor State  Cache Size
  ---------  --------   ---------------------  -----------------  ----------
      0      250 MHz    Active                 Functional            0 KB


  Emulated machine:     HP C3700 (64-bit PA2.0), 64-bit PDC, OS64
  Available memory:     16384 MB
  Good memory required: 16 MB

  Primary boot path:    FWSCSI.6.0
  Alternate boot path:  FWSCSI.2.0
  Console path:         SERIAL_2.9600.8.none
  Keyboard path:        SERIAL_2.9600.8.none

  Available boot devices:
  FWSCSI.6.0 : lsi 00:00.0 6:0 Drive QEMU QEMU HARDDISK 2.5+
  FWSCSI.2.0 : DVD/CD [lsi 00:00.0 2:0 Drive QEMU QEMU CD-ROM 2.5+]

Booting from FWSCSI.2.0 ...

Booting...
Boot IO Dependent Code (IODC) revision 153

HARD Booted.

ISL Revision A.00.43  Apr 12, 2000

ISL booting  hpux (;0):INSTALL

Boot
: disk(10/0/0/0.2.0.0.0.0.0;0):WINSTALL
12005376 + 2187352 + 2631504 start 0x201568
g
Stored message buffer up to panic:
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: nfs3_link(): File system was registered at index 4.
NOTICE: autofs_link(): File system was registered at index 6.
NOTICE: cachefs_link(): File system was registered at index 7.
10 sba
10/0 lba
10/0/0/0 c720
10/0/0/0.2 tgt
10/0/0/0.2.0 sdisk
10/0/0/0.6 tgt
10/0/0/0.6.0 sdisk
10/0/0/0.7 tgt
10/0/0/0.7.0 sctl
10/0/1/0 btlan
10/0/2/0 asio0
10/1 lba
10/4 lba
10/6 lba
32 processor
49 memory
btlan: Invalid connection type in SROM, using MII_AUTOSENSE as default.
btlan: Initializing 10/100BASE-TX card at 10/0/1/0....

    System Console is on the Built-In Serial Interface
    Swap device table:  (start & size given in 512-byte blocks)
        entry 0 - auto-configured on root device; ignored - no room
WARNING: no swap device configured, so dump cannot be defaulted to primary swap.
WARNING: No dump devices are configured.  Dump is disabled.
Starting the STREAMS daemons-phase 1
Create STCP device files
          $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
Memory Information:
    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 3932160 Kbytes, lockable: 2992204 Kbytes, available: 3454852 Kbytes


Trap Type 9 (Break instruction trap):
  Instruction Address (pcsq.pcoq) = 0x0.0xf0000000
  Instruction (iir) = 0x00000000 (non-load/store)
  Savestate Ptr (ssp) = 0x0.0x000000000c9bb310
  Savestate Return Pointer (ss_rp) = 0x0000000000000000

linkstamp:          Wed Aug 17 15:28:53 MDT 2005
_release_version:   @(#)      $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
panic: Unexpected trap while PSW-Q = 0

PC-Offset Stack Trace (read across, top of stack is 1st):
  0x00212630  0x00267af0  0x001658bc
  0x00168224  0xf0000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000  0x00000000  0x00000000
  0x00000000
End Of Stack

Trap Type 15 (Data page fault):
  Instruction Address (pcsq.pcoq) = 0x0.0x38c30
Trap Type 15 (Data page fault):
  Instruction Address (pcsq.pcoq) = 0x0.0x167894
  Instruction (iir) = 0x6bd63661 (load/store)
  Target Address (isr.ior) = 0x0.0x000000000d183e40
  Base Register (gr30) = 0x000000000d184310
  Savestate Ptr (ssp) = 0x0.0x000000000d184310
  Savestate Return Pointer (ss_rp) = 0x00000000000add18

System Panic:

linkstamp:          Wed Aug 17 15:28:53 MDT 2005
_release_version:   @(#)      $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
panic: Data page fault

*** A system crash has occurred.  (See the above messages for details.)
*** The system is now preparing to dump physical memory to disk, for use
*** in debugging the crash.

ERROR:  No dump space is configured.  Physical memory will not be dumped.
SeaBIOS wants SYSTEM RESET.
***************************

Tried Feb2005 hpux 11iv1 cd1 install media and same issue;

/usr/local/bin/qemu-system-hppa -boot d -cdrom /stefan/HPUX11i_Feb2005_cd1.iso -drive if=scsi,bus=0,index=6,file=/stefan/hpux11-11-64b.img,format=raw -serial telnet::4442,server -D /tmp/foo -nographic -m 16384 -d nochain -D /tmp/foo -machine C3700 -fw_cfg opt/OS64,string=1

[root@uyum-cl-r9 ~]# telnet localhost 4442
Trying ::1...
Connected to localhost.
Escape character is '^]'.

SeaBIOS PA-RISC 64-bit Firmware Version 18 (QEMU 9.2.92)

Duplex Console IO Dependent Code (IODC) revision 18

------------------------------------------------------------------------------
  (c) Copyright 2017-2024 Helge Deller <deller@gmx.de> and SeaBIOS developers.
------------------------------------------------------------------------------

  Processor   Speed            State           Coprocessor State  Cache Size
  ---------  --------   ---------------------  -----------------  ----------
      0      250 MHz    Active                 Functional            0 KB


  Emulated machine:     HP C3700 (64-bit PA2.0), 64-bit PDC, OS64
  Available memory:     16384 MB
  Good memory required: 16 MB

  Primary boot path:    FWSCSI.6.0
  Alternate boot path:  FWSCSI.2.0
  Console path:         SERIAL_2.9600.8.none
  Keyboard path:        SERIAL_2.9600.8.none

  Available boot devices:
  FWSCSI.6.0 : lsi 00:00.0 6:0 Drive QEMU QEMU HARDDISK 2.5+
  FWSCSI.2.0 : DVD/CD [lsi 00:00.0 2:0 Drive QEMU QEMU CD-ROM 2.5+]

Booting from FWSCSI.2.0 ...

Booting...
Boot IO Dependent Code (IODC) revision 153

HARD Booted.

ISL Revision A.00.43  Apr 12, 2000

ISL booting  hpux (;0):INSTALL

Boot
: disk(10/0/0/0.2.0.0.0.0.0;0):WINSTALL
8941568 + 1642496 + 2596176 start 0x1fef68
g
Stored message buffer up to panic:
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: nfs3_link(): File system was registered at index 4.
10 sba
10/0 lba
10/0/0/0 c720
10/0/0/0.2 tgt
10/0/0/0.2.0 sdisk
10/0/0/0.6 tgt
10/0/0/0.6.0 sdisk
10/0/0/0.7 tgt
10/0/0/0.7.0 sctl
10/0/1/0 btlan
10/0/2/0 asio0
10/1 lba
10/4 lba
10/6 lba
32 processor
49 memory
btlan: Invalid connection type in SROM, using MII_AUTOSENSE as default.
btlan: Initializing 10/100BASE-TX card at 10/0/1/0....

    System Console is on the Built-In Serial Interface
    Swap device table:  (start & size given in 512-byte blocks)
        entry 0 - auto-configured on root device; ignored - no room
WARNING: no swap device configured, so dump cannot be defaulted to primary swap.
WARNING: No dump devices are configured.  Dump is disabled.
Starting the STREAMS daemons-phase 1
Create STCP device files
       $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
Memory Information:
    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 3932160 Kbytes, lockable: 3007404 Kbytes, available: 3465240 Kbytes


Trap Type 9 (Break instruction trap):
  Instruction Address (pcsq.pcoq) = 0x0.0xf0000000
  Instruction (iir) = 0x00000000 (non-load/store)
  Savestate Ptr (ssp) = 0x0.0x000000000bff0260
  Savestate Return Pointer (ss_rp) = 0x00000000000005a7

linkstamp:          Tue Nov 14 19:23:23 MST 2000
_release_version:   @(#)   $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
panic: Unexpected trap while PSW-Q = 0

PC-Offset Stack Trace (read across, top of stack is 1st):
  0x0020f210  0x00263ad8  0x00161cf4
  0x0016464c  0xf0000000  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4  0x000005a4  0x000005a4
  0x000005a4
End Of Stack

Trap Type 15 (Data page fault):
  Instruction Address (pcsq.pcoq) = 0x0.0x38970
  Instruction (iir) = 0x2f205004 (load/store)
  Target Address (isr.ior) = 0xc0bc400.0x400003ffffff8000
  Base Register (gr25) = 0x400003ffffff8000
  Savestate Ptr (ssp) = 0x0.0x000000000bff1190
  Savestate Return Pointer (ss_rp) = 0x0000000000038da4

System Panic:

linkstamp:          Tue Nov 14 19:23:23 MST 2000
_release_version:   @(#)   $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
panic: Data page fault

*** A system crash has occurred.  (See the above messages for details.)
*** The system is now preparing to dump physical memory to disk, for use
*** in debugging the crash.

ERROR:  No dump space is configured.  Physical memory will not be dumped.
SeaBIOS wants SYSTEM RESET.
***************************
Edited by Alex Bennée