Nvidia NVS 310 no output then bad output

No no im running garuda and i want to run windows, linux etc in vms with good graphics on top of garuda, but keep the ability to interact with garuda while the rx580 is passed through to vms.