Hey again,
I also see that when I try open the device after insmod and mknnodev by:
  int device_fd = open("/dev/lkmc_pci",O_RDWR);
fails due to permission issue, I tried to chmod it from the device but it does 
not work as well.
What is the proper way to add access permission for the device from the user 
code?
BR,
     Shaked Matzner
From: Shaked Matzner
Sent: Wednesday, November 4, 2020 7:06 PM
To: qemu-devel@nongnu.org
Subject: executing user code to test qemu driver

Hey all,
So I've created a small test to check ioctl calls of my pci with dma driver, 
under a shared directory (which is mounted to the qemu-x86-64 instance).
I've just tried to compile it with gcc (gcc test_dma.c -o test_dma_exec)
I've tried to execute it from the qemu but it said it could not found the file, 
also I wonder how does it recognize my kernel and devices),
How should I compile it and run the code?
BR,
     Shaked Matzner


The contents of this email message and any attachments are intended solely for 
the addressee(s) and may contain confidential and/or privileged information and 
may be legally protected from disclosure. If you are not the intended recipient 
of this message or their agent, or if this message has been addressed to you in 
error, please immediately alert the sender by reply email and then delete this 
message and any attachments. If you are not the intended recipient, you are 
hereby notified that any use, dissemination, copying, or storage of this 
message or its attachments is strictly prohibited.

Reply via email to