GPU: define traits for maximum display heads

Some virtual GPUs support specific maximum display heads (or called as
display outputs). This commit is to define traits for display heads, so
that it's able to associate the supported maximum display heads to vGPU
resource providers and it can schedule resource providers based on the
allowed maximum number of display heads.

Change-Id: Ie2b2aca4c00f7b7e01de2eb0455cb180f5e42e3b
Reference: http://docs.nvidia.com/grid/5.0/pdf/grid-vgpu-user-guide.pdf
This commit is contained in:
Jianghua Wang 2018-03-15 08:12:12 +00:00
parent 2c704cae31
commit 86661e36e5

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
TRAITS = [
# The maximal number of display outputs or heads.
'1',
'2',
'4',
'6',
'8',
]