LINUX.ORG.RU

История изменений

Исправление superuser, (текущая версия) :

Ситуация изменилась!
https://01.org/igvt-g/blogs/wangbo85/2018/sharing-guest-framebuffer-host
https://github.com/intel/gvt-linux/issues/18
https://github.com/intel/gvt-linux/issues/17
Ну и скрин от меня http://i103.fastpic.ru/big/2018/0216/45/fb167ce638c4f0fd0713758540180e45.png

$ cat sample.sh
#!/bin/bash

#r=/sys/bus/pci/devices/0000:00:02.0
r=/sys/devices/pci0000:00/0000:00:02.0

id=`uuid`
echo ${id} > ${r}/mdev_supported_types/i915-GVTg_V5_4/create
sleep 1

if [ ! -d ${r}/${id} ]
then 
	exit 1
fi

#============================================================
QEMU_AUDIO_DRV=pa \
/usr/bin/qemu-system-x86_64 \
    -m 4096 -smp 2 -M pc \
    -name W7-igvt \
    -bios /usr/share/qemu/bios.bin -enable-kvm \
    -net nic,macaddr=00:A1:00:00:00:1A -net tap,script=/etc/qemu-ifup \
    -display gtk,gl=on \
    -k ru-us \
    -machine kernel_irqchip=on \
    -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 \
-cpu host \
-soundhw ac97 \
-hda /home/user123/WM/W7.qcow2  \
-vga none \
-device vfio-pci,sysfsdev=${r}/${id},x-display=on,x-igd-opregion=on

#-vga qxl \
#-cdrom /home/user123/ISO/TEST.ISO \
#============================================================

echo 1 > ${r}/${id}/remove
P.s.: запускать из-под рут

Исходная версия superuser, :

Ситуация изменилась!
https://01.org/igvt-g/blogs/wangbo85/2018/sharing-guest-framebuffer-host
https://github.com/intel/gvt-linux/issues/18
https://github.com/intel/gvt-linux/issues/17
Ну и скрин от меня http://i103.fastpic.ru/big/2018/0216/45/fb167ce638c4f0fd0713758540180e45.png

$ cat sample.sh
#!/bin/bash

#r=/sys/bus/pci/devices/0000:00:02.0
r=/sys/devices/pci0000:00/0000:00:02.0

id=`uuid`
echo ${id} > ${r}/mdev_supported_types/i915-GVTg_V5_4/create
sleep 1

if [ ! -d ${r}/${id} ]
then 
	exit 1
fi

#============================================================
QEMU_AUDIO_DRV=pa \
/usr/bin/qemu-system-x86_64 \
    -m 4096 -smp 2 -M pc \
    -name W7-igvt \
    -bios /usr/share/qemu/bios.bin -enable-kvm \
    -net nic,macaddr=00:A1:00:00:00:1A -net tap,script=/etc/qemu-ifup \
    -display gtk,gl=on \
    -k ru-us \
    -machine kernel_irqchip=on \
    -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 \
-cpu host \
-soundhw ac97 \
-hda ~/WM/W7.qcow2  \
-vga none \
-device vfio-pci,sysfsdev=${r}/${id},x-display=on,x-igd-opregion=on

#-vga qxl \
#-cdrom ~/ISO/TEST.ISO \
#============================================================

echo 1 > ${r}/${id}/remove
P.s.: запускать из-под рут