mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
Add a back-end char driver to implement a virtio console driver which handles a part of virtio mmio protocol to send and receive data from a peer VM. IVC queue and mempool are used for this communication. Also, this driver adds blocking read, write and poll ops for an user-space application. JIRA TSSKERNEL-1 Bug 4050146 This change also cherry-picks the fix pushed in linux-nvidia repo: https://git-master.nvidia.com/r/c/linux-nvidia/+/2918779 Change-Id: I97a88f1dd4eb9e3ac7e1e94439f3ebc8ac933239 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2898234 (cherry picked from commit 10436d9d5bfbbf11ffc63771189b57fdf94e50f6) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2936644 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
19 lines
709 B
Makefile
19 lines
709 B
Makefile
# Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
# under the terms and conditions of the GNU General Public License,
|
|
# version 2, as published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
# more details.
|
|
|
|
# Nvidia Virtio console PoC driver.
|
|
|
|
ifeq ($(shell expr $(VERSION) \> 4), 1)
|
|
ccflags-y += -Werror
|
|
EXTRA_CFLAGS += -I$(srctree.nvidia-oot)/drivers/virt/tegra/
|
|
obj-m := nv-virtio-console-poc.o
|
|
endif
|