This should not happen anymore. vfio-isolate shields the VM from the rest. Your script also looks right to me, I double checked. My guess is that the script is not being invoked correctly.
case "$2" in
"prepare")
enable_isolation
echo "prepare" >> /home/<yourusername>/qemu_hook.log
;;
"started")
;;
"release")
disable_isolation
echo "release" >> /home/<yourusername>/qemu_hook.log
;;
esac
Can you maybe edit the script like the code I pasted above. I am not entirely sure if qemu can only invoke scripts or if it can also run shell commands in this hook. This should, hopefully, output a file called qemu_hook.log in your users home directory. This way you could at least see if the functions to enable and disable the isolation are even getting run!
Yes, it wrote to the log, in both āprepareā and āreleaseā events. But still, it doesnāt work. As soon as I fire the stress, the VM becomes almost unusable.
edit: and yes, since qemu is a bash script, it should be run from the terminal, and isolate the terminal PID. But these errors should appear there.
Looks ok! Couple of games have framedrops, but they are badly designed/implemented.
FurMark for example, stays stable with stress running and the feeling remains excellent.
Well no, but yesā¦
So, When I run the āstressā, I have zero framedropsā¦
However, when I have both VMs on, it doesā¦
And the 2nd VM doesnāt have any PIN, script, etc, and the only passthrough devices are a webcam and a NVME diskā¦
Can this part cause the issue (I have the same on both VMs) ?
@anon86748826 Is the above setting correct for my Gaming VM?
If yes, what should I use for my Coding VM? The same or different cores? Currently I have nothing in the section nor , but my Gaming VM suffers CPU performanceā¦
I would not use the same cores for the coding VM. Try not pinning anything in the coding VM and see if the framedrops in the gaming VM vanish. If this kind of isolation does not help I am a bit lost what to try next.
I did remove all settings from Coding VM, but this didnāt help.
However while looking around, I found two possible solutions.
I enabled Huge Pages. It was something I forgot to do, as I had issues before. I did the steps again and now looks ok. Didnāt see any obvious performance change, but didnāt get worse, so I kept it
After reading at this post, I disabled SVM, and that made the trick. However I need to search a bit deeper, as this blocks the Hyper-V from running in the guest machine, something that helps few games (with certain anti-cheats) to run. Currently I only have one in that category, so no big deal, but in the future I may have to find another way
Any idea why both ways (individual scripts & vfio-isolate) stopped working recently?
I am not sure if it was since the last Kernel update or before thatā¦