Re: Netlink socket returns NULL in vmx.c kernel file

2019-11-07 Thread 울라 이르판
Thank you very much. I am trying to rewrite the code. and fix these issues. On Tue, Nov 5, 2019 at 7:43 PM Valdis Klētnieks wrote: > On Tue, 05 Nov 2019 17:59:43 +0900, Irfan Ullah said: > > > Thank you for the response. > > Attached are the files for kernel-user spaces communication. > > >

Re: Netlink socket returns NULL in vmx.c kernel file

2019-11-05 Thread Valdis Klētnieks
On Tue, 05 Nov 2019 17:59:43 +0900, Irfan Ullah said: > Thank you for the response. > Attached are the files for kernel-user spaces communication. > //when I remove this wait the code does not work > msleep(3000); If your code doesn't work, but sticking in random

Re: Netlink socket returns NULL in vmx.c kernel file

2019-11-05 Thread 울라 이르판
Thank you for the response. Attached are the files for kernel-user spaces communication. On Tue, Nov 5, 2019 at 4:22 PM Greg KH wrote: > On Tue, Nov 05, 2019 at 12:29:56PM +0900, Irfan Ullah (울라 이르판) wrote: > > I have tested code from different aspects. I have searched a lot in two > > weeks,

Re: Netlink socket returns NULL in vmx.c kernel file

2019-11-04 Thread Greg KH
On Tue, Nov 05, 2019 at 12:29:56PM +0900, Irfan Ullah (울라 이르판) wrote: > I have tested code from different aspects. I have searched a lot in two > weeks, but still I am facing the same problem. Can you please check out > what is the problem with my code. Code is in the attached zipped file. Random

Re: Netlink socket returns NULL in vmx.c kernel file

2019-11-04 Thread 울라 이르판
I have tested code from different aspects. I have searched a lot in two weeks, but still I am facing the same problem. Can you please check out what is the problem with my code. Code is in the attached zipped file. Thank you very much. On Wed, Oct 23, 2019 at 2:38 PM Valdis Klētnieks wrote: >

Re: Netlink socket returns NULL in vmx.c kernel file

2019-10-22 Thread Valdis Klētnieks
On Wed, 23 Oct 2019 11:43:22 +0900, Irfan Ullah said: > Can you please what's the problem? To be brutally honest, your code is too unreadable to figure out what the problem is. First off, fix your code formatting to match Linux kernel indenting. Second, there's a lot of code in your .h file

Netlink socket returns NULL in vmx.c kernel file

2019-10-22 Thread 울라 이르판
Dear All, I am posting again the same problem that is "Netlink socket creation returns NULL" when I try to create it in handle_ept_violation() in the vmx.c file. Actually, I am trying to use netlink to send information (i.e., guest physical address) from kernel space to user space. The netlink