Compare commits
52 Commits
450-driver
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 0168b36c44 | |||
| 74f3de8dee | |||
| a9714540de | |||
| ac721caf2b | |||
| aa601526c2 | |||
| f3e7b42fd6 | |||
| b6e1b67cb4 | |||
| e1de40cdce | |||
| ab5fc9e7db | |||
| 90c1bc8d6b | |||
| cac450b4c7 | |||
| 20938c35b2 | |||
| e5217b832f | |||
| c38f027577 | |||
| 0277aff59a | |||
| c255382788 | |||
| eeca1f0990 | |||
| e5ca188694 | |||
| f62acfcd00 | |||
| afa92c85b4 | |||
| c115bc725e | |||
| 4c8c9e0060 | |||
| e49ccb9edf | |||
| ab653f9877 | |||
| c0f220dcc3 | |||
| 1e468dcc97 | |||
| 3110f37d80 | |||
| 0c1d8e6bea | |||
| 028d78af09 | |||
| 9e3df0bdff | |||
| e2955b232a | |||
| a577cc6625 | |||
| df93332349 | |||
| ba197fb9ac | |||
| 646e599bce | |||
| 0e51ef508e | |||
| dcf58742b8 | |||
| 5ec737e1a3 | |||
| d1009fd47a | |||
| 8cef2c6082 | |||
| ea99035a5b | |||
| ba4b4b4787 | |||
| 22bd687e6d | |||
| f2b1c0c1e9 | |||
| 7f5762abb3 | |||
| e811051d09 | |||
| cfd7da5ed2 | |||
| cb0ed9baf3 | |||
| f224154ea5 | |||
| 919b49ed74 | |||
| dc9585f91e | |||
| 845180dfcd |
452
450_5.15.patch
452
450_5.15.patch
@ -1,452 +0,0 @@
|
||||
--- ./kernel/Kbuild
|
||||
+++ ./kernel/Kbuild
|
||||
@@ -72,6 +72,7 @@ EXTRA_CFLAGS += -Wall -MD $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error -Wno-
|
||||
EXTRA_CFLAGS += -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"450.156\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE
|
||||
EXTRA_CFLAGS += $(call cc-option,-Werror=undef,)
|
||||
EXTRA_CFLAGS += -DNV_SPECTRE_V2=$(NV_SPECTRE_V2)
|
||||
+EXTRA_CFLAGS += -DNV_KERNEL_INTERFACE_LAYER -Wfatal-errors
|
||||
|
||||
#
|
||||
# Detect SGI UV systems and apply system-specific optimizations.
|
||||
|
||||
--- ./kernel/conftest.sh
|
||||
+++ ./kernel/conftest.sh
|
||||
@@ -4576,7 +4576,7 @@ case "$5" in
|
||||
#
|
||||
VERBOSE=$6
|
||||
iommu=CONFIG_VFIO_IOMMU_TYPE1
|
||||
- mdev=CONFIG_VFIO_MDEV_DEVICE
|
||||
+ mdev=CONFIG_VFIO_MDEV
|
||||
kvm=CONFIG_KVM_VFIO
|
||||
VFIO_IOMMU_PRESENT=0
|
||||
VFIO_MDEV_DEVICE_PRESENT=0
|
||||
|
||||
--- ./kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c
|
||||
+++ ./kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c
|
||||
@@ -24,6 +24,10 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/err.h>
|
||||
+#include <linux/eventfd.h>
|
||||
+#include <uapi/linux/uuid.h>
|
||||
+#include <linux/device.h>
|
||||
+#include <linux/mdev.h>
|
||||
#include "nvstatus.h"
|
||||
#include "nv-misc.h"
|
||||
#include "nv-linux.h"
|
||||
@@ -37,6 +41,25 @@
|
||||
struct vgpu_devs vgpu_devices;
|
||||
struct phys_devs phys_devices;
|
||||
|
||||
+struct mdev_parent {
|
||||
+ struct device *dev;
|
||||
+ const struct mdev_parent_ops *ops;
|
||||
+ struct kref ref;
|
||||
+ struct list_head next;
|
||||
+ struct kset *mdev_types_kset;
|
||||
+ struct list_head type_list;
|
||||
+ /* Synchronize device creation/removal with parent unregistration */
|
||||
+ struct rw_semaphore unreg_sem;
|
||||
+};
|
||||
+
|
||||
+struct mdev_type {
|
||||
+ struct kobject kobj;
|
||||
+ struct kobject *devices_kobj;
|
||||
+ struct mdev_parent *parent;
|
||||
+ struct list_head next;
|
||||
+ unsigned int type_group_id;
|
||||
+};
|
||||
+
|
||||
#define SLEEP_TIME_MILLISECONDS 20
|
||||
#define VGPU_EXIT_TIMEOUT_MILLISECONDS 5000
|
||||
#define WAITQUEUE_TIMEOUT_SECONDS 25000
|
||||
@@ -162,8 +185,8 @@ struct parent_ops vgpu_fops = {
|
||||
.remove = nv_vgpu_vfio_destroy,
|
||||
.read = nv_vgpu_vfio_read,
|
||||
.write = nv_vgpu_vfio_write,
|
||||
- .open = nv_vgpu_vfio_open,
|
||||
- .release = nv_vgpu_vfio_close,
|
||||
+ .open_device = nv_vgpu_vfio_open,
|
||||
+ .close_device = nv_vgpu_vfio_close,
|
||||
.ioctl = nv_vgpu_vfio_ioctl,
|
||||
.mmap = nv_vgpu_vfio_mmap,
|
||||
};
|
||||
@@ -368,9 +391,9 @@ static NV_STATUS nv_get_vgpu_type_id(const char *kobj_name, struct device *dev,
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
-static ssize_t name_show(struct kobject *kobj, struct device *dev, char *buf)
|
||||
+static ssize_t name_show(struct mdev_type *mtype, struct mdev_type_attribute *attr, char *buf)
|
||||
{
|
||||
- struct pci_dev *pdev = to_pci_dev(dev);
|
||||
+ struct pci_dev *pdev = to_pci_dev(mtype->parent->dev);
|
||||
struct pci_dev *parent_device;
|
||||
NvU32 vgpu_type_id;
|
||||
NV_STATUS status;
|
||||
@@ -381,7 +404,7 @@ static ssize_t name_show(struct kobject *kobj, struct device *dev, char *buf)
|
||||
|
||||
parent_device = pdev;
|
||||
|
||||
- if (nv_get_vgpu_type_id(kobj->name, dev, &vgpu_type_id)
|
||||
+ if (nv_get_vgpu_type_id(mtype->kobj.name, mtype->parent->dev, &vgpu_type_id)
|
||||
== NV_OK)
|
||||
status = rm_vgpu_vfio_ops.get_name(parent_device, vgpu_type_id, buf);
|
||||
else
|
||||
@@ -394,9 +417,9 @@ static ssize_t name_show(struct kobject *kobj, struct device *dev, char *buf)
|
||||
}
|
||||
MDEV_TYPE_ATTR_RO(name);
|
||||
|
||||
-static ssize_t description_show(struct kobject *kobj, struct device *dev, char *buf)
|
||||
+static ssize_t description_show(struct mdev_type *mtype, struct mdev_type_attribute *attr, char *buf)
|
||||
{
|
||||
- struct pci_dev *pdev = to_pci_dev(dev);
|
||||
+ struct pci_dev *pdev = to_pci_dev(mtype->parent->dev);
|
||||
struct pci_dev *parent_device;
|
||||
NvU32 vgpu_type_id;
|
||||
NV_STATUS status;
|
||||
@@ -407,7 +430,7 @@ static ssize_t description_show(struct kobject *kobj, struct device *dev, char *
|
||||
|
||||
parent_device = pdev;
|
||||
|
||||
- if (nv_get_vgpu_type_id(kobj->name, dev, &vgpu_type_id)
|
||||
+ if (nv_get_vgpu_type_id(mtype->kobj.name, mtype->parent->dev, &vgpu_type_id)
|
||||
== NV_OK)
|
||||
status = rm_vgpu_vfio_ops.get_description(parent_device, vgpu_type_id, buf);
|
||||
else
|
||||
@@ -420,13 +443,13 @@ static ssize_t description_show(struct kobject *kobj, struct device *dev, char *
|
||||
}
|
||||
MDEV_TYPE_ATTR_RO(description);
|
||||
|
||||
-static ssize_t available_instances_show(struct kobject *kobj, struct device *dev, char *buf)
|
||||
+static ssize_t available_instances_show(struct mdev_type *t, struct mdev_type_attribute *ta, char *buf)
|
||||
{
|
||||
- struct pci_dev *pdev = to_pci_dev(dev);
|
||||
+ struct pci_dev *pdev = to_pci_dev(t->parent->dev);
|
||||
NvU32 vgpu_type_id;
|
||||
NV_STATUS status;
|
||||
|
||||
- if ((nv_get_vgpu_type_id(kobj->name, dev, &vgpu_type_id)) == NV_OK)
|
||||
+ if ((nv_get_vgpu_type_id(t->kobj.name, t->parent->dev, &vgpu_type_id)) == NV_OK)
|
||||
status = rm_vgpu_vfio_ops.get_instances(pdev, vgpu_type_id, buf);
|
||||
else
|
||||
return -EINVAL;
|
||||
@@ -438,8 +461,7 @@ static ssize_t available_instances_show(struct kobject *kobj, struct device *dev
|
||||
}
|
||||
MDEV_TYPE_ATTR_RO(available_instances);
|
||||
|
||||
-static ssize_t device_api_show(struct kobject *kobj, struct device *dev,
|
||||
- char *buf)
|
||||
+static ssize_t device_api_show(struct mdev_type *t, struct mdev_type_attribute *ta, char *buf)
|
||||
{
|
||||
return sprintf(buf, "%s\n",
|
||||
VFIO_DEVICE_API_PCI_STRING);
|
||||
@@ -534,7 +556,7 @@ destroy_exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
-static int nv_vgpu_vfio_create(struct kobject *kobj, struct mdev_device *mdev)
|
||||
+static int nv_vgpu_vfio_create(struct mdev_device *mdev)
|
||||
{
|
||||
NV_STATUS status = NV_OK;
|
||||
vgpu_dev_t *vgpu_dev = NULL;
|
||||
@@ -556,7 +578,7 @@ static int nv_vgpu_vfio_create(struct kobject *kobj, struct mdev_device *mdev)
|
||||
if (!pdev)
|
||||
return -EINVAL;
|
||||
|
||||
- if (nv_get_vgpu_type_id(kobj->name, NV_GET_MDEV_PARENT(mdev), &vgpu_type_id)
|
||||
+ if (nv_get_vgpu_type_id(mdev->type->kobj.name, NV_GET_MDEV_PARENT(mdev), &vgpu_type_id)
|
||||
!= NV_OK)
|
||||
{
|
||||
ret = -EINVAL;
|
||||
@@ -631,12 +653,7 @@ static int nv_vgpu_vfio_create(struct kobject *kobj, struct mdev_device *mdev)
|
||||
if (pdev->is_virtfn)
|
||||
{
|
||||
#if defined(NV_MDEV_SET_IOMMU_DEVICE_PRESENT)
|
||||
- ret = mdev_set_iommu_device(NV_GET_MDEV_DEV(mdev), NV_GET_MDEV_PARENT(mdev));
|
||||
- if (ret != 0)
|
||||
- {
|
||||
- NV_VGPU_DEV_LOG(VGPU_ERR, mdev, "Failed to set IOMMU device. ret: %d \n", ret);
|
||||
- goto remove_vgpu;
|
||||
- }
|
||||
+ mdev_set_iommu_device(mdev, NV_GET_MDEV_PARENT(mdev));
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -2479,19 +2496,18 @@ invalidate_exit:
|
||||
|
||||
static int vgpu_save_fd(vgpu_dev_t *vgpu_dev, int fd, NvU32 index)
|
||||
{
|
||||
- struct fd irqfd;
|
||||
+ struct eventfd_ctx *evt;
|
||||
|
||||
- irqfd = fdget(fd);
|
||||
- if (!irqfd.file)
|
||||
- return -EBADF;
|
||||
+ evt = eventfd_ctx_fdget(fd);
|
||||
+ if (IS_ERR(evt))
|
||||
+ return PTR_ERR(evt);
|
||||
|
||||
if (index == VFIO_PCI_INTX_IRQ_INDEX)
|
||||
- vgpu_dev->intr_info.intx_file = irqfd.file;
|
||||
- else if (index == VFIO_PCI_MSI_IRQ_INDEX)
|
||||
- vgpu_dev->intr_info.msi_file = irqfd.file;
|
||||
+ vgpu_dev->intr_info.intx_evtfd = evt;
|
||||
+ else if (index == VFIO_PCI_MSI_IRQ_INDEX)
|
||||
+ vgpu_dev->intr_info.msi_evtfd = evt;
|
||||
|
||||
vgpu_dev->intr_info.index = index;
|
||||
- fdput(irqfd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -2500,11 +2516,8 @@ static int vgpu_save_fd(vgpu_dev_t *vgpu_dev, int fd, NvU32 index)
|
||||
static irqreturn_t vgpu_msix_handler(int irq, void *arg)
|
||||
{
|
||||
vgpu_dev_t *vgpu_dev = (vgpu_dev_t *)arg;
|
||||
- struct file *pfile = NULL;
|
||||
- mm_segment_t old_fs;
|
||||
- NvU64 val = 1;
|
||||
+ struct eventfd_ctx *evt = NULL;
|
||||
int ret = 0;
|
||||
- loff_t offset = 0;
|
||||
int i;
|
||||
unsigned long eflags;
|
||||
|
||||
@@ -2512,21 +2525,16 @@ static irqreturn_t vgpu_msix_handler(int irq, void *arg)
|
||||
{
|
||||
if (vgpu_dev->intr_info.allocated_irq[i] == irq)
|
||||
{
|
||||
- pfile = vgpu_dev->intr_info.msix_fd[i].file;
|
||||
+ evt = vgpu_dev->intr_info.msix_evtfd[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
- if (pfile && pfile->f_op && pfile->f_op->write)
|
||||
+ if (evt)
|
||||
{
|
||||
- old_fs = get_fs();
|
||||
- set_fs(KERNEL_DS);
|
||||
-
|
||||
NV_SAVE_FLAGS(eflags);
|
||||
- ret = pfile->f_op->write(pfile, (char *)&val, sizeof(val), &offset);
|
||||
+ ret = eventfd_signal(evt, 1);
|
||||
NV_RESTORE_FLAGS(eflags);
|
||||
-
|
||||
- set_fs(old_fs);
|
||||
}
|
||||
|
||||
return IRQ_HANDLED;
|
||||
@@ -2537,23 +2545,24 @@ static int vgpu_msix_set_vector_signal(vgpu_dev_t *vgpu_dev,
|
||||
{
|
||||
struct pci_dev *pdev;
|
||||
int irq = INVALID_IRQ, ret;
|
||||
- struct fd irqfd;
|
||||
+ struct eventfd_ctx *evt;
|
||||
|
||||
pdev = to_pci_dev(NV_GET_MDEV_PARENT(vgpu_dev->mdev));
|
||||
|
||||
- if (vgpu_dev->intr_info.msix_fd[vector].file)
|
||||
+ if (vgpu_dev->intr_info.msix_evtfd[vector])
|
||||
{
|
||||
free_irq(vgpu_dev->intr_info.allocated_irq[vector], vgpu_dev);
|
||||
- vgpu_dev->intr_info.msix_fd[vector].file = NULL;
|
||||
+ eventfd_ctx_put(vgpu_dev->intr_info.msix_evtfd[vector]);
|
||||
+ vgpu_dev->intr_info.msix_evtfd[vector] = NULL;
|
||||
vgpu_dev->intr_info.allocated_irq[vector] = INVALID_IRQ;
|
||||
}
|
||||
|
||||
if (fd < 0)
|
||||
return 0;
|
||||
|
||||
- irqfd = fdget(fd);
|
||||
- if (!irqfd.file)
|
||||
- return -EBADF;
|
||||
+ evt = eventfd_ctx_fdget(fd);
|
||||
+ if (IS_ERR(evt))
|
||||
+ return PTR_ERR(evt);
|
||||
|
||||
if (vector < 0 || vector >= vgpu_dev->intr_info.num_ctx)
|
||||
return -EINVAL;
|
||||
@@ -2569,7 +2578,7 @@ static int vgpu_msix_set_vector_signal(vgpu_dev_t *vgpu_dev,
|
||||
|
||||
vgpu_dev->intr_info.allocated_irq[vector] = irq;
|
||||
|
||||
- vgpu_dev->intr_info.msix_fd[vector]= irqfd;
|
||||
+ vgpu_dev->intr_info.msix_evtfd[vector]= evt;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -2586,7 +2595,12 @@ static void vgpu_msix_disable(vgpu_dev_t *vgpu_dev)
|
||||
if (vgpu_dev->intr_info.allocated_irq[i] != INVALID_IRQ)
|
||||
{
|
||||
free_irq(vgpu_dev->intr_info.allocated_irq[i], vgpu_dev);
|
||||
- vgpu_dev->intr_info.msix_fd[i].file = NULL;
|
||||
+
|
||||
+ if (vgpu_dev->intr_info.msix_evtfd[i]) {
|
||||
+ eventfd_ctx_put(vgpu_dev->intr_info.msix_evtfd[i]);
|
||||
+ vgpu_dev->intr_info.msix_evtfd[i] = NULL;
|
||||
+ }
|
||||
+
|
||||
vgpu_dev->intr_info.allocated_irq[i] = INVALID_IRQ;
|
||||
}
|
||||
}
|
||||
@@ -2675,7 +2689,10 @@ static int nv_vgpu_vfio_set_irqs(vgpu_dev_t *vgpu_dev, uint32_t flags,
|
||||
{
|
||||
if (flags & VFIO_IRQ_SET_DATA_NONE)
|
||||
{
|
||||
- vgpu_dev->intr_info.intx_file = NULL;
|
||||
+ if (vgpu_dev->intr_info.intx_evtfd) {
|
||||
+ eventfd_ctx_put(vgpu_dev->intr_info.intx_evtfd);
|
||||
+ vgpu_dev->intr_info.intx_evtfd = NULL;
|
||||
+ }
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2700,7 +2717,10 @@ static int nv_vgpu_vfio_set_irqs(vgpu_dev_t *vgpu_dev, uint32_t flags,
|
||||
{
|
||||
if (flags & VFIO_IRQ_SET_DATA_NONE)
|
||||
{
|
||||
- vgpu_dev->intr_info.msi_file = NULL;
|
||||
+ if (vgpu_dev->intr_info.msi_evtfd) {
|
||||
+ eventfd_ctx_put(vgpu_dev->intr_info.msi_evtfd);
|
||||
+ vgpu_dev->intr_info.msi_evtfd = NULL;
|
||||
+ }
|
||||
vgpu_dev->intr_info.index = VFIO_PCI_INTX_IRQ_INDEX;
|
||||
break;
|
||||
}
|
||||
@@ -2708,10 +2728,9 @@ static int nv_vgpu_vfio_set_irqs(vgpu_dev_t *vgpu_dev, uint32_t flags,
|
||||
if (flags & VFIO_IRQ_SET_DATA_EVENTFD)
|
||||
{
|
||||
int fd = *(int *)data;
|
||||
- if (fd > 0)
|
||||
+ if (fd > 0 && !vgpu_dev->intr_info.msi_evtfd)
|
||||
{
|
||||
- if (vgpu_dev->intr_info.msi_file == NULL)
|
||||
- ret = vgpu_save_fd(vgpu_dev, fd, index);
|
||||
+ ret = vgpu_save_fd(vgpu_dev, fd, index);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -2766,12 +2785,9 @@ exit:
|
||||
|
||||
NV_STATUS nv_vgpu_inject_interrupt(void *vgpuRef)
|
||||
{
|
||||
- mm_segment_t old_fs;
|
||||
- NvU64 val = 1;
|
||||
int ret = 0;
|
||||
- loff_t offset = 0;
|
||||
NV_STATUS status = NV_OK;
|
||||
- struct file *pfile = NULL;
|
||||
+ struct eventfd_ctx *evt = NULL;
|
||||
vgpu_dev_t *vgpu_dev = vgpuRef;
|
||||
unsigned long eflags;
|
||||
|
||||
@@ -2780,12 +2796,12 @@ NV_STATUS nv_vgpu_inject_interrupt(void *vgpuRef)
|
||||
|
||||
NV_SPIN_LOCK_IRQSAVE(&vgpu_dev->intr_info_lock, eflags);
|
||||
|
||||
- if ((vgpu_dev->intr_info.index == VFIO_PCI_MSI_IRQ_INDEX) && (vgpu_dev->intr_info.msi_file == NULL))
|
||||
+ if ((vgpu_dev->intr_info.index == VFIO_PCI_MSI_IRQ_INDEX) && (!vgpu_dev->intr_info.msi_evtfd))
|
||||
{
|
||||
NV_SPIN_UNLOCK_IRQRESTORE(&vgpu_dev->intr_info_lock, eflags);
|
||||
return NV_ERR_INVALID_REQUEST;
|
||||
}
|
||||
- else if ((vgpu_dev->intr_info.index == VFIO_PCI_INTX_IRQ_INDEX) && (vgpu_dev->intr_info.intx_file == NULL))
|
||||
+ else if ((vgpu_dev->intr_info.index == VFIO_PCI_INTX_IRQ_INDEX) && (!vgpu_dev->intr_info.intx_evtfd))
|
||||
{
|
||||
NV_SPIN_UNLOCK_IRQRESTORE(&vgpu_dev->intr_info_lock, eflags);
|
||||
return NV_ERR_INVALID_REQUEST;
|
||||
@@ -2797,9 +2813,9 @@ NV_STATUS nv_vgpu_inject_interrupt(void *vgpuRef)
|
||||
}
|
||||
|
||||
if (vgpu_dev->intr_info.index == VFIO_PCI_MSI_IRQ_INDEX)
|
||||
- pfile = vgpu_dev->intr_info.msi_file;
|
||||
+ evt = vgpu_dev->intr_info.msi_evtfd;
|
||||
else
|
||||
- pfile = vgpu_dev->intr_info.intx_file;
|
||||
+ evt = vgpu_dev->intr_info.intx_evtfd;
|
||||
|
||||
// QEMU has exited. So, safe to ignore interrupts.
|
||||
if (vgpu_dev->intr_info.ignore_interrupts == NV_TRUE)
|
||||
@@ -2809,19 +2825,14 @@ NV_STATUS nv_vgpu_inject_interrupt(void *vgpuRef)
|
||||
}
|
||||
NV_SPIN_UNLOCK_IRQRESTORE(&vgpu_dev->intr_info_lock, eflags);
|
||||
|
||||
- old_fs = get_fs();
|
||||
- set_fs(KERNEL_DS);
|
||||
-
|
||||
- if (pfile->f_op && pfile->f_op->write)
|
||||
- ret = pfile->f_op->write(pfile, (char *)&val, sizeof(val), &offset);
|
||||
- else
|
||||
- status = NV_ERR_INVALID_REQUEST;
|
||||
+ if (evt)
|
||||
+ ret = eventfd_signal(evt, 1);
|
||||
+ else
|
||||
+ status = NV_ERR_INVALID_REQUEST;
|
||||
|
||||
if (ret < 0)
|
||||
status = NV_ERR_INVALID_STATE;
|
||||
|
||||
- set_fs(old_fs);
|
||||
-
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -4165,6 +4176,6 @@ static void __exit nv_vgpu_vfio_exit(void)
|
||||
module_init(nv_vgpu_vfio_init);
|
||||
module_exit(nv_vgpu_vfio_exit);
|
||||
|
||||
-MODULE_LICENSE("MIT");
|
||||
+MODULE_LICENSE("GPL");
|
||||
MODULE_INFO(supported, "external");
|
||||
MODULE_VERSION(NV_VERSION_STRING);
|
||||
|
||||
--- ./kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.h
|
||||
+++ ./kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.h
|
||||
@@ -51,7 +51,7 @@ static NV_STATUS nv_vgpu_probe(struct pci_dev *dev, NvU32, NvU32 *);
|
||||
static NV_STATUS nv_vgpu_vfio_validate_map_request(struct mdev_device *, loff_t, NvU64 *,
|
||||
NvU64 *, NvU64 *, pgprot_t *, NvBool *);
|
||||
static void nv_vgpu_remove(struct pci_dev *);
|
||||
-static int nv_vgpu_vfio_create(struct kobject *, struct mdev_device *);
|
||||
+static int nv_vgpu_vfio_create(struct mdev_device *);
|
||||
static int nv_vgpu_vfio_destroy(struct mdev_device *mdev);
|
||||
static int nv_vgpu_vfio_open(struct mdev_device *);
|
||||
static void nv_vgpu_vfio_close(struct mdev_device *);
|
||||
@@ -293,19 +293,20 @@ typedef struct
|
||||
|
||||
typedef struct
|
||||
{
|
||||
- struct file *intx_file;
|
||||
- struct file *msi_file;
|
||||
+ struct eventfd_ctx *intx_evtfd;
|
||||
+ struct eventfd_ctx *msi_evtfd;
|
||||
int index;
|
||||
NvBool ignore_interrupts;
|
||||
|
||||
NvU32 allocated_irq[MAX_NUM_VECTORS];
|
||||
NvU32 num_ctx;
|
||||
#if defined(NV_VGPU_KVM_BUILD)
|
||||
- struct fd msix_fd[MAX_NUM_VECTORS];
|
||||
+ struct eventfd_ctx *msix_evtfd[MAX_NUM_VECTORS];
|
||||
#endif
|
||||
|
||||
} intr_info_t;
|
||||
|
||||
+
|
||||
typedef struct
|
||||
{
|
||||
NvU64 pending;
|
||||
|
||||
--- ./kernel/nvidia/nv-frontend.c
|
||||
+++ ./kernel/nvidia/nv-frontend.c
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "nv-frontend.h"
|
||||
|
||||
#if defined(MODULE_LICENSE)
|
||||
-MODULE_LICENSE("NVIDIA");
|
||||
+MODULE_LICENSE("GPL");
|
||||
#endif
|
||||
#if defined(MODULE_INFO)
|
||||
MODULE_INFO(supported, "external");
|
||||
|
||||
BIN
510.108.03.patch
Normal file
BIN
510.108.03.patch
Normal file
Binary file not shown.
BIN
510.85.03.patch
Normal file
BIN
510.85.03.patch
Normal file
Binary file not shown.
BIN
525.60.12.patch
Normal file
BIN
525.60.12.patch
Normal file
Binary file not shown.
BIN
525.85.07.patch
Normal file
BIN
525.85.07.patch
Normal file
Binary file not shown.
BIN
535.104.06.patch
Normal file
BIN
535.104.06.patch
Normal file
Binary file not shown.
BIN
535.129.03.patch
Normal file
BIN
535.129.03.patch
Normal file
Binary file not shown.
BIN
535.161.05.patch
Normal file
BIN
535.161.05.patch
Normal file
Binary file not shown.
BIN
535.183.04.patch
Normal file
BIN
535.183.04.patch
Normal file
Binary file not shown.
BIN
535.216.01.patch
Normal file
BIN
535.216.01.patch
Normal file
Binary file not shown.
BIN
535.230.02.patch
Normal file
BIN
535.230.02.patch
Normal file
Binary file not shown.
BIN
535.54.06.patch
Normal file
BIN
535.54.06.patch
Normal file
Binary file not shown.
BIN
550.127.06.patch
Normal file
BIN
550.127.06.patch
Normal file
Binary file not shown.
BIN
550.144.02.patch
Normal file
BIN
550.144.02.patch
Normal file
Binary file not shown.
BIN
550.163.02.patch
Normal file
BIN
550.163.02.patch
Normal file
Binary file not shown.
BIN
550.54.10.patch
Normal file
BIN
550.54.10.patch
Normal file
Binary file not shown.
BIN
550.54.16.patch
Normal file
BIN
550.54.16.patch
Normal file
Binary file not shown.
BIN
550.90.05.patch
Normal file
BIN
550.90.05.patch
Normal file
Binary file not shown.
BIN
570.124.03.patch
Normal file
BIN
570.124.03.patch
Normal file
Binary file not shown.
BIN
570.133.10.patch
Normal file
BIN
570.133.10.patch
Normal file
Binary file not shown.
BIN
570.148.06.patch
Normal file
BIN
570.148.06.patch
Normal file
Binary file not shown.
616
LICENSE.md
Normal file
616
LICENSE.md
Normal file
@ -0,0 +1,616 @@
|
||||
# GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
<https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this
|
||||
license document, but changing it is not allowed.
|
||||
|
||||
## Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains
|
||||
free software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing
|
||||
under this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
## TERMS AND CONDITIONS
|
||||
|
||||
### 0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds
|
||||
of works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of
|
||||
an exact copy. The resulting work is called a "modified version" of
|
||||
the earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user
|
||||
through a computer network, with no transfer of a copy, is not
|
||||
conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices" to
|
||||
the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
### 1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work for
|
||||
making modifications to it. "Object code" means any non-source form of
|
||||
a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can
|
||||
regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same
|
||||
work.
|
||||
|
||||
### 2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey,
|
||||
without conditions so long as your license otherwise remains in force.
|
||||
You may convey covered works to others for the sole purpose of having
|
||||
them make modifications exclusively for you, or provide you with
|
||||
facilities for running those works, provided that you comply with the
|
||||
terms of this License in conveying all material for which you do not
|
||||
control copyright. Those thus making or running the covered works for
|
||||
you must do so exclusively on your behalf, under your direction and
|
||||
control, on terms that prohibit them from making any copies of your
|
||||
copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the
|
||||
conditions stated below. Sublicensing is not allowed; section 10 makes
|
||||
it unnecessary.
|
||||
|
||||
### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such
|
||||
circumvention is effected by exercising rights under this License with
|
||||
respect to the covered work, and you disclaim any intention to limit
|
||||
operation or modification of the work as a means of enforcing, against
|
||||
the work's users, your or third parties' legal rights to forbid
|
||||
circumvention of technological measures.
|
||||
|
||||
### 4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
### 5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these
|
||||
conditions:
|
||||
|
||||
- a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
- b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under
|
||||
section 7. This requirement modifies the requirement in section 4
|
||||
to "keep intact all notices".
|
||||
- c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
- d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
### 6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms of
|
||||
sections 4 and 5, provided that you also convey the machine-readable
|
||||
Corresponding Source under the terms of this License, in one of these
|
||||
ways:
|
||||
|
||||
- a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
- b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the Corresponding
|
||||
Source from a network server at no charge.
|
||||
- c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
- d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
- e) Convey the object code using peer-to-peer transmission,
|
||||
provided you inform other peers where the object code and
|
||||
Corresponding Source of the work are being offered to the general
|
||||
public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal,
|
||||
family, or household purposes, or (2) anything designed or sold for
|
||||
incorporation into a dwelling. In determining whether a product is a
|
||||
consumer product, doubtful cases shall be resolved in favor of
|
||||
coverage. For a particular product received by a particular user,
|
||||
"normally used" refers to a typical or common use of that class of
|
||||
product, regardless of the status of the particular user or of the way
|
||||
in which the particular user actually uses, or expects or is expected
|
||||
to use, the product. A product is a consumer product regardless of
|
||||
whether the product has substantial commercial, industrial or
|
||||
non-consumer uses, unless such uses represent the only significant
|
||||
mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to
|
||||
install and execute modified versions of a covered work in that User
|
||||
Product from a modified version of its Corresponding Source. The
|
||||
information must suffice to ensure that the continued functioning of
|
||||
the modified object code is in no case prevented or interfered with
|
||||
solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or
|
||||
updates for a work that has been modified or installed by the
|
||||
recipient, or for the User Product in which it has been modified or
|
||||
installed. Access to a network may be denied when the modification
|
||||
itself materially and adversely affects the operation of the network
|
||||
or violates the rules and protocols for communication across the
|
||||
network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
### 7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders
|
||||
of that material) supplement the terms of this License with terms:
|
||||
|
||||
- a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
- b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
- c) Prohibiting misrepresentation of the origin of that material,
|
||||
or requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
- d) Limiting the use for publicity purposes of names of licensors
|
||||
or authors of the material; or
|
||||
- e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
- f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions
|
||||
of it) with contractual assumptions of liability to the recipient,
|
||||
for any liability that these contractual assumptions directly
|
||||
impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions; the
|
||||
above requirements apply either way.
|
||||
|
||||
### 8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license
|
||||
from a particular copyright holder is reinstated (a) provisionally,
|
||||
unless and until the copyright holder explicitly and finally
|
||||
terminates your license, and (b) permanently, if the copyright holder
|
||||
fails to notify you of the violation by some reasonable means prior to
|
||||
60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
### 9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or run
|
||||
a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
### 10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
### 11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims owned
|
||||
or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within the
|
||||
scope of its coverage, prohibits the exercise of, or is conditioned on
|
||||
the non-exercise of one or more of the rights that are specifically
|
||||
granted under this License. You may not convey a covered work if you
|
||||
are a party to an arrangement with a third party that is in the
|
||||
business of distributing software, under which you make payment to the
|
||||
third party based on the extent of your activity of conveying the
|
||||
work, and under which the third party grants, to any of the parties
|
||||
who would receive the covered work from you, a discriminatory patent
|
||||
license (a) in connection with copies of the covered work conveyed by
|
||||
you (or copies made from those copies), or (b) primarily for and in
|
||||
connection with specific products or compilations that contain the
|
||||
covered work, unless you entered into that arrangement, or that patent
|
||||
license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
### 12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under
|
||||
this License and any other pertinent obligations, then as a
|
||||
consequence you may not convey it at all. For example, if you agree to
|
||||
terms that obligate you to collect a royalty for further conveying
|
||||
from those to whom you convey the Program, the only way you could
|
||||
satisfy both those terms and this License would be to refrain entirely
|
||||
from conveying the Program.
|
||||
|
||||
### 13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your
|
||||
version supports such interaction) an opportunity to receive the
|
||||
Corresponding Source of your version by providing access to the
|
||||
Corresponding Source from a network server at no charge, through some
|
||||
standard or customary means of facilitating copying of software. This
|
||||
Corresponding Source shall include the Corresponding Source for any
|
||||
work covered by version 3 of the GNU General Public License that is
|
||||
incorporated pursuant to the following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
### 14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions
|
||||
of the GNU Affero General Public License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever
|
||||
published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions
|
||||
of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
### 15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
|
||||
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
|
||||
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
|
||||
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
|
||||
CORRECTION.
|
||||
|
||||
### 16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
|
||||
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
|
||||
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
|
||||
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
|
||||
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
|
||||
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
|
||||
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
### 17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
573
README.md
573
README.md
@ -1,15 +1,47 @@
|
||||
# NVIDIA vGPU on PVE 7.1 with a NVIDIA T1000 GPU
|
||||
# NVIDIA vGPU on Proxmox
|
||||
|
||||
This tutorial (and included patches) should allow you to use vGPU unlock on PVE 7.1 with the opt-in 5.15 Linux Kernel with a NVIDIA T1000 GPU. The GPU uses the TU117 Chip so other GPUs with the same Chip (T400, T600, GTX 1650 **NOT** Super) will probably work (no guarantees).
|
||||
|
||||
### This tutorial assumes you are using a clean install of PVE 7.1, or ymmv when using an existing installation. Make sure to always have backups!
|
||||
|
||||
This document serves as a guide to install NVIDIA vGPU host drivers on the latest Proxmox VE version, at time of writing this its pve 8.3.
|
||||
|
||||
You can follow this guide if you have a vGPU supported card from [this list](https://docs.nvidia.com/grid/gpus-supported-by-vgpu.html), or if you are using a consumer GPU from the GeForce series or a non-vGPU qualified Quadro GPU. There are several sections with a title similar to "Have a vgpu supported card? Read here"" in this document, make sure to read those very carefully as this is where the instructions differ for a vGPU qualified card and a consumer card.
|
||||
|
||||
## Supported cards
|
||||
|
||||
The following consumer/not-vGPU-qualified NVIDIA GPUs can be used with vGPU:
|
||||
- Most GPUs from the Maxwell 2.0 generation (GTX 9xx, Quadro Mxxxx, Tesla Mxx) **EXCEPT the GTX 970**
|
||||
- All GPUs from the Pascal generation (GTX 10xx, Quadro Pxxxx, Tesla Pxx)
|
||||
- All GPUs from the Turing generation (GTX 16xx, RTX 20xx, Txxxx)
|
||||
|
||||
Starting from driver version 17.0, Pascal and earlier require additional patches, see [below](#psa-for-pascal-and-older-gpus-like-the-p4-gtx-1080) for more!
|
||||
|
||||
If you have GPUs from the Ampere and Ada Lovelace generation, you are out of luck, unless you have a vGPU qualified card from [this list](https://docs.nvidia.com/grid/gpus-supported-by-vgpu.html) like the A5000 or RTX 6000 Ada. If you have one of those cards, please consult the [NVIDIA documentation](https://docs.nvidia.com/grid/15.0/grid-vgpu-user-guide/index.html) for help with setting it up.
|
||||
|
||||
> **!!! THIS MEANS THAT YOUR RTX 30XX or 40XX WILL NOT WORK !!!**
|
||||
|
||||
This guide and all my tests were done on a RTX 2080 Ti which is based on the Turing architechture.
|
||||
|
||||
## Important notes before starting
|
||||
- This tutorial assumes you are using a clean install of Proxmox VE 8.3.
|
||||
- If you are using Proxmox VE 8.3, you **MUST** use 16.x or 17.x drivers. Older versions only work with pve 7
|
||||
- If you tried GPU-passthrough before, you absolutely **MUST** revert all of the steps you did to set that up.
|
||||
- If you only have one GPU in your system with no iGPU, your local monitor will **NOT** give you any output anymore after the system boots up. Use SSH or a serial connection if you want terminal access to your machine.
|
||||
- Most of the steps can be applied to other linux distributions, however I'm only covering Proxmox VE here.
|
||||
|
||||
> ## Are you upgrading from a previous version of this guide?
|
||||
>
|
||||
> If you are upgrading from a previous version of this guide, you should uninstall the old driver by running `nvidia-uninstall` first.
|
||||
>
|
||||
> Then you also have to make sure that you are using the latest version of `vgpu_unlock-rs`, otherwise it won't work with the latest driver.
|
||||
>
|
||||
> Either delete the folder `/opt/vgpu_unlock-rs` or enter the folder and run `git pull` and then recompile the library again using `cargo build --release`
|
||||
|
||||
## Packages
|
||||
|
||||
Make sure to add the community pve repo and get rid of the enterprise repo (you can skip this step if you have a valid enterprise subscription)
|
||||
|
||||
```bash
|
||||
echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" >> /etc/apt/sources.list
|
||||
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" >> /etc/apt/sources.list
|
||||
rm /etc/apt/sources.list.d/pve-enterprise.list
|
||||
```
|
||||
|
||||
@ -19,33 +51,27 @@ apt update
|
||||
apt dist-upgrade
|
||||
```
|
||||
|
||||
PVE 7.1 comes with version 5.13 of the Linux Kernel, that version is incompatible with vGPU. For this guide you will have to install version 5.15, which will probably come with PVE 7.2 (~Q2 2022) but is opt-in on current PVE versions
|
||||
We need to install a few more packages like git, a compiler and some other tools.
|
||||
```bash
|
||||
apt install -y pve-kernel-5.15 pve-headers-5.15
|
||||
apt install -y git build-essential dkms pve-headers mdevctl
|
||||
```
|
||||
|
||||
Next we need to install a few more packages like git, a compiler and some other tools
|
||||
```bash
|
||||
apt install -y git build-essential dkms jq pve-headers mdevctl
|
||||
```
|
||||
|
||||
## Git repos and glorious [Rust](https://www.rust-lang.org/) compiler
|
||||
## Git repos and [Rust](https://www.rust-lang.org/) compiler
|
||||
|
||||
First, clone this repo to your home folder (in this case `/root/`)
|
||||
```bash
|
||||
git clone https://gitlab.com/polloloco/vgpu-5.15.git
|
||||
git clone https://gitlab.com/polloloco/vgpu-proxmox.git
|
||||
```
|
||||
|
||||
Clone two additional git repos for vGPU unlock
|
||||
You also need the vgpu_unlock-rs repo
|
||||
```bash
|
||||
cd /opt
|
||||
git clone https://github.com/DualCoder/vgpu_unlock
|
||||
git clone https://github.com/p0lloloco/vgpu_unlock-rs
|
||||
git clone https://github.com/mbilker/vgpu_unlock-rs.git
|
||||
```
|
||||
|
||||
After that, install the rust compiler
|
||||
```bash
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
|
||||
```
|
||||
|
||||
Now make the rust binaries available in your $PATH (you only have to do it the first time after installing rust)
|
||||
@ -76,40 +102,105 @@ echo -e "[Service]\nEnvironment=LD_PRELOAD=/opt/vgpu_unlock-rs/target/release/li
|
||||
echo -e "[Service]\nEnvironment=LD_PRELOAD=/opt/vgpu_unlock-rs/target/release/libvgpu_unlock_rs.so" > /etc/systemd/system/nvidia-vgpu-mgr.service.d/vgpu_unlock.conf
|
||||
```
|
||||
|
||||
> ### Have a vgpu supported card? Read here!
|
||||
>
|
||||
>> **PLEASE READ THIS**
|
||||
>>
|
||||
>> Starting from 17.0, all Pascal (and older) GPUs are **not officially supported** anymore. If you still want to use them, stay on the LTS 16.x branch.
|
||||
>>
|
||||
>> There are ways to use the 17.x driver too, but in that case you have to patch the driver even with a "supported" GPU, and go through some extra steps like copying the old vgpuConfig.xml. I might explain this in the future.
|
||||
>
|
||||
> If you don't have a supported gpu from [this list](https://docs.nvidia.com/grid/gpus-supported-by-vgpu.html), please continue reading at [Enabling IOMMU](#enabling-iommu)
|
||||
>
|
||||
> Disable the unlock part as doing this on a gpu that already supports vgpu, could break things as it introduces unnecessary complexity and more points of possible failure:
|
||||
> ```bash
|
||||
> echo "unlock = false" > /etc/vgpu_unlock/config.toml
|
||||
> ```
|
||||
|
||||
## Enabling IOMMU
|
||||
#### Note: Usually this isn't required for vGPU to work, but it doesn't hurt to enable it. You can skip this section, but if you run into problems later on, make sure to enable IOMMU.
|
||||
|
||||
Assuming you installed PVE with ZFS-on-root and efi, you are booting with systemd-boot. All other installations use grub. The following instructions *ONLY* apply to systemd-boot, grub is different.
|
||||
To enable IOMMU you have to enable it in your BIOS/UEFI first. Due to it being vendor specific, I am unable to provide instructions for that, but usually for Intel systems the option you are looking for is called something like "Vt-d", AMD systems tend to call it "IOMMU".
|
||||
|
||||
To enable IOMMU you have to enable it in your UEFI first. Due to it being vendor specific, I am unable to provide instructions for that, but usually for Intel systems the option you are looking for is called something like "Vt-d", AMD systems tend to call it "IOMMU".
|
||||
After enabling it in your BIOS/UEFI, you also have to enable it in your kernel. Depending on how your system is booting, there are two ways to do that.
|
||||
|
||||
After enabling IOMMU in your UEFI, you have to add some options to your kernel to enable it in proxmox. Edit the kernel command line like this
|
||||
```bash
|
||||
nano /etc/kernel/cmdline
|
||||
```
|
||||
If you installed your system with ZFS-on-root and in UEFI mode, then you are using systemd-boot, everything else is GRUB. GRUB is way more common so if you are unsure, you are probably using that.
|
||||
|
||||
On a clean installation the file might look similar to this:
|
||||
```
|
||||
root=ZFS=rpool/ROOT/pve-1 boot=zfs
|
||||
```
|
||||
Depending on which system you are using to boot, you have to chose from the following two options:
|
||||
|
||||
On Intel systems, append this line at the end
|
||||
```
|
||||
intel_iommu=on iommu=pt
|
||||
```
|
||||
<details>
|
||||
<summary>GRUB</summary>
|
||||
|
||||
For AMD, use this
|
||||
```
|
||||
amd_iommu=on iommu=pt
|
||||
```
|
||||
Open the file `/etc/default/grub` in your favorite editor
|
||||
```bash
|
||||
nano /etc/default/grub
|
||||
```
|
||||
|
||||
After editing the file, it should look similar to this
|
||||
```
|
||||
root=ZFS=rpool/ROOT/pve-1 boot=zfs intel_iommu=on iommu=pt
|
||||
```
|
||||
The kernel parameters have to be appended to the variable `GRUB_CMDLINE_LINUX_DEFAULT`. On a clean installation that line should look like this
|
||||
```
|
||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
|
||||
```
|
||||
|
||||
Save and exit using Ctrl+O and then Ctrl+X
|
||||
If you are using an Intel system, append this after `quiet`:
|
||||
```
|
||||
intel_iommu=on
|
||||
```
|
||||
|
||||
On AMD systems, you don't have to add anything and amd_iommu=on does not exist:
|
||||
https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html?highlight=amd_iommu
|
||||
|
||||
For either AMD or Intel there is an option incase you have heavy performance issues, but with the loss of security and stability of the system:
|
||||
```
|
||||
iommu=pt
|
||||
```
|
||||
|
||||
The result should look like this (for intel systems):
|
||||
```
|
||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
|
||||
```
|
||||
|
||||
Now, save and exit from the editor using Ctrl+O and then Ctrl+X and then apply your changes:
|
||||
```bash
|
||||
update-grub
|
||||
```
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>systemd-boot</summary>
|
||||
|
||||
The kernel parameters have to be appended to the commandline in the file `/etc/kernel/cmdline`, so open that in your favorite editor:
|
||||
```bash
|
||||
nano /etc/kernel/cmdline
|
||||
```
|
||||
|
||||
On a clean installation the file might look similar to this:
|
||||
```
|
||||
root=ZFS=rpool/ROOT/pve-1 boot=zfs
|
||||
```
|
||||
|
||||
On Intel systems, append this at the end
|
||||
```
|
||||
intel_iommu=on
|
||||
```
|
||||
|
||||
On AMD systems, you don't have to add anything and amd_iommu=on does not exist:
|
||||
https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html?highlight=amd_iommu
|
||||
|
||||
For either AMD or Intel there is an option incase you have heavy performance issues, but with the loss of security and stability of the system:
|
||||
```
|
||||
iommu=pt
|
||||
```
|
||||
|
||||
After editing the file, it should look similar to this
|
||||
```
|
||||
root=ZFS=rpool/ROOT/pve-1 boot=zfs intel_iommu=on
|
||||
```
|
||||
|
||||
Now, save and exit from the editor using Ctrl+O and then Ctrl+X and then apply your changes:
|
||||
```bash
|
||||
proxmox-boot-tool refresh
|
||||
```
|
||||
</details>
|
||||
|
||||
## Loading required kernel modules and blacklisting the open source nvidia driver
|
||||
|
||||
@ -123,11 +214,12 @@ Proxmox comes with the open source nouveau driver for nvidia gpus, however we ha
|
||||
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
|
||||
```
|
||||
|
||||
## IMPORTANT: Apply our kernel configuration
|
||||
#### Note: This only applies to systemd-boot, if you are using grub, you can't use these instructions
|
||||
## Applying our kernel configuration
|
||||
|
||||
I'm not sure if this is needed, but it doesn't hurt :)
|
||||
|
||||
```bash
|
||||
proxmox-boot-tool refresh
|
||||
update-initramfs -u -k all
|
||||
```
|
||||
|
||||
...and reboot
|
||||
@ -175,75 +267,109 @@ Depending on your mainboard and cpu, the output will be different, in my output
|
||||
|
||||
## NVIDIA Driver
|
||||
|
||||
### Choosing the right driver version
|
||||
This repo contains patches that allow you to use vGPU on not-qualified-vGPU cards (consumer GPUs). Those patches are binary patches, which means that each patch works **ONLY** for a specific driver version.
|
||||
|
||||
This is the tricky part, at the time of writing (Jan 2022), there are [three active branches](https://docs.nvidia.com/grid/) of the NVIDIA vGPU driver. The latest is branch 13 (long term support branch until mid 2024) with driver version 470. I had no luck getting *any* version of that driver to work with vGPU at all but as always - ymmv.
|
||||
I've created patches for the following driver versions:
|
||||
- 17.5 (550.144.02)
|
||||
- 17.4 (550.127.06)
|
||||
- 17.3 (550.90.05)
|
||||
- 17.1 (550.54.16)
|
||||
- 17.0 (550.54.10)
|
||||
- 16.9 (535.230.02) !!! USE THIS IF YOU ARE ON PASCAL OR OLDER !!!
|
||||
- 16.8 (535.216.01)
|
||||
- 16.7 (535.183.04)
|
||||
- 16.5 (535.161.05) the patch for this version is the same as for 16.4, the host driver wasnt changed in this release
|
||||
- 16.4 (535.161.05)
|
||||
- 16.2 (535.129.03)
|
||||
- 16.1 (535.104.06)
|
||||
- 16.0 (535.54.06)
|
||||
|
||||
Branch 12 is a "regular" production branch with support until January of 2022 and has driver version number 460. Lots of people are running that driver in combination with the Linux Kernel 5.15. I got it installed with my gpu, but as soon as I tried to use the gpu in my VM, the display would freeze every 30-ish seconds and `nvidia-vgpu-mgr.service` would report an error similar to `error: vmiop_log: (0x0): XID 43 detected on physical_chid:0x1c, guest_chid:0x14`. At first I thought I messed up some of the driver patches required to get the driver working on kernels newer than 5.11 - so I tried on PVE 6.4 without any patches (5.4 kernel) but got the same errors there. If anyone knows what's causing this error, or even how to fix it, **please** let me know :)
|
||||
Driver support by nvidia:
|
||||
- 16.x is the LTS branch, with official support until July 2026
|
||||
- 17.x has official support until February 2025
|
||||
|
||||
Ruling out those two branches only leaves the older long term support branch 11: It is supported until mid 2023 and has the driver version 450. Like the other branch (12), you have to patch some parts of the driver to get it working on the Linux Kernel 5.15. I tried every patch I could find on the Internet (mostly twelve.patch and fourteen.patch and their variations) but no combination of them allowed me to install the driver - the installer would always complain about my system being incompatible. So I spent a few hours looking at the existing patches and reviewing the files they patch to finally come up with my own patch: Basically, it adapts twelve.patch and fourteen.patch to this older driver (they seem to be designed for the branch 12 driver) and merges them into a single patch.
|
||||
> ### The following versions are EOL, don't use them unless you have a very specific reason!
|
||||
> - 15.1 (525.85.07)
|
||||
> - 15.0 (525.60.12)
|
||||
> - 14.4 (510.108.03)
|
||||
> - 14.3 (510.108.03)
|
||||
> - 14.2 (510.85.03)
|
||||
|
||||
You can choose which of those you want to use, but generally its recommended to use the latest, most up-to-date version (17.5 in this case), unless you have a pascal series GPU or older, then use the latest 16.x driver.
|
||||
|
||||
If you have a vGPU qualified GPU, you can use other versions too, because you don't need to patch the driver. However, you still have to make sure they are compatible with your proxmox version and kernel. Also I would not recommend using any older versions unless you have a very specific requirement.
|
||||
|
||||
### Obtaining the driver
|
||||
|
||||
I will be using the latest driver from branch 11 (at the time of writing that would be 11.6 / 450.156).
|
||||
|
||||
NVIDIA doesn't let you freely download vGPU drivers like they do with GeForce or normal Quadro drivers, instead you have to download them through the [NVIDIA Licensing Portal](https://nvid.nvidia.com/dashboard/) (see: [https://www.nvidia.com/en-us/drivers/vgpu-software-driver/](https://www.nvidia.com/en-us/drivers/vgpu-software-driver/)). You can sign up for a free evaluation to get access to the download page.
|
||||
|
||||
After downloading version 11.6 you should have a zip file called `NVIDIA-GRID-Linux-KVM-450.156-450.156.00-453.23.zip`, extract that and copy the file `NVIDIA-Linux-x86_64-450.156-vgpu-kvm.run` to your PVE host into the `/root/` folder
|
||||
```bash
|
||||
scp NVIDIA-Linux-x86_64-450.156-vgpu-kvm.run root@pve:/root/
|
||||
```
|
||||
NB: When applying for an eval license, do NOT use your personal email or other email at a free email provider like gmail.com. You will probably have to go through manual review if you use such emails. I have very good experience using a custom domain for my email address, that way the automatic verification usually lets me in after about five minutes.
|
||||
|
||||
I've created a small video tutorial to find the right driver version on the NVIDIA Enterprise Portal. In the video I'm downloading the 15.0 driver, if you want a different one just replace 15.0 with the version you want:
|
||||
|
||||

|
||||
|
||||
After downloading, extract the zip file and then copy the file called `NVIDIA-Linux-x86_64-DRIVERVERSION-vgpu-kvm.run` (where DRIVERVERSION is a string like `550.144.02`) from the `Host_Drivers` folder to your Proxmox host into the `/root/` folder using tools like FileZilla, WinSCP, scp or rsync.
|
||||
|
||||
### ⚠️ From here on, I will be using the 17.5 driver, but the steps are the same for other driver versions
|
||||
|
||||
For example when I run a command like `chmod +x NVIDIA-Linux-x86_64-550.144.02-vgpu-kvm.run`, you should replace `550.144.02` with the driver version you are using (if you are using a different one). You can get the list of version numbers [here](#nvidia-driver).
|
||||
|
||||
Every step where you potentially have to replace the version name will have this warning emoji next to it: ⚠️
|
||||
|
||||
> ### Have a vgpu supported card? Read here!
|
||||
>
|
||||
>> **PLEASE READ THIS**
|
||||
>>
|
||||
>> Starting from 17.0, all Pascal (and older) GPUs are **not officially supported** anymore. If you still want to use them, stay on the LTS 16.x branch.
|
||||
>>
|
||||
>> There are ways to use the 17.x driver too, but in that case you have to patch the driver even with a "supported" GPU, and go through some extra steps like copying the old vgpuConfig.xml. I might explain this in the future.
|
||||
>
|
||||
> If you have a vgpu supported gpu from [this list](https://docs.nvidia.com/grid/gpus-supported-by-vgpu.html), patching is not necessary, and you can skip this step.
|
||||
> You can simply install the driver package like this:
|
||||
>
|
||||
> ⚠️
|
||||
> ```bash
|
||||
> chmod +x NVIDIA-Linux-x86_64-550.144.02-vgpu-kvm.run
|
||||
> ./NVIDIA-Linux-x86_64-550.144.02-vgpu-kvm.run --dkms -m=kernel
|
||||
> ```
|
||||
>
|
||||
> To finish the installation, reboot the system
|
||||
> ```bash
|
||||
> reboot
|
||||
> ```
|
||||
>
|
||||
> Now, skip the following two sections and continue at [Finishing touches](#finishing-touches)
|
||||
|
||||
### Patching the driver
|
||||
|
||||
Now, on the proxmox host, make the driver executable
|
||||
|
||||
⚠️
|
||||
```bash
|
||||
chmod +x NVIDIA-Linux-x86_64-450.156-vgpu-kvm.run
|
||||
chmod +x NVIDIA-Linux-x86_64-550.144.02-vgpu-kvm.run
|
||||
```
|
||||
|
||||
And then unpack it
|
||||
And then patch it
|
||||
|
||||
⚠️
|
||||
```bash
|
||||
./NVIDIA-Linux-x86_64-450.156-vgpu-kvm.run -x
|
||||
./NVIDIA-Linux-x86_64-550.144.02-vgpu-kvm.run --apply-patch ~/vgpu-proxmox/550.144.02.patch
|
||||
```
|
||||
That should output a lot of lines ending with
|
||||
```
|
||||
Self-extractible archive "NVIDIA-Linux-x86_64-550.144.02-vgpu-kvm-custom.run" successfully created.
|
||||
```
|
||||
|
||||
Go inside the extracted folder
|
||||
```bash
|
||||
cd NVIDIA-Linux-x86_64-450.156-vgpu-kvm/
|
||||
```
|
||||
|
||||
To be able to install the driver on your proxmox host, apply the driver patch
|
||||
```bash
|
||||
patch -p0 < ~/vgpu-5.15/450_5.15.patch
|
||||
```
|
||||
|
||||
If everything went right (and you are using the exact same nvidia driver version 11.6), the output should be exactly this
|
||||
```
|
||||
patching file ./kernel/Kbuild
|
||||
patching file ./kernel/conftest.sh
|
||||
patching file ./kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c
|
||||
patching file ./kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.h
|
||||
patching file ./kernel/nvidia/nv-frontend.c
|
||||
```
|
||||
|
||||
There is a second patch you need to apply.
|
||||
|
||||
#### Warning: If you followed every step of this tutorial it should be safe to just apply it, but if you did anything different than I, you should check if the paths in the patch are valid for you.
|
||||
|
||||
```bash
|
||||
patch -p0 < ~/vgpu-5.15/unlock.patch
|
||||
```
|
||||
|
||||
The output should be exactly this
|
||||
```
|
||||
patching file ./kernel/nvidia/nvidia.Kbuild
|
||||
patching file ./kernel/nvidia/os-interface.c
|
||||
```
|
||||
You should now have a file called `NVIDIA-Linux-x86_64-550.144.02-vgpu-kvm-custom.run`, that is your patched driver.
|
||||
|
||||
### Installing the driver
|
||||
|
||||
Now that all the required patches are applied, you can install the driver
|
||||
Now that the required patch is applied, you can install the driver
|
||||
|
||||
⚠️
|
||||
```bash
|
||||
./nvidia-installer --dkms
|
||||
./NVIDIA-Linux-x86_64-550.144.02-vgpu-kvm-custom.run --dkms -m=kernel
|
||||
```
|
||||
|
||||
The installer will ask you `Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later.`, answer with `Yes`.
|
||||
@ -252,7 +378,7 @@ Depending on your hardware, the installation could take a minute or two.
|
||||
|
||||
If everything went right, you will be presented with this message.
|
||||
```
|
||||
Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 450.156) is now complete.
|
||||
Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 550.144.02) is now complete.
|
||||
```
|
||||
|
||||
Click `Ok` to exit the installer.
|
||||
@ -271,16 +397,16 @@ nvidia-smi
|
||||
|
||||
You should get an output similar to this one
|
||||
```
|
||||
Mon Jan 3 20:41:15 2022
|
||||
Tue Jan 24 20:21:28 2023
|
||||
+-----------------------------------------------------------------------------+
|
||||
| NVIDIA-SMI 450.156 Driver Version: 450.156 CUDA Version: N/A |
|
||||
| NVIDIA-SMI 525.85.07 Driver Version: 525.85.07 CUDA Version: N/A |
|
||||
|-------------------------------+----------------------+----------------------+
|
||||
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
|
||||
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|
||||
| | | MIG M. |
|
||||
|===============================+======================+======================|
|
||||
| 0 T1000 On | 00000000:01:00.0 Off | N/A |
|
||||
| 32% 39C P8 N/A / 50W | 30MiB / 4095MiB | 0% Default |
|
||||
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A |
|
||||
| 26% 33C P8 43W / 260W | 85MiB / 11264MiB | 0% Default |
|
||||
| | | N/A |
|
||||
+-------------------------------+----------------------+----------------------+
|
||||
|
||||
@ -321,40 +447,224 @@ The output will be similar to this
|
||||
|
||||
If this command doesn't return any output, vGPU unlock isn't working.
|
||||
|
||||
### Bonus: working `nvidia-smi vgpu` command
|
||||
|
||||
I've included an adapted version of the `nvidia-smi` [wrapper script](https://github.com/erin-allison/nvidia-merged-arch/blob/d2ce752cd38461b53b7e017612410a3348aa86e5/nvidia-smi) to get useful output from `nvidia-smi vgpu`.
|
||||
|
||||
Without that wrapper script, running `nvidia-smi vgpu` in your shell results in this output
|
||||
```
|
||||
No supported devices in vGPU mode
|
||||
```
|
||||
|
||||
With the wrapper script, the output looks similar to this
|
||||
```
|
||||
Mon Jan 3 20:54:35 2022
|
||||
+-----------------------------------------------------------------------------+
|
||||
| NVIDIA-SMI 450.156 Driver Version: 450.156 |
|
||||
|---------------------------------+------------------------------+------------+
|
||||
| GPU Name | Bus-Id | GPU-Util |
|
||||
| vGPU ID Name | VM ID VM Name | vGPU-Util |
|
||||
|=================================+==============================+============|
|
||||
| 0 T1000 | 00000000:01:00.0 | 0% |
|
||||
+---------------------------------+------------------------------+------------+
|
||||
```
|
||||
|
||||
To install this script, copy the `nvidia-smi` file from this repo to `/usr/local/bin` and make it executable
|
||||
```bash
|
||||
cp ~/vgpu-5.15/nvidia-smi /usr/local/bin/
|
||||
chmod +x /usr/local/bin/nvidia-smi
|
||||
```
|
||||
|
||||
Run this in your shell (you might have to logout and back in first) to see if it worked
|
||||
Another command you can try to see if your card is recognized as being vgpu enabled is this one:
|
||||
```bash
|
||||
nvidia-smi vgpu
|
||||
```
|
||||
|
||||
## Credits
|
||||
If everything worked right with the unlock, the output should be similar to this:
|
||||
```
|
||||
Tue Jan 24 20:21:43 2023
|
||||
+-----------------------------------------------------------------------------+
|
||||
| NVIDIA-SMI 525.85.07 Driver Version: 525.85.07 |
|
||||
|---------------------------------+------------------------------+------------+
|
||||
| GPU Name | Bus-Id | GPU-Util |
|
||||
| vGPU ID Name | VM ID VM Name | vGPU-Util |
|
||||
|=================================+==============================+============|
|
||||
| 0 NVIDIA GeForce RTX 208... | 00000000:01:00.0 | 0% |
|
||||
+---------------------------------+------------------------------+------------+
|
||||
```
|
||||
|
||||
However, if you get this output, then something went wrong
|
||||
```
|
||||
No supported devices in vGPU mode
|
||||
```
|
||||
|
||||
If any of those commands give the wrong output, you cannot continue. Please make sure to read everything here very carefully and when in doubt, create an issue or join the [discord server](#support) and ask for help there.
|
||||
|
||||
## vGPU overrides
|
||||
|
||||
Further up we have created the file `/etc/vgpu_unlock/profile_override.toml` and I didn't explain what it was for yet. Using that file you can override lots of parameters for your vGPU instances: For example you can change the maximum resolution, enable/disable the frame rate limiter, enable/disable support for CUDA or change the vram size of your virtual gpus.
|
||||
|
||||
If we take a look at the output of `mdevctl types` we see lots of different types that we can choose from. However, if we for example chose `GRID RTX6000-4Q` which gives us 4GB of vram in a VM, we are locked to that type for all of our VMs. Meaning we can only have 4GB VMs, its not possible to mix different types to have one 4GB VM, and two 2GB VMs.
|
||||
|
||||
> ### Important notes
|
||||
>
|
||||
> Q profiles *can* give you horrible performance in OpenGL applications/games (if you have a consumer GPU). To fix that, either add `vgpu_type = "NVS"` to your profile overrides (see below), or switch to an equivalent A or B profile (for example `GRID RTX6000-4B`)
|
||||
>
|
||||
> C profiles dont exist anymore, just use Q profiles. ~~C profiles (for example `GRID RTX6000-4C`) only work on Linux, don't try using those on Windows, it will not work - at all.~~
|
||||
>
|
||||
> A profiles (for example `GRID RTX6000-4A`) will NOT work on Linux, they only work on Windows.
|
||||
|
||||
All of that changes with the override config file. Technically we are still locked to only using one profile, but now its possible to change the vram of the profile on a VM basis so even though we have three `GRID RTX6000-4Q` instances, one VM can have 4GB or vram but we can override the vram size for the other two VMs to only 2GB.
|
||||
|
||||
Lets take a look at this example config override file (its in TOML format)
|
||||
```toml
|
||||
[profile.nvidia-259]
|
||||
num_displays = 1 # Max number of virtual displays. Usually 1 if you want a simple remote gaming VM
|
||||
display_width = 1920 # Maximum display width in the VM
|
||||
display_height = 1080 # Maximum display height in the VM
|
||||
max_pixels = 2073600 # This is the product of display_width and display_height so 1920 * 1080 = 2073600
|
||||
cuda_enabled = 1 # Enables CUDA support. Either 1 or 0 for enabled/disabled
|
||||
frl_enabled = 1 # This controls the frame rate limiter, if you enable it your fps in the VM get locked to 60fps. Either 1 or 0 for enabled/disabled
|
||||
framebuffer = 0x74000000
|
||||
framebuffer_reservation = 0xC000000 # In combination with the framebuffer size
|
||||
# above, these two lines will give you a VM
|
||||
# with 2GB of VRAM (framebuffer + framebuffer_reservation = VRAM size in bytes).
|
||||
# See below for some other sizes
|
||||
|
||||
[vm.100]
|
||||
frl_enabled = 0
|
||||
# You can override all the options from above here too. If you want to add more overrides for a new VM, just copy this block and change the VM ID
|
||||
```
|
||||
|
||||
There are two blocks here, the first being `[profile.nvidia-259]` and the second `[vm.100]`.
|
||||
The first one applies the overrides to all VM instances of the `nvidia-259` type (thats `GRID RTX6000-4Q`) and the second one applies its overrides only to one specific VM, that one with the proxmox VM ID `100`.
|
||||
|
||||
The proxmox VM ID is the same number that you see in the proxmox webinterface, next to the VM name.
|
||||
|
||||
You don't have to specify all parameters, only the ones you need/want. There are some more that I didn't mention here, you can find them by going through the source code of the `vgpu_unlock-rs` repo.
|
||||
|
||||
For a simple 1080p remote gaming VM I recommend going with something like this
|
||||
```toml
|
||||
[profile.nvidia-259] # choose the profile you want here
|
||||
num_displays = 1
|
||||
display_width = 1920
|
||||
display_height = 1080
|
||||
max_pixels = 2073600
|
||||
```
|
||||
|
||||
### Common VRAM sizes
|
||||
|
||||
Here are some common framebuffer sizes that you might want to use:
|
||||
|
||||
- 512MB:
|
||||
```toml
|
||||
framebuffer = 0x1A000000
|
||||
framebuffer_reservation = 0x6000000
|
||||
```
|
||||
- 1GB:
|
||||
```toml
|
||||
framebuffer = 0x38000000
|
||||
framebuffer_reservation = 0x8000000
|
||||
```
|
||||
- 2GB:
|
||||
```toml
|
||||
framebuffer = 0x74000000
|
||||
framebuffer_reservation = 0xC000000
|
||||
```
|
||||
- 3GB:
|
||||
```toml
|
||||
framebuffer = 0xB0000000
|
||||
framebuffer_reservation = 0x10000000
|
||||
```
|
||||
- 4GB:
|
||||
```toml
|
||||
framebuffer = 0xEC000000
|
||||
framebuffer_reservation = 0x14000000
|
||||
```
|
||||
- 5GB:
|
||||
```toml
|
||||
framebuffer = 0x128000000
|
||||
framebuffer_reservation = 0x18000000
|
||||
```
|
||||
- 6GB:
|
||||
```toml
|
||||
framebuffer = 0x164000000
|
||||
framebuffer_reservation = 0x1C000000
|
||||
```
|
||||
- 8GB:
|
||||
```toml
|
||||
framebuffer = 0x1DC000000
|
||||
framebuffer_reservation = 0x24000000
|
||||
```
|
||||
- 10GB:
|
||||
```toml
|
||||
framebuffer = 0x254000000
|
||||
framebuffer_reservation = 0x2C000000
|
||||
```
|
||||
- 12GB:
|
||||
```toml
|
||||
framebuffer = 0x2CC000000
|
||||
framebuffer_reservation = 0x34000000
|
||||
```
|
||||
- 16GB:
|
||||
```toml
|
||||
framebuffer = 0x3BC000000
|
||||
framebuffer_reservation = 0x44000000
|
||||
```
|
||||
- 20GB:
|
||||
```toml
|
||||
framebuffer = 0x4AC000000
|
||||
framebuffer_reservation = 0x54000000
|
||||
```
|
||||
- 24GB:
|
||||
```toml
|
||||
framebuffer = 0x59C000000
|
||||
framebuffer_reservation = 0x64000000
|
||||
```
|
||||
- 32GB:
|
||||
```toml
|
||||
framebuffer = 0x77C000000
|
||||
framebuffer_reservation = 0x84000000
|
||||
```
|
||||
- 48GB:
|
||||
```toml
|
||||
framebuffer = 0xB2D200000
|
||||
framebuffer_reservation = 0xD2E00000
|
||||
```
|
||||
|
||||
`framebuffer` and `framebuffer_reservation` will always equal the VRAM size in bytes when added together.
|
||||
|
||||
## Adding a vGPU to a Proxmox VM
|
||||
|
||||
Go to the proxmox webinterface, go to your VM, then to `Hardware`, then to `Add` and select `PCI Device`.
|
||||
You should be able to choose from a list of pci devices. Choose your GPU there, its entry should say `Yes` in the `Mediated Devices` column.
|
||||
|
||||
Now you should be able to also select the `MDev Type`. Choose whatever profile you want, if you don't remember which one you want, you can see the list of all available types with `mdevctl types`.
|
||||
|
||||
Finish by clicking `Add`, start the VM and install the required drivers. After installing the drivers you can shut the VM down and remove the virtual display adapter by selecting `Display` in the `Hardware` section and selecting `none (none)`. ONLY do that if you have some other way to access the Virtual Machine like Parsec or Remote Desktop because the Proxmox Console won't work anymore.
|
||||
|
||||
Enjoy your new vGPU VM :)
|
||||
|
||||
## Licensing
|
||||
|
||||
Usually a license is required to use vGPU, but luckily the community found several ways around that. Spoofing the vGPU instance to a Quadro GPU used to be very popular, but I don't recommend it anymore. I've also removed the related sections from this guide. If you still want it for whatever reason, you can go back in the commit history to find the instructions on how to use that.
|
||||
|
||||
The recommended way to get around the license is to set up your own license server. Follow the instructions [here](https://git.collinwebdesigns.de/oscar.krause/fastapi-dls) (or [here](https://gitea.publichub.eu/oscar.krause/fastapi-dls) if the other link is down).
|
||||
|
||||
## PSA for Pascal (and older) GPUs like the P4, GTX 1080...
|
||||
|
||||
Starting from driver version 17.0, nvidia in their infinite wisdom dropped support for older cards, so now no matter if the card used to be supported (Tesla P4 etc) or not, you have to patch the driver.
|
||||
|
||||
**In addition to that** you have to copy the vgpuConfig.xml from 16.x and replace the new 17.x xml. To do that, you install and patch the 17.x driver as described above, and then extract the 16.x driver with `./driver.run -x`, and copy the `vgpuConfig.xml` from inside the extracted archive to `/usr/share/nvidia/vgpu/vgpuConfig.xml` (replace the existing file). Then reboot and you should see vgpu profiles in mdevctl again.
|
||||
|
||||
## Common problems
|
||||
|
||||
Most problems can be solved by reading the instructions very carefully. For some very common problems, read here:
|
||||
|
||||
- The nvidia driver won't install/load
|
||||
- If you were using gpu passthrough before, revert **ALL** of the steps you did or start with a fresh proxmox installation. If you run `lspci -knnd 10de:` and see `vfio-pci` under `Kernel driver in use:` then you have to fix that
|
||||
- Make sure that you are using a supported kernel version (check `uname -a`)
|
||||
- My OpenGL performance is absolute garbage, what can I do?
|
||||
- Read [here](#important-notes)
|
||||
- `mdevctl types` doesn't output anything, how to fix it?
|
||||
- Make sure that you don't have unlock disabled if you have a consumer gpu ([more information](#have-a-vgpu-supported-card-read-here))
|
||||
- vGPU doesn't work on my RTX 3080! What to do?
|
||||
- [Learn to read](#your-rtx-30xx-or-40xx-will-not-work-at-this-point-in-time)
|
||||
- Make sure that you don't have any dummy plugs connected to the GPU ports, they may cause problems as [reported by a user from the vgpu discord](https://discord.com/channels/829786927829745685/1182258311014400040/1187339682082721822)
|
||||
|
||||
## Support
|
||||
|
||||
If something isn't working, please create an issue or join the [Discord server](https://discord.gg/5rQsSV3Byq) and ask for help in the `#proxmox-support` channel so that the community can help you.
|
||||
|
||||
> ### DO NOT SEND ME A DM, I'M NOT YOUR PERSONAL SUPPORT
|
||||
|
||||
When asking for help, please describe your problem in detail instead of just saying "vgpu doesn't work". Usually a rough overview over your system (gpu, mainboard, proxmox version, kernel version, ...) and full output of `dmesg` and/or `journalctl --no-pager -b 0 -u nvidia-vgpu-mgr.service` (<-- this only after starting the VM that causes trouble) is helpful.
|
||||
Please also provide the output of `uname -a` and `cat /proc/cmdline`
|
||||
|
||||
## Feed my coffee addiction ☕
|
||||
|
||||
If you found this guide helpful and want to support me, please feel free to [buy me a coffee](https://www.buymeacoffee.com/polloloco). Thank you very much!
|
||||
|
||||
Alternatively, you can donate anonymously via Monero XMR to my wallet:
|
||||
|
||||

|
||||
```
|
||||
87GCYs8gAPUCt5PQYjk7FjGiLB44KYvM2aaFHB9U7syBPjnhRq4WVnF8F5xtvKzSp6Fp1HFrH94cC4FXP59G44pv6NueKwL
|
||||
```
|
||||
|
||||
## Further reading
|
||||
|
||||
Thanks to all these people (in no particular order) for making this project possible
|
||||
- [DualCoder](https://github.com/DualCoder) for his original [vgpu_unlock](https://github.com/DualCoder/vgpu_unlock) repo with the kernel hooks
|
||||
@ -364,13 +674,14 @@ Thanks to all these people (in no particular order) for making this project poss
|
||||
- [rupansh](https://github.com/rupansh) for the original [twelve.patch](https://github.com/rupansh/vgpu_unlock_5.12/blob/master/twelve.patch) to patch the driver on kernels >= 5.12
|
||||
- mbuchel#1878 on the [GPU Unlocking discord](https://discord.gg/5rQsSV3Byq) for [fourteen.patch](https://gist.github.com/erin-allison/5f8acc33fa1ac2e4c0f77fdc5d0a3ed1) to patch the driver on kernels >= 5.14
|
||||
- [erin-allison](https://github.com/erin-allison) for the [nvidia-smi wrapper script](https://github.com/erin-allison/nvidia-merged-arch/blob/d2ce752cd38461b53b7e017612410a3348aa86e5/nvidia-smi)
|
||||
- LIL'pingu#9069 on the [GPU Unlocking discord](https://discord.gg/5rQsSV3Byq) for his patch to nop out code that NVIDIA added to prevent usage of drivers with a version 460 - 470 with consumer cards
|
||||
- [GreenDam](https://gitlab.com/GreenDamTan) for the Linux Kernel 6.8 support for 16.5 and 17.1 drivers (see [merge request](https://gitlab.com/polloloco/vgpu-proxmox/-/merge_requests/9))
|
||||
|
||||
If I forgot to mention someone, please create an issue or let me know otherwise.
|
||||
|
||||
## TODO (soon tm)
|
||||
|
||||
- Add basic profile_override.toml config
|
||||
- Add proxmox VM installation guide
|
||||
|
||||
## Contributing
|
||||
Pull requests are welcome (factual errors, amendments, grammar/spelling mistakes etc).
|
||||
Pull requests are welcome (factual errors, amendments, grammar/spelling mistakes etc).
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under [AGPL-3.0-or-later](LICENSE.md)
|
||||
|
||||
BIN
downloading_driver.mp4
Normal file
BIN
downloading_driver.mp4
Normal file
Binary file not shown.
12
nvidia-smi
12
nvidia-smi
@ -1,12 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
for a in $*
|
||||
do
|
||||
case $a in
|
||||
vgpu)
|
||||
export LD_PRELOAD="/opt/vgpu_unlock-rs/target/release/libvgpu_unlock_rs.so"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
exec /usr/bin/nvidia-smi $@
|
||||
703
qr.svg
Normal file
703
qr.svg
Normal file
@ -0,0 +1,703 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- Created with qrencode 4.1.1 (https://fukuchi.org/works/qrencode/index.html) -->
|
||||
<svg width="4.76cm" height="4.76cm" viewBox="0 0 45 45" preserveAspectRatio="none" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="QRcode">
|
||||
<rect x="0" y="0" width="45" height="45" fill="#ffffff"/>
|
||||
<g id="Pattern" transform="translate(4,4)">
|
||||
<rect x="0" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="0" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="1" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="2" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="3" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="4" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="5" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="6" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="7" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="8" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="9" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="10" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="11" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="12" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="13" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="14" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="15" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="16" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="17" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="18" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="19" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="20" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="21" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="22" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="23" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="24" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="25" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="26" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="27" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="7" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="28" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="29" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="30" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="23" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="31" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="32" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="10" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="17" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="33" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="33" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="9" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="12" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="14" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="34" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="11" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="16" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="18" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="19" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="27" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="28" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="31" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="32" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="35" width="1" height="1" fill="#000000"/>
|
||||
<rect x="0" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="1" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="2" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="3" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="4" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="5" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="6" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="8" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="13" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="15" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="20" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="21" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="22" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="24" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="25" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="26" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="29" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="30" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="34" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="35" y="36" width="1" height="1" fill="#000000"/>
|
||||
<rect x="36" y="36" width="1" height="1" fill="#000000"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 41 KiB |
17
unlock.patch
17
unlock.patch
@ -1,17 +0,0 @@
|
||||
--- ./kernel/nvidia/nvidia.Kbuild
|
||||
+++ ./kernel/nvidia/nvidia.Kbuild
|
||||
@@ -203,3 +203,4 @@ NV_CONFTEST_GENERIC_COMPILE_TESTS += get_user_pages_remote
|
||||
NV_CONFTEST_GENERIC_COMPILE_TESTS += pm_runtime_available
|
||||
NV_CONFTEST_GENERIC_COMPILE_TESTS += vm_fault_t
|
||||
NV_CONFTEST_GENERIC_COMPILE_TESTS += pci_class_multimedia_hd_audio
|
||||
+ldflags-y += -T /opt/vgpu_unlock/kern.ld
|
||||
|
||||
--- ./kernel/nvidia/os-interface.c
|
||||
+++ ./kernel/nvidia/os-interface.c
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "nv-time.h"
|
||||
|
||||
-
|
||||
+#include "/opt/vgpu_unlock/vgpu_unlock_hooks.c"
|
||||
|
||||
Reference in New Issue
Block a user