Set custom resolutions on VGPU

I use CustomTiming sample in the NVAPI 337 release to set custom resolution on Xenserver Windowns7 VM(VGPU type is K100).
Does NvAPI_DISP_GetTiming() failed _NV_GPU_DISPLAYIDS isActive = 0 ? Does anyone have any way to Set custom resolutions on
VGPU?
Thanks.

I’m working on the same issue right now. Look into the NvAPI_GPU_SetEDID call, it should get you want you want.

Thanks icer5k.
There is a default virtual monitor(NVIDIA VGX) connected with the display(_NV_GPU_DISPLAYIDS isConnected = 1).
Eventhough call NvAPI_GPU_SetEDID to add another, NvAPI_DISP_GetTiming failed too.
In the DESCRIPTION of NvAPI_DISP_TryCustomDisplay wrote "Setting up a custom display on non-active but connected monitors is supported only for Win7 and above." But in the sample assumptions "Setting up a custom display on non-active but connected monitors is supported only for Win7 and above."
Why call NvAPI_DISP_GetTiming failed on non-active but connected monitor?

In the K1 passthrough Windowns7 VM, isActive = 1, so that call NvAPI_DISP_GetTiming and NvAPI_DISP_TryCustomDisplay Successfully.