summaryrefslogtreecommitdiff
path: root/src/nv_grid_dbus.h
diff options
context:
space:
mode:
authorSachin Chitte <schitte@nvidia.com>2017-02-09 00:22:19 -0800
committerAaron Plattner <aplattner@nvidia.com>2017-04-06 09:54:45 -0700
commitd753454dfffeb0d2106aa9764982cdae55fc0b2c (patch)
tree915585c508a42fdd3f8cc70024fa735ba5ad8f3e /src/nv_grid_dbus.h
parenta6f34d807a9738421845daac2a71251c25ff8c97 (diff)
Add manage GRID license page to nvidia-settings UI
First time if user does not find /etc/nvidia/gridd.conf file create one from available template /etc/nvidia/gridd.conf.template on the system. Only users with sufficient privileges can update server address and port number. If enableUI = FALSE do not show this Manage License page. In case of VGPU show - current license state label, server address textbox, port no. textbox and Apply button. In case of NMOS show Option to choose between 1.GRID virtual workstation 2. Tesla (Unlicensed) The License Edition section shows if your system has a valid GRID vGPU license. If no valid license is listed, enter the address of your local GRID License Server in the License Server box. The address can be a domain name or an IP address. If you want to use a port number other than the default 7070, then enter it in the Port Number box. Click Apply to assign the settings. UpdateConfigFile() - used to parse gridd.conf and update it. NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE - used to decide the featureType. nvidia-settings will query current license status from gridd daemon using DBUS apis. update_manage_license_info() - queries the current license status.
Diffstat (limited to 'src/nv_grid_dbus.h')
-rw-r--r--src/nv_grid_dbus.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/nv_grid_dbus.h b/src/nv_grid_dbus.h
new file mode 100644
index 0000000..fbcd031
--- /dev/null
+++ b/src/nv_grid_dbus.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2016 NVIDIA Corporation All rights reserved.
+ * All information contained herein is proprietary and confidential to NVIDIA
+ * Corporation. Any use, reproduction, or disclosure without the written
+ * permission of NVIDIA Corporation is prohibited.
+ *
+ * nv_grid_dbus.h
+ */
+
+#ifndef _NVIDIA_NV_GRID_DBUS_H_
+#define _NVIDIA_NV_GRID_DBUS_H_
+
+/*
+ * Following are the details if client needs to open a connection and
+ * communicate with nvidia-gridd to query the license state
+ */
+#define NV_GRID_DBUS_CLIENT "nvidia.grid.client"
+#define NV_GRID_DBUS_TARGET "nvidia.grid.server"
+#define NV_GRID_DBUS_OBJECT "/nvidia/grid/license"
+#define NV_GRID_DBUS_INTERFACE "nvidia.grid.license"
+#define NV_GRID_DBUS_METHOD "GridLicenseState"
+
+/*
+ * List of grid license states
+ */
+typedef enum
+{
+ NV_GRID_UNLICENSED = 0, // Your system does not have a valid GPU license. Enter license server details and apply.
+ NV_GRID_LICENSE_ACQUIRED_VGPU, // Your system is licensed for GRID vGPU.
+ NV_GRID_LICENSE_ACQUIRED_GVW, // Your system is licensed for GRID Virtual Workstation Edition.
+ NV_GRID_LICENSE_REQUESTING_VGPU, // Acquiring license for GRID vGPU Edition. Your system does not have a valid GRID vGPU license.
+ NV_GRID_LICENSE_REQUESTING_GVW, // Acquiring license for GRID Virtual Workstation Edition. Your system does not have a valid GRID Virtual Workstation license.
+ NV_GRID_LICENSE_FAILED_VGPU, // Failed to acquire NVIDIA vGPU license.
+ NV_GRID_LICENSE_FAILED_GVW, // Failed to acquire NVIDIA GRID Virtual Workstation license.
+ NV_GRID_LICENSE_EXPIRED_VGPU, // Failed to renew license for GRID vGPU Edition. Your system does not have a valid GRID vGPU license.
+ NV_GRID_LICENSE_EXPIRED_GVW, // Failed to renew license for GRID Virtual Workstation Edition. Your system is currently running GRID Virtual Workstation (unlicensed).
+ NV_GRID_LICENSE_RESTART_REQUIRED, // Restart your system for Tesla Edition. Your system is currently running GRID Virtual Workstation Edition.
+} gridLicenseStatus;
+
+#endif // _NVIDIA_NV_GRID_DBUS_H_