xenadmin/XenModel/Utils
Mihaela Stoica dbdd3cc02c CA-157501: Fixing inconsistent GPU dialogs in XS "Standard" when compared with "Enterprise"
New properties:
- Pool.HasGpu = Pool has at least one PGPU
- Pool.HasVGpu = Pool has at least one PGPU that HasVGpu
- PGPU.HasVGpu = PGPU has at least one supported_VGPU_type that is not pass-through

New or modified helper functions:
- Helpers.GpuCapability = GPU feature not restricted (by licensing) and Pool.HasGpu
- Helpers.VGpuCapability = vGPU feature not restricted (by licensing) and Pool.HasVGpu
- Helpers.ClearwaterSp1OrGreater = API version is 2.1 or greater

The GPU dialogs are displayed as follows:
- GPU page on VM properties dialog: Visible only if VM.CanHaveGpu and the GPU feature not restricted (by licensing)
- GPU page on New VM Wizard: Visible only if VM.CanHaveGpu and the pool has GPU capability (Helpers.GpuCapability)
- GPU page on Pool properties dialog: Visible only if the pool has vGPU capability (Helpers.VGpuCapability)
- GPU tab: Visible only if the pool has GPU capability (Helpers.GpuCapability) and is Clearwater SP1 or greater
- On the GPU tab, the "Placement policy" panel: Visible only if the pool has vGPU capability (Helpers.VGpuCapability)
- On the GPU tab, the "Edit" button on the "vGPU types" panel: Visible only if the PGPU.HasVGpu and vGPU feature not restricted (by licensing)

Also:
- VM.CanHaveVGpu function renamed to CanHaveGpu
- On the GPU tab, renamed "Allowed vGPU types" to "vGPU types
2015-01-19 16:49:47 +00:00
..
AsyncServerTime.cs CA-113430: Importing from clearwater-lcm-staging: corrected the calculation of 2013-08-28 15:11:12 +01:00
Helpers.cs CA-157501: Fixing inconsistent GPU dialogs in XS "Standard" when compared with "Enterprise" 2015-01-19 16:49:47 +00:00
PrettyTimeSpan.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
PropertyManager.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
Util.cs CP-6234: Exposed new vGPU RRDs in XenCenter. 2013-11-14 11:33:59 +00:00