Skip to content
Permalink
Browse files

[kvmfr] added the ability to obtain a dmabuf of the ivshmem memory

This is to enable the ability to use dri3 to create dmabuf backed
pixmaps directly.
  • Loading branch information
gnif committed Jan 13, 2020
1 parent 6aeafc6 commit 788f88575932b9c5359d772c85b9fefe1f2d80e9
Showing with 428 additions and 32 deletions.
  1. +1 −1 VERSION
  2. +8 −2 module/Makefile
  3. +367 −29 module/kvmfr.c
  4. +52 −0 module/test.c
@@ -1 +1 @@
B1-85-g1aadf91901+1
B1-86-g6aeafc6651+1
@@ -3,14 +3,20 @@ USER := $(shell whoami)
KVER ?= $(shell uname -r)
KDIR ?= /lib/modules/$(KVER)/build

all:
all: test
make -C $(KDIR) M=$(PWD) modules

clean:
make -C $(KDIR) M=$(PWD) clean

test: all
test:
gcc test.c -Wall -Werror -g -Og -o test

load: all
grep -q '^uio' /proc/modules || sudo modprobe uio
grep -q '^kvmfr' /proc/modules && sudo rmmod kvmfr || true
sudo insmod ./kvmfr.ko
sudo chown $(USER) /dev/uio0
sudo chown $(USER) /dev/kvmfr0

.PHONY: test

0 comments on commit 788f885

Please sign in to comment.
You can’t perform that action at this time.