X570 GTX 770 GPU Passthrough, Instability Issues on Host and Guest

Hi,
I have quite a strange passthrough case. When the guest is loaded and used, the host and the guest become unstable. I suspected it was a sync issue with tsc and dmesg confirms this:

[ 339.512721] clocksource: timekeeping watchdog on CPU5: hpet retried 2 times before success
[ 359.001031] clocksource: timekeeping watchdog on CPU20: hpet retried 2 times before success
[ 365.528897] clocksource: timekeeping watchdog on CPU9: hpet retried 2 times before success
[ 370.013116] clocksource: timekeeping watchdog on CPU18: hpet retried 2 times before success
[ 370.521031] clocksource: timekeeping watchdog on CPU19: hpet retried 3 times before success
[ 376.504929] clocksource: timekeeping watchdog on CPU7: hpet retried 2 times before success
[ 377.020897] clocksource: timekeeping watchdog on CPU8: hpet retried 2 times before success
[ 392.029041] clocksource: timekeeping watchdog on CPU14: hpet read-back delay of 172717ns, attempt 4, marking unstable
[ 392.029218] tsc: Marking TSC unstable due to clocksource watchdog
[ 392.029222] TSC found unstable after boot, most likely due to broken BIOS. Use ‘tsc=unstable’.
[ 392.029223] sched_clock: Marking unstable (391672398347, 356823511)<-(392030734618, -1512669)
[ 392.032245] clocksource: Checking clocksource tsc synchronization from CPU 14 to CPUs 0,9-10,15,18-19,23.
[ 392.032943] clocksource: Switched to clocksource hpet

Hardware/Software used:
Kubuntu 21.10, 5.15.6 kernel
CPU: Ryzen 9 5900x
Motherboard: Asrock X570 Taichi
Host GPU: RX6800xt
Guest GPU: GTX770

It appears to be something specific to the GTX770. Originally the RX6800xt was used as the guest gpu and no instabilities presented.

Any ideas?
BTW, this is for a macOS vm that is run inside of virt-manager.

What driver version are you using? IIRC Nvidia stopped supporting the 700 series with drivers.

You need a driver earlier than 495

1 Like

I wasn’t using a windows vm. I was using a macos vm that had the 770 attached to it. I think I found out that the 770 was having a hardware fault whenever utilized in any meaningful way. I placed my R9 280X in and I had no issues and haven’t had issues passing in kepler cards before.