summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gvt/gvt.h
diff options
context:
space:
mode:
authorMin He <min.he@intel.com>2017-02-17 11:42:38 +0300
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-02-23 12:32:13 +0300
commita33fc7a0482a40068c022aefcefd50f9f0f44f87 (patch)
treebc5a7a1ed4a1d6cb7ddfe93674606ba6500a447a /drivers/gpu/drm/i915/gvt/gvt.h
parentd1be371d4f4c12d11023c9fc795e5d460d960680 (diff)
downloadlinux-a33fc7a0482a40068c022aefcefd50f9f0f44f87.tar.xz
drm/i915/gvt: enter failsafe mode when guest requires more resources
Windows guest will notitfy GVT-g to request more resources through g2v interface, when its resources are not enough. This patch is to handle this case and let vgpu enter failsafe mode to avoid too many error messages. Signed-off-by: Min He <min.he@intel.com> Signed-off-by: Pei Zhang <pei.zhang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/gvt.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/gvt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h
index 48ef0771d772..a41b322d8957 100644
--- a/drivers/gpu/drm/i915/gvt/gvt.h
+++ b/drivers/gpu/drm/i915/gvt/gvt.h
@@ -453,6 +453,7 @@ struct intel_gvt_ops {
enum {
GVT_FAILSAFE_UNSUPPORTED_GUEST,
+ GVT_FAILSAFE_INSUFFICIENT_RESOURCE,
};
#include "mpt.h"