Create a Gaming HVM

What are the usual troubleshooting steps if the display stays black?

I solved most of my issues from my post Need help with gpu passtrough

I added some kernel parameters, blacklisted drivers (followed the instructions for the amdgpu on the archwiki).

sudo dmesg does not give me any error messages anymore(related to the gpu (I think?)) but now everything shows up in my primary display again(when I set pci=nomsi and from what I can tell the driver loads with the gpu properly). Running gnome-shell or xorg.sh runs and does not crash but does not display much (sometime completely bugged windows on the primary display). The display connected to the GPU only flashes when starting or powering the VM off.

No Idea what I should do jus’t cant get anything to my other display.

[user@gpu-test ~]$ sudo lspci -vvvnns 00:06.0
00:06.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c5) (prog-if 00 [VGA controller])
	Subsystem: ASRock Incorporation Device [1849:5210]
	Physical Slot: 6
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 40
	Region 0: Memory at 400000000 (64-bit, prefetchable) [size=16G]
	Region 2: Memory at 800000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at c200 [size=256]
	Region 5: Memory at f2000000 (32-bit, non-prefetchable) [size=1M]
	Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [64] Express (v2) Legacy Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
		DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 128 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 16GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
			ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM Disabled; RCB 64 bytes, Disabled- CommClk-
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 16GT/s, Width x16
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
			 10BitTagComp+ 10BitTagReq+ OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS-
			 AtomicOpsCap: 32bit+ 64bit+ 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- 10BitTagReq- OBFF Disabled,
			 AtomicOpsCtl: ReqEn+
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase1+
			 EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
			 Retimer- 2Retimers- CrosslinkRes: unsupported
	Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
		Address: 0000000000000000  Data: 0000
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
[user@gpu-test ~]$ sudo dmesg | grep amdgpu
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.6.12-100.fc38.x86_64 root=/dev/mapper/dmroot ro root=/dev/mapper/dmroot console=tty0 console=hvc0 swiotlb=8192 noresume clocksource=tsc radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1 pci=nomsi modprobe.blacklist=nouveau,nvidea,radeon,bochs-drm xen_scrub_pages=0
[    0.023610] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.6.12-100.fc38.x86_64 root=/dev/mapper/dmroot ro root=/dev/mapper/dmroot console=tty0 console=hvc0 swiotlb=8192 noresume clocksource=tsc radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1 pci=nomsi modprobe.blacklist=nouveau,nvidea,radeon,bochs-drm xen_scrub_pages=0
[    4.584478] [drm] amdgpu kernel modesetting enabled.
[    4.584615] amdgpu: Virtual CRAT table created for CPU
[    4.584658] amdgpu: Topology: Add CPU node
[    4.601820] amdgpu 0000:00:06.0: amdgpu: Fetched VBIOS from ROM
[    4.601842] amdgpu: ATOM BIOS: 113-EXT800254-L04
[    4.647464] amdgpu 0000:00:06.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[    4.647774] amdgpu 0000:00:06.0: amdgpu: VRAM: 12272M 0x0000008000000000 - 0x00000082FEFFFFFF (12272M used)
[    4.647805] amdgpu 0000:00:06.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[    4.647831] amdgpu 0000:00:06.0: amdgpu: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
[    4.649064] [drm] amdgpu: 12272M of VRAM memory ready
[    4.649302] [drm] amdgpu: 1916M of GTT memory ready.
[    6.645218] amdgpu 0000:00:06.0: amdgpu: STB initialized to 2048 entries
[    6.647895] amdgpu 0000:00:06.0: amdgpu: Will use PSP to load VCN firmware
[    6.811948] amdgpu 0000:00:06.0: amdgpu: RAS: optional ras ta ucode is not available
[    6.826164] amdgpu 0000:00:06.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[    6.826489] amdgpu 0000:00:06.0: amdgpu: smu driver if version = 0x0000000e, smu fw if version = 0x00000012, smu fw program = 0, version = 0x00413b00 (65.59.0)
[    6.827054] amdgpu 0000:00:06.0: amdgpu: SMU driver if version not matched
[    6.827322] amdgpu 0000:00:06.0: amdgpu: use vbios provided pptable
[    6.885058] amdgpu 0000:00:06.0: amdgpu: SMU is initialized successfully!
[    7.119791] amdgpu: HMM registered 12272MB device memory
[    7.121659] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[    7.121967] kfd kfd: amdgpu: Total number of KFD nodes to be created: 1
[    7.122415] amdgpu: Virtual CRAT table created for GPU
[    7.123043] amdgpu: Topology: Add dGPU node [0x73df:0x1002]
[    7.123295] kfd kfd: amdgpu: added device 1002:73df
[    7.123550] amdgpu 0000:00:06.0: amdgpu: SE 2, SH per SE 2, CU per SH 10, active_cu_number 40
[    7.124047] amdgpu 0000:00:06.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[    7.124290] amdgpu 0000:00:06.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[    7.124526] amdgpu 0000:00:06.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[    7.124755] amdgpu 0000:00:06.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[    7.124976] amdgpu 0000:00:06.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[    7.125204] amdgpu 0000:00:06.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[    7.125422] amdgpu 0000:00:06.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[    7.125637] amdgpu 0000:00:06.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[    7.125846] amdgpu 0000:00:06.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[    7.126060] amdgpu 0000:00:06.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
[    7.126260] amdgpu 0000:00:06.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[    7.126459] amdgpu 0000:00:06.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[    7.126653] amdgpu 0000:00:06.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[    7.126847] amdgpu 0000:00:06.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
[    7.127050] amdgpu 0000:00:06.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
[    7.127240] amdgpu 0000:00:06.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8
[    7.131035] amdgpu 0000:00:06.0: amdgpu: Using BACO for runtime pm
[    7.131967] [drm] Initialized amdgpu 3.54.0 20150101 for 0000:00:06.0 on minor 1
[    7.138384] amdgpu 0000:00:06.0: [drm] fb1: amdgpudrmfb frame buffer device
[   13.851755] snd_hda_intel 0000:00:07.0: bound 0000:00:06.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])

I mean it’s loaded correctly right? So I should be able to just start a X session right?