REF:
http://los-vmm.sc.intel.com/wiki/How-to-setup-kvmgt
http://xenvgt.sh.intel.com/image/bdw-h/
Host display backgroud
$ grep i915.enable_vgtbuffer=1 /boot/grub/grub.cfg
linux /boot/vmlinuz-4.3.0-rc6-vgt+ root=UUID=d686a051-44ac-4e28-ba33-c715d9944852 ro intel_iommu=igfx_off i915.hvm_boot_foreground=0 i915.enable_vgtbuffer=1
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.3.0-rc6-vgt+ root=UUID=d686a051-44ac-4e28-ba33-c715d9944852 ro intel_iommu=igfx_off i915.hvm_boot_foreground=0 i915.enable_vgtbuffer=1
# echo 0 > /sys/kernel/vgt/control/foreground_vm
The main qemu code:
qemu-igvtg/hw/display/vgt_vga.c
kernal code:
drivers/gpu/drm/i915/i915_gem_vgtbuffer.c
qemu can use flink or dambuffer to get framebuffer.
时间: 2024-10-22 05:50:05