Did you create VM follow below wiki?
If you boot VM without dma-buf, you must connect guest by remote procotol, like VNC:
From: iGVT-g [mailto:email@example.com]
Sent: Monday, July 2, 2018 6:27 AM
Subject: [iGVT-g] Unusable VGPU in Windows Guest
I use qemu 2.12 with dma-buffering, kernel 4.17.3 for kvmgt and I struggle to attach my
mdev vgpu to my Windows 8.1 guest using libvirt. (Host is Intel Skylake)
I tried to connect with virt-manager and "virt-viewer -a Win8.1".
-) with an additional qxl graphics card attached, I have no display output at all (black
-) with a cirrus card attached, I have a tiny screen in the bottom left in virt-manager
where I somehow managed to successfully install Intel driver 15.45. (recommended in
-) The second screen, probably the vgpu, shown with virt-viewer is unusable (I can't
click something, no mouse, sometimes hovering only works.
-) No matter how I change monitor settings (primary display, resolution, deactivate Cirrus
in device manager) I can't produce a functioning vgpu video output
-) Sometimes my host freezes when I play with the Windows VM for setup, while connecting
virt-viewer or changing Windows screens.
Part of config:
<hostdev mode='subsystem' type='mdev' managed='no'
<address type='pci' domain='0x0000' bus='0x00'
Tried with and without:
dmesg | grep firmware
[ 0.559100] i915 0000:00:02.0: Direct firmware load for
i915/gvt/vid_0x8086_did_0x1916_rid_0x07.golden_hw_state failed with error -2
[ 0.576039] [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
[ 1.984293] platform regulatory.0: Direct firmware load for regulatory.db failed with
Dmesg output shows an issue with loading golden state firmware. Host is Skylake.
But creating a vgpu is possible:
dmesg | grep -i mdev
[ 0.575292] i915 0000:00:02.0: MDEV: Registered
[ 4052.925958] vfio_mdev 30b480da-7f3f-486c-b056-c4de16796a12: MDEV: group_id = 9
[ 4052.937350] vfio_mdev 30b480da-7f3f-486c-b056-c4de16796a12: MDEV: detaching iommu
[ 4063.756478] vfio_mdev 30b480da-7f3f-486c-b056-c4de16796a12: MDEV: group_id = 9
What am I doing wrong? Advice is very much appreciated!