Bochs hangs, save/restores in CLI, paste buffer

Jacob Goense <[email protected]> Fri, 05 Aug 2016 10:28:32 -0400
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <[email protected]>
I'm revisiting a guide I wrote 6 years ago to get 386BSD to boot and try
to bring it in sync with bochs current. I'm also trying to make it
reproducible in an automated fashion. A few things I'm running into.

1) Boch just hangs after a while. Putting up a strace -F -p <pid> gives:

      futex(0x15a2ac, FUTEX_WAIT_PRIVATE, 2, NULL

..and that's it. It doesn't happen all the time, but very often in the
middle of an ftp session by the guest to the host.

The log doesn't show anything remarkable except for..:

     [NE2K  ] IMR write, reserved bit set

..showing up a lot.

It seems to be introduced by rev12759, but had to apply rev12775 to spot
it there. The config is at http://pastebin.com/raw/gntEwjBZ
and bochs was built with

     --enable-cpu-level=3       \
     --enable-fpu               \
     --enable-ne2000            \
     --with-term                \
     --with-nogui               \
     --enable-all-optimizations \
     --enable-docbook=no

The issue is the same on both a stock x86 Trusty box from travis-ci[1]
and an orange pi with armbian[2].


2) I'd like to use the save and restore function, but I'm lost on how to
trigger a save when running in a terminal. A signal would do I guess,
but maybe I'm just missing something obvious.


3) Pasting (or piping) into bochs is a drag when running in a terminal,
everything after a hand full of characters gets lost no matter what I
do with the keyboard settings. Increasing IIRC BX_KBD_ELEMENTS up from
16 helped, but I'm not sure how save that is.


/Jacob

[1]
Linux testing-xx 3.19.0-33-generic #38~14.04.1-Ubuntu SMP \
   Fri Nov 6 18:17:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[2]
Linux orangepipc 3.4.112-sun8i #14 SMP PREEMPT \
   Tue Jul 5 16:28:14 CEST 2016 armv7l GNU/Linux

------------------------------------------------------------------------------