summary refs log tree commit diff stats
path: root/results/classifier/gemma3:12b/hypervisor/2287
diff options
context:
space:
mode:
Diffstat (limited to 'results/classifier/gemma3:12b/hypervisor/2287')
-rw-r--r--results/classifier/gemma3:12b/hypervisor/228730
1 files changed, 30 insertions, 0 deletions
diff --git a/results/classifier/gemma3:12b/hypervisor/2287 b/results/classifier/gemma3:12b/hypervisor/2287
new file mode 100644
index 000000000..2973051f8
--- /dev/null
+++ b/results/classifier/gemma3:12b/hypervisor/2287
@@ -0,0 +1,30 @@
+
+whpx, on booting win98, qemu crashes with Failed to emulate PortIO access with EmulatorReturnStatus: 2
+Description of problem:
+Q) What is the correct command line arguments to boot win98se with ```accel whpx```
+
+The above given command line crashes partway through the win98se boot process before the desktop shows up
+```
+Windows Hypervisor Platform accelerator is operational
+C:\vol\scoop_01\SCOOPG\apps\qemu\current\qemu-system-x86_64.exe: warning: GLib-GIO: Failed to open application manifest `C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AppxManifest.xml' for package #34 (`Microsoft.MicrosoftEdge_44.19041.1266.0_neutral__8wekyb3d8bbwe'): error code 0x2
+C:\vol\scoop_01\SCOOPG\apps\qemu\current\qemu-system-x86_64.exe: WHPX: Failed to emulate PortIO access with EmulatorReturnStatus: 2
+C:\vol\scoop_01\SCOOPG\apps\qemu\current\qemu-system-x86_64.exe: WHPX: Failed to exec a virtual processor
+```
+Steps to reproduce:
+1. Finish a complete win98 install using ```-machine type=pc,accel=tcg -cpu qemu64```  
+   ```qemu-system-x86_64 -machine type=pc,accel=tcg -cpu qemu64 -smp "sockets=1,cores=1,threads=1" -m 512 -nodefaults -bios bios-256k.bin -rtc base=localtime -display sdl,gl=on -device VGA,vgamem_mb=128 -audiodev dsound,id=snd1 -device adlib,audiodev=snd1 -audiodev dsound,id=snd2 -device ac97,audiodev=snd2  -boot c -drive index=0,if=ide,media=disk,format=vhdx,file="F:\Win98m40_sys.vhdx" -drive index=1,if=ide,media=disk,format=vhdx,file="F:\Win98m40_data_01.vhdx" -drive index=3,if=ide,media=disk,format=vhdx,file="F:\Win98m40_data_02.vhdx"```  
+   With all guestos-win98-drivers installed the win98 seems to work satisfactorily.  
+   Using vga driver from https://github.com/JHRobotics/vmdisp9x/releases   
+2. now change processor to ```-cpu core2duo```, it boots . This does not seem to matter, bug exists even with qemu64
+3. now change accel to ```-machine type=pc,accel=whpx ```, qemu crashes partway into boot before bringing up desktop.   
+   with or without ```kernel-irqchip=off``` does not matter   
+   with or without cpu arguments ```,hv-relaxed,hv-vapic,hv-spinlocks=0x1fff,hv-time``` also does not matter
+4. Setting back to ```-machine type=pc,accel=tcg -cpu core2duo``` restores bootable win98se.
+Additional information:
+- [target/i386/whpx/whpx-all.c#L920](https://gitlab.com/qemu-project/qemu/-/blob/a12214d1c4204d2f51d8724993b8dfcf50dd7d94/target/i386/whpx/whpx-all.c#L920)
+- The part of the OS bootsequence, which includes the Win98/DOS boot menu, scandisk, etc. works fine. Its possible to boot to DOS mode and run DOS commands. The crash happens when into the win.com Win98SE boot sequence just before it can bring up the GUI desktop.  
+- qemu crashes even if in the win98/DOS bootmenu, selection is made to boot into ```safe-mode```, which is supposed to boot a vanilla 16-color VGA desktop loading minimal drivers. As before, crash happens before GUI desktop is loaded.
+- 20220623 Learn.Microsoft WHvEmulatorTryIoEmulation and WHvEmulatorTryMmioEmulation   
+  https://learn.microsoft.com/en-us/virtualization/api/hypervisor-instruction-emulator/funcs/whvemulatortryemulation
+- 20220426 Learn.Microsoft WHV_EMULATOR_STATUS  
+  https://learn.microsoft.com/en-us/virtualization/api/hypervisor-instruction-emulator/funcs/whvemulatorstatus