On 2009-12-13, Sam Watkins <[email protected]> wrote: > On Sun, Dec 13, 2009 at 02:53:48PM -0600, [email protected] wrote: >> huh? many of us are using qemu on their laptops to hack on openbsd. >> i'm not doing this, and i doubt any of the others does. > >> Yup, me neither need this to run OpenBSD on qemu... > > Ok that's good! It makes a big difference for me and some others > though. How do you invoke what version of qemu? I am using qemu > 0.11.1 with kqemu (not kvm). It also occurs I think with plain > qemu (no kqemu). As I understand the problem (broken networking) > occurs when a newish qemu is combined with a newish openbsd, and > it also occurs with netbsd (if acpi or smp is enabled).
qemu in OpenBSD ports has patch-hw_rtl8139_c which enables timer interrupts in the emulated RTL8139C+ (by defining the macro RTL8139_ONBOARD_TIMER). Many other OS packages of qemu (and qemu- derived emulators/VMs) of course don't have this. Our driver for this nic uses the timer for simulated interrupt moderation. There's a patch to disable this for 8139C+ (only) which will help some of the emulators, it works ok with real hardware but could use performance tests to see what sort of impact it has there (this IC is used on the landisk where there isn't much [for want of a better word] performance to spare).

