forked from projectacrn/acrn-hypervisor
-
Notifications
You must be signed in to change notification settings - Fork 0
WaaG
Liu, Xinyun edited this page Mar 20, 2019
·
5 revisions
- hypervisor: https://github.com/xinyunliu/acrn-hypervisor/tree/waag-0307-xyl
- kernel: https://github.com/xinyunliu/acrn-kernel/tree/waag-0320-xyl
- vhm: simplify bdf_match check … 0c4584b
- vhm: trap pci extended cfg mmio access … 9a9772f
- drm/i915/gvt: enable virt opregion emulation for AcrnGT … 9d40dfc
- drm/i915/gvt: change printk to printk_ratelimit … 57ba996
- drm/i915/gvt: enable cursor emulation … 092cacd
- without local display, WaaG has no prominent issue through vncviewer
- with local display, WaaG can work with keyboard, but has issue with mouse(Cursor issue, WIP)
- hypervisor: https://github.com/xinyunliu/acrn-hypervisor/tree/waag-0306-xyl
- kernel: https://github.com/xinyunliu/acrn-kernel/tree/waag-0305-xyl
- for vga
mount /dev/sda1 /mnt/sda1
./acrn-dm-waag -A -m $mem_size -c 2 -s 0:0,hostbridge -s 1:0,lpc -l com1,tcp:9090 \
-l com2,stdio \
-s 6,ahci,hd:/mnt/sda1/img/win10-rs4_gpt-6193939.img \
-s 4,virtio-net,$tap \
-s 5,fbuf,tcp=0.0.0.0:5900,w=800,h=600 \
--ovmf /root/OVMF.fd \
$vm_name- for gvt
boot_GVT_option=" -s 0:3:0,pci-gvt -G "
mount /dev/sda1 /mnt/sda1
./acrn-dm-waag -A -m $mem_size -c 2 -s 0:0,hostbridge -s 1:0,lpc -l com1,tcp:9090 \
-l com2,stdio \
-s 6,ahci,hd:/mnt/sda1/img/win10-rs4_gpt-6193939.img \
-s 4,virtio-net,$tap \
$boot_GVT_option "64 448 8" \
--ovmf /root/OVMF.fd \
$vm_name
}- hpet cause acrn-dm crash. Work around it in 0306 branch through disable hpet
acrn-dm-igx-waag: hw/platform/hpet.c:334: vhpet_timer_handler: Assertion `ts_is_zero(&vhpet->timer[n].expts).
launch_igx-waag.sh: line 11: 676 Aborted (core dumped) ./acrn-dm-igx-waag -A -m $mem_size e
- vga and gvt can't co-exist
SW_LOAD: partition blob /root/OVMF.fd size 2097152 copy to guest 0xffe00000
SW_LOAD: ovmf_entry 0xfffffff0
================================================================================
=
= Unhandled exception: 14 (Page Fault)
Host Registers:
= Vector=0x000000000000000E RIP=0x000000006E004701
= RAX=0x000000006E004998 RBX=0x0000000000000000 RCX=0x0000000000000005
= RDX=0x0000000000000000 RDI=0x0000000000000006 RSI=0x000000006E0309D8
= RSP=0x0000000074C82CF0 RBP=0x0000000074C82E38 RBX=0x0000000000000000
= R8=0x00000000A1000000 R9=0x00000000A4947000 R10=0x0000000000000000
= R11=0x0000000000000000 R12=0x000000025FC00000 R13=0x00000000A1200000
= RFLAGS=0x0000000000010246 R14=0x00000000A1000000 R15=0x0000000074CA3018
= ERRCODE=0x0000000000000001 CS=0x0000000000000008 SS=0x0000000074C82D88
================================================================================
Host Stack: CPU_ID = 0
addr(0x74c82cf0) 0x0000000074c82e38 0x000000006e0309d8 0x0000000000000006 0x00000000a1000000
addr(0x74c82d10) 0x00000000a4947000 0x0000000000000000 0x0000000000000000 0x000000025fc00000
addr(0x74c82d30) 0x00000000a1200000 0x00000000a1000000 0x0000000074ca3018 0x000000000000000e
addr(0x74c82d50) 0x0000000000000001 0x000000006e004701 0x0000000000000008 0x0000000000010246
addr(0x74c82d70) 0x0000000074c82d88 0x0000000000000010 0x000000006e00482e 0x0000000073836000
addr(0x74c82d90) 0x0000008000000000 0x00000000a0947000 0x0000000000000007 0x0000000073833010
addr(0x74c82db0) 0x00000000a1000000 0x0000000073823840 0x00000000a0947000 0x00000000c0000000
addr(0x74c82dd0) 0x0000000000000002 0x00000000a1000000 0x0000000000000108 0x00000000a0947000
addr(0x74c82df0) 0x00000000a0947000 0x00000000a1000000 0x00000000a4947000 0x0000000000000007
addr(0x74c82e10) 0x0000000074ca0000 0x0000000000000007 0x00000000a0947000 0x00000000a0947000
addr(0x74c82e30) 0x0000000004000000 0x0000000074c82e88 0x000000006e01336d 0x0000000000200000
addr(0x74c82e50) 0x0000000073836000 0x0000000074c7d000 0x0000000000000000 0x0000000074c7d000
addr(0x74c82e70) 0x0000000074ca0000 0x00000000a0947000 0x0000000073836000 0x0000000074c82f18
addr(0x74c82e90) 0x000000006e01aa1f 0x000000006e0294a5 0x0000000074c82ec0 0xffffa2756ab30001
addr(0x74c82eb0) 0xffffa27300000001 0x0000000076a53d48 0x0000010700000000 0x00000000a0947000
addr(0x74c82ed0) 0x00000000a0947000 0x0000000004000000 0xc4e46b227396b628 0x000000006e0294a5
Host Call Trace:
----> 0x000000006e01336d
----> 0x000000006e01aa1f
----> 0x000000006e00e807
----> 0x000000006e01624a
----> 0x000000006e019be1
----> 0x000000006e01bc33
================================================================================
Guest Registers:
= VM ID 0 ==== vCPU ID 0 === pCPU ID 0 ====world 0 =============
= RIP=0xffffffffa09f07aa RSP=0xffffa27376a53cf0 RFLAGS=0x0000000000000203
= CR0=0x0000000080050033 CR2=0x00007f8b5a5f5c18 CR3=0x000000026e3d4000
= RAX=0x00005d8c80000000 RBX=0x0000000000000001 RCX=0x0000000004000000
= RDX=0x00000000a0947000 RDI=0x0000000076a53d10 RSI=0x0000000076a53d48
= RBP=0xffffa27376a53cf0 R8=0x0000000080000042 R9=0x0000000000000007
= R10=0xffffa2757191c6e8 R11=0x0000000000000040 R12=0x0000000000004000
= R13=0x0000000000000001 R14=0x00000000000a0947 R15=0xffffa2756a88b680
Guest Stack:
Dump stack for vcpu 0, from gva 0xffffa27376a53cf0
guest_rsp(0xffffa27376a53cf0): 0xffffa27376a53d00 0xffffffffa09ee349 0xffffa27376a53d38 0xffffffffa09ee3b3
guest_rsp(0xffffa27376a53d10): 0xffffa2756ab30001 0xffffa27300000001 0x0000000076a53d48 0xbc0fd941d9460e00
guest_rsp(0xffffa27376a53d30): 0x00000000000a0947 0xffffa27376a53d70 0xffffffffa09ee43a 0x0000010700000000
guest_rsp(0xffffa27376a53d50): 0x00000000a0947000 0x00000000a0947000 0x0000000004000000 0xbc0fd941d9460e00
guest_rsp(0xffffa27376a53d70): 0xffffa27376a53da8 0xffffffffa0628944 0xffffae69c1889000 0x0000000000000001
guest_rsp(0xffffa27376a53d90): 0x0000000000000002 0xffffa27560cef000 0x0000000000000000 0xffffa27376a53dc8
guest_rsp(0xffffa27376a53db0): 0xffffffffa07355ab 0xffffae69c1889000 0x0000000000000000 0xffffa27376a53df0
guest_rsp(0xffffa27376a53dd0): 0xffffffffa0735773 0x0000000000000004 0xffffae69c1889000 0x0000000000000000
guest_rsp(0xffffa27376a53df0): 0xffffa27376a53e38 0xffffffffa0735c8a 0xffffffffa0c34103 0xffffffffa00eb522
guest_rsp(0xffffa27376a53e10): 0xffffa2756a88b680 0xffffa2756ab30b68 0x0000000000000000 0xffffa27560cef000
guest_rsp(0xffffa27376a53e30): 0x0000000000000000 0xffffa27376a53e98 0xffffffffa062862a 0x0000000000000283
guest_rsp(0xffffa27376a53e50): 0xffffa27300000004 0xffffae69c1889000 0x0000000000000027 0xbc0fd941d9460e00
guest_rsp(0xffffa27376a53e70): 0xffffa2756ab30b00 0xffffa2756ab30b88 0xffffffffa16a791e 0xffffa2756ab30b68
guest_rsp(0xffffa27376a53e90): 0x0000000000000000 0xffffa27376a53f00 0xffffffffa09ef730 0xffffffff00000000
guest_rsp(0xffffa27376a53eb0): 0xffffa27376a4e080 0xffffffffa00eb540 0xffffa27376a53ec0 0xffffa27376a53ec0
guest_rsp(0xffffa27376a53ed0): 0xbc0fd941d9460e00 0xffffa27565d00900 0xffffa273768067c0 0xffffa27565d0bb68
Guest Call Trace: **************************************
Maybe the call trace is not accurate, pls check stack!!
BP_GVA(0xffffa27376a53cf0) RIP=0xffffa27376a53d00
BP_GVA(0xffffa27376a53d00) RIP=0xffffa27376a53d38
BP_GVA(0xffffa27376a53d38) RIP=0xffffa27376a53d70
BP_GVA(0xffffa27376a53d70) RIP=0xffffa27376a53da8
BP_GVA(0xffffa27376a53da8) RIP=0xffffa27376a53dc8
BP_GVA(0xffffa27376a53dc8) RIP=0xffffa27376a53df0
BP_GVA(0xffffa27376a53df0) RIP=0xffffa27376a53e38
BP_GVA(0xffffa27376a53e38) RIP=0xffffa27376a53e98
BP_GVA(0xffffa27376a53e98) RIP=0xffffa27376a53f00
BP_GVA(0xffffa27376a53f00) RIP=0xffffa27376a53f48
BP_GVA(0xffffa27376a53f48) RIP=0x0000000000000000