标签:
http://los-vmm.sc.intel.com/wiki/How-to-setup-kvmgt
http://xenvgt.sh.intel.com/image/bdw-h/
$ 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.
标签:
原文地址:http://www.cnblogs.com/shaohef/p/5386660.html