Development and test environment in Hyper-V with discrete device assignment.

I’m about to make my first attempt at writing a KMDF device driver for a PCIe HBA and would like to know if anyone has had success with the following development and testing environment:
Physical machine running windows server 2016 with Hyper-V installed.
Development VM running Windows 10 and Visual Studio 2017.
Test (target) VM running Windows Server 2016 with the PCIe HBA passed into it via the “discrete device assignment” feature.

Does this work? Any caveats/gotchas I should be aware of?

Thanks,
Erik