intel / KVMGT-kernel

Other
41 stars 20 forks source link

Some benchmarks don't work correctly on the host #3

Open terry84 opened 9 years ago

terry84 commented 9 years ago

Hello.

I have run the benchmarks such as lightsmark 2008 and warsow 1.5 on host machine and guest vm. It seems these benchmarks work correctly on guest vm. But on the host, lightsmark 2008 was hanged at the loading screen or during running test. And then also warsow was hanged at the start screen. Could you tell me what is the problem? Here are the dmesgs about running lightsmark 2008 and warsow on the host and currently I'm using ubuntu 14.04 64bit.

dmesg about lightsmark 2008 :

[ 915.399146] i915: intel_flush_display_plane [ 915.426542] i9xx_update_plane [ 915.478161] vGT warning:(vgt_emulate_write:473) vGT: untracked MMIO write: vm_id(0), offset=0x602a4,len=4, val=0x746e49f2!!! [ 915.478246] vGT warning:(vgt_emulate_write:473) vGT: untracked MMIO write: vm_id(0), offset=0x602a8,len=4, val=0x6c65!!! [ 915.478330] vGT warning:(vgt_emulate_write:473) vGT: untracked MMIO write: vm_id(0), offset=0x602ac,len=4, val=0x746e4900!!! [ 915.478414] vGT warning:(vgt_emulate_write:473) vGT: untracked MMIO write: vm_id(0), offset=0x602b0,len=4, val=0x61726765!!! [ 915.478496] vGT warning:(vgt_emulate_write:473) vGT: untracked MMIO write: vm_id(0), offset=0x602b4,len=4, val=0x20646574!!! [ 915.478577] vGT warning:(vgt_emulate_write:473) vGT: untracked MMIO write: vm_id(0), offset=0x602b8,len=4, val=0x786667!!! [ 915.478658] vGT warning:(vgt_emulate_write:473) vGT: untracked MMIO write: vm_id(0), offset=0x602bc,len=4, val=0x900!!! [ 915.531047] i915: intel_flush_display_plane [ 915.566452] i9xx_update_plane [ 915.644347] i9xx_update_plane [ 917.067099] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj. [ 922.386341] [drm:i915_hangcheck_elapsed] ERROR Hangcheck timer elapsed... blitter ring idle

dmesg about warsow :

[ 18.480735] vGT info:(vgt_handle_default_event_phys:822) IRQ: receive event (Blitter Command Streamer MI USER INTERRUPT) [ 18.480800] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(0) receive event (Blitter Command Streamer MI USER INTERRUPT) [ 18.484640] i9xx_update_plane [ 18.493707] vGT info:(vgt_handle_default_event_phys:822) IRQ: receive event (RP DOWN threshold interrupt) [ 18.493769] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(0) receive event (RP DOWN threshold interrupt) [ 18.827061] init: plymouth-stop pre-start process (2205) terminated with status 1 [ 20.206740] VM 0 activate context [ 20.206768] Ring-0 starts work for vgt-0 [ 57.310664] vGT info:(vgt_handle_default_event_phys:822) IRQ: receive event (Render Command Streamer MI USER INTERRUPT) [ 57.310776] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(0) receive event (Render Command Streamer MI USER INTERRUPT) [ 74.063823] vGT info:(vgt_handle_default_event_phys:822) IRQ: receive event (Pipe A vblank) [ 74.063874] vGT info:(vgt_handle_default_event_virt:693) IRQ: VM(0) receive event (Pipe A vblank) [ 81.663398] [drm:i915_hangcheck_elapsed] ERROR Hangcheck timer elapsed... render ring idle

Thank you in advance.

l1viathan commented 9 years ago

Thanks for reporting this. Do you have the same environment (OS, libraries, test suites) for both host and guest? or they are different?

terry84 commented 9 years ago

Both are working on exactly the same environment. I created guest vm image like as follows:

  1. Create vm image that size is 30G in raw format
  2. Install ubuntu 14.04 server 64bit
  3. Install ubuntu mate desktop
  4. Copy host's kernel(Linux kvmgt 3.14.1-igvt+) and modules to guest's /boot and /lib/modules without any modification. I used kpartx command to mount guest image.
  5. Set GRUB_CMDLINE_LINUX_DEFAULT="i915.i915_enable_ppgtt=0" in "/etc/default/grub" file and then "update-grub"
l1viathan commented 9 years ago

Thanks. I don't understand why this happened, will look into this.