feat: B7 APIC/IOAPIC接管 + NVMe写路径 + virtio_net virtqueue + PE兼容层修复 + QEMU测试套件全自动化
中断路由 (B7): - apic.drv: LAPIC enable + IOAPIC重定向表编程(MADT ISO感知) + apic_route/apic_route_legacy/apic_diag开关 - UTSM: LAPIC EOI钩子(register_apic_eoi, ABI尾部追加) + IDT 0-255全覆盖 + spurious 0xFF特判 - FUCK: apic_route=0默认PIC(零回归) / =1 IOAPIC->LAPIC接管(失败完整降级) / legacy放开IRQ1/12/11 存储: - nvme.drv: 写路径 + PRP list + 读回校验 + MSI/MSI-X中断驱动(nvme_msi开关, 回退纯轮询) - build.ps1: apic.drv纳入构建(原为预置二进制) 网络: - virtio_net: virtqueue RX/TX + netdev注册 + DHCP自测(slirp真实OFFER) PE兼容层: - pe_shim: guest->host指针转换(g_emu_mem_base + gp()) + shim fn32列补齐 - gen_pe.py: PE32+ RVA偏置修复(BUG-004) + cmd.exe生成 - desktop_app.h: da_mouse_poll先判AUX位 + da_mouse_init冲刷残留(BUG-003/008) - shell: Ctrl修饰键跟踪(BUG-001) + g_run_image扩至1MB(BUG-002) QEMU测试套件: - 9用例全自动化(Run-All.ps1): boot-regression/driver-matrix/linux-compat/pe-compat/deaicup-e2e/userapps-matrix/network-e2e/performance-baseline/x86emu32-coverage - QemuTest.ps1公共库: 串口断言/monitor sendkey/screendump/HTTP服务器/并发隔离 文档: - CLAUDE.md: APIC/IOAPIC能力 + kernel_api暴露 + IRQ后端升级状态 - LESSONS_LEARNED.md: B7 LAPIC/IOAPIC经验教训(2条) - Bug记录.txt: BUG-20260801-001~008 + BUG-20260803-009(9条) - test-cases/*.md: 全部补充自动化脚本小节 - 桌面设计.md: .lnk快捷方式 + LINUXAPP.CNF Linux应用图标 - 系统开发策划.md: NVMe/virtio_net标完成 + B2/B7标已解决 + M2进度列
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#requires -Version 5.1
|
||||
#requires -Version 5.1
|
||||
<#
|
||||
.SYNOPSIS
|
||||
boot-regression — 启动链路回归测试(docs/RE/test-cases/boot-regression.md)
|
||||
@@ -67,7 +67,7 @@ function Complete-FirstInitWizard {
|
||||
function Invoke-ScenarioB1 {
|
||||
Write-Host "`n--- B1 首次启动 (firstInit=0) ---"
|
||||
Set-DeshabFirstInit -First 0 -DevMode 0
|
||||
$s = Start-QemuSession -Name 'bootreg-b1'
|
||||
$s = Start-QemuSession -Name 'bootreg-b1' -MonitorPort 45501
|
||||
try {
|
||||
if (-not (Complete-FirstInitWizard -Session $s)) { return }
|
||||
$hit = Wait-QemuLog -Session $s -Patterns @('desktop ready') -TimeoutSeconds 120
|
||||
@@ -100,7 +100,7 @@ function Invoke-ScenarioB2 {
|
||||
Write-Host "`n--- B2 正常启动 (firstInit=1, AUTOEXEC=ver/exit) ---"
|
||||
Set-DeshabFirstInit -First 1 -DevMode 0
|
||||
Set-DeshabAutoexec -Lines @('ver', 'exit')
|
||||
$s = Start-QemuSession -Name 'bootreg-b2'
|
||||
$s = Start-QemuSession -Name 'bootreg-b2' -MonitorPort 45501
|
||||
try {
|
||||
$hit = Wait-QemuLog -Session $s -Patterns @('desktop ready') -TimeoutSeconds 150
|
||||
$log = Read-QemuLogText $s.LogPath
|
||||
@@ -131,7 +131,7 @@ function Invoke-ScenarioB3 {
|
||||
Write-Host "`n--- B3 dev_mode (firstInit=1\1) ---"
|
||||
Set-DeshabFirstInit -First 1 -DevMode 1
|
||||
Set-DeshabAutoexec -Lines @('ver', 'exit')
|
||||
$s = Start-QemuSession -Name 'bootreg-b3'
|
||||
$s = Start-QemuSession -Name 'bootreg-b3' -MonitorPort 45501
|
||||
try {
|
||||
$hit = Wait-QemuLog -Session $s -Patterns @('[8] rm TEST.TXT') -TimeoutSeconds 150
|
||||
if (-not $hit) {
|
||||
@@ -165,7 +165,7 @@ function Invoke-ScenarioB3 {
|
||||
|
||||
function Invoke-ScenarioB4 {
|
||||
Write-Host "`n--- B4 无 SATA 盘 (DSK 回退 Limine module) ---"
|
||||
$s = Start-QemuSession -Name 'bootreg-b4' -NoSata
|
||||
$s = Start-QemuSession -Name 'bootreg-b4' -NoSata -MonitorPort 45501
|
||||
try {
|
||||
$hit = Wait-QemuLog -Session $s -Patterns @('[DSK] firstInit.txt not found', '[DSK] desktop load failed', '[PANIC]') -TimeoutSeconds 120
|
||||
Start-Sleep -Seconds 3
|
||||
@@ -190,7 +190,7 @@ function Invoke-ScenarioB5 {
|
||||
Write-Host "`n--- B5 无 NIC (e1000/virtio_net not found, 继续启动) ---"
|
||||
Set-DeshabFirstInit -First 1 -DevMode 0
|
||||
Set-DeshabAutoexec -Lines @('ver', 'exit')
|
||||
$s = Start-QemuSession -Name 'bootreg-b5' -NoNet
|
||||
$s = Start-QemuSession -Name 'bootreg-b5' -NoNet -MonitorPort 45501
|
||||
try {
|
||||
$hit = Wait-QemuLog -Session $s -Patterns @('desktop ready') -TimeoutSeconds 150
|
||||
$log = Read-QemuLogText $s.LogPath
|
||||
|
||||
Reference in New Issue
Block a user