-kernel-kqemu, WinXP guest on August 3 Snapshot

2008-08-07 Thread Protocol Six Consulting

Hi,  :-)

I am trying to run a WinXP guest OS on qemu with the -kernel-kqemu 
command-line option.
Kqemu was installed on OBSD using the August 3 Snapshot package, and 
loads normally on system boot (see end of dmsg)


Running Windoze works fine on qemu *without* the -kernel-kqemu option 
specified, but when I use that option
XP always bluescreens right after a successful (Windows) log-in. 
In other words I can run kqemu fine in User Code mode only.


Still troubleshooting this, but so far I know that the bluescreen does 
not happen when Windoze is run in Safe Mode (which implies to me that 
some Windows driver is interacting badly with kqemu kernel code mode)


Has anyone else seen this issue?
Any insights and/or solutions?

Thanks in advance.

Dre


P.S.:   dmseg below

OpenBSD 4.4-beta (GENERIC) #1012: Sun Aug  3 09:57:38 MDT 2008
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) III CPU - M 1333MHz (GenuineIntel 
686-class) 1.33 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE

real mem  = 1072115712 (1022MB)
avail mem = 1028255744 (980MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/01/04, BIOS32 rev. 0 @ 0xffe90, 
SMBIOS rev. 2.3 @ 0xf7760 (58 entries)

bios0: vendor Dell Computer Corporation version A12 date 03/01/2004
bios0: Dell Computer Corporation Latitude C400
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 99%
apm0: AC off, battery charge high, estimated 1:01 hours
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbbb0/208 (11 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371 ISA and IDE 
rev 0x00)

pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0xc800! 0xcc800/0x800! 0xcd000/0x800 
0xcd800/0x800 0xce000/0x800 0xce800/0x800 0xcf000/0x800 0xcf800/0x800

cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82830M Host rev 0x04
vga1 at pci0 dev 2 function 0 Intel 82830M Video rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xe000, size 0x800
drm at vga1 unsupported
Intel 82830M Video rev 0x00 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801CA/CAM USB rev 0x02: irq 11
ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x42
pci1 at ppb0 bus 1
xl0 at pci1 dev 0 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, 
address 00:0b:db:0b:3a:7e

exphy0 at xl0 phy 24: 3Com internal media interface
cbb0 at pci1 dev 1 function 0 TI PCI1410 CardBus rev 0x02: irq 11
ral0 at pci1 dev 3 function 0 Ralink RT2560 rev 0x01: irq 11, address 
00:13:d3:75:00:4b

ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801CAM LPC rev 0x02: 24-bit 
timer at 3579545Hz
pciide0 at pci0 dev 31 function 1 Intel 82801CAM IDE rev 0x02: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility

wd0 at pciide0 channel 0 drive 0: ST980815A
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 ignored (disabled)
auich0 at pci0 dev 31 function 5 Intel 82801CA/CAM AC97 rev 0x02: irq 
11, ICH3 AC97

ac97: codec id 0x4352595b (Cirrus Logic CS4205 rev 3)
ac97: codec features mic channel, tone, simulated stereo, bass boost, 20 
bit DAC, 18 bit ADC, SRS 3D

audio0 at auich0
Intel 82801CA/CAM Modem rev 0x02 at pci0 dev 31 function 6 not configured
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask ef6d netmask ef6d ttymask 
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
kqemu: kqemu version 0x00010300 loaded, max locked mem=523492kB
DDB symbols added: 320672 bytes



Re: -kernel-kqemu, WinXP guest on August 3 Snapshot

2008-08-07 Thread Frank Bax

Protocol Six Consulting wrote:

Hi,  :-)

I am trying to run a WinXP guest OS on qemu with the -kernel-kqemu 
command-line option.
Kqemu was installed on OBSD using the August 3 Snapshot package, and 
loads normally on system boot (see end of dmsg)


Running Windoze works fine on qemu *without* the -kernel-kqemu option 
specified, but when I use that option
XP always bluescreens right after a successful (Windows) log-in. In 
other words I can run kqemu fine in User Code mode only.


Still troubleshooting this, but so far I know that the bluescreen does 
not happen when Windoze is run in Safe Mode (which implies to me that 
some Windows driver is interacting badly with kqemu kernel code mode)


Has anyone else seen this issue?
Any insights and/or solutions?




I created a WinXP guest system one year ago; just out of idle curiosity. 
 WinXP has only one user without password, so login is automatic. 
There is no additional software installed.  I'm running Jul31 snapshot 
and packages.  I ran three tests:


1) Boots fine.  checked desktop properties.  Shutdown locked up system 
(had to power cycle).
2) started top first with 1-sec update cycle.  WinXP boots fine; 
shutdown fine.
3) With top still running; bootup locks up system; top stops updating; 
had to power cycle.


I have a Win98 guest that crashes with -kernel-kqemu
Windows protections error.  You need to restart your computer.

Frank



Re: -kernel-kqemu, WinXP guest on August 3 Snapshot

2008-08-07 Thread Chris Kuethe
On Thu, Aug 7, 2008 at 3:40 AM, Protocol Six Consulting
[EMAIL PROTECTED] wrote:
 Has anyone else seen this issue?
 Any insights and/or solutions?

At least FPU instructions are broken when kqemu is at all active. I've
seen all kinds of breakage under WinXP, Ubuntu and OpenBSD when using
kqemu: window layout is wrong, progress bars jump around and time
estimates are garbage, simple arithmetic like repeatedly multiplying
1.0 * 2.0 * 0.5 doesn't work...

It's not just winxp either - an OpenBSD guest won't boot with
-kernel-kqemu either.

-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?