diff mbox

[1/2] userfault: add pid into uffd_msg

Message ID 1489850003-5652-2-git-send-email-a.perevalov@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alexey Perevalov March 18, 2017, 3:13 p.m. UTC
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
---
 linux-headers/linux/userfaultfd.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Dr. David Alan Gilbert April 4, 2017, 5:57 p.m. UTC | #1
* Alexey Perevalov (a.perevalov@samsung.com) wrote:
> Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
> ---
>  linux-headers/linux/userfaultfd.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/linux-headers/linux/userfaultfd.h b/linux-headers/linux/userfaultfd.h
> index 2ed5dc3..7b299a2 100644
> --- a/linux-headers/linux/userfaultfd.h
> +++ b/linux-headers/linux/userfaultfd.h
> @@ -77,6 +77,7 @@ struct uffd_msg {
>  		struct {
>  			__u64	flags;
>  			__u64	address;
> +			pid_t   pid;
>  		} pagefault;

Yes, but we'll just rerun the sync of the headers once your change
lands in the kernel.

Dave

>  		struct {
> -- 
> 1.8.3.1
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
Alexey Perevalov April 5, 2017, 2:25 p.m. UTC | #2
On 04/04/2017 08:57 PM, Dr. David Alan Gilbert wrote:
> * Alexey Perevalov (a.perevalov@samsung.com) wrote:
>> Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
>> ---
>>   linux-headers/linux/userfaultfd.h | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/linux-headers/linux/userfaultfd.h b/linux-headers/linux/userfaultfd.h
>> index 2ed5dc3..7b299a2 100644
>> --- a/linux-headers/linux/userfaultfd.h
>> +++ b/linux-headers/linux/userfaultfd.h
>> @@ -77,6 +77,7 @@ struct uffd_msg {
>>   		struct {
>>   			__u64	flags;
>>   			__u64	address;
>> +			pid_t   pid;
>>   		} pagefault;
> Yes, but we'll just rerun the sync of the headers once your change
> lands in the kernel.
Like commit "update Linux headers to 4.6"? But I saw additional commit 
e.g. your.
Anyway, ok.

>
> Dave
>
>>   		struct {
>> -- 
>> 1.8.3.1
>>
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
>
>
>
Dr. David Alan Gilbert April 5, 2017, 2:30 p.m. UTC | #3
* Alexey Perevalov (a.perevalov@samsung.com) wrote:
> On 04/04/2017 08:57 PM, Dr. David Alan Gilbert wrote:
> > * Alexey Perevalov (a.perevalov@samsung.com) wrote:
> > > Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
> > > ---
> > >   linux-headers/linux/userfaultfd.h | 1 +
> > >   1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/linux-headers/linux/userfaultfd.h b/linux-headers/linux/userfaultfd.h
> > > index 2ed5dc3..7b299a2 100644
> > > --- a/linux-headers/linux/userfaultfd.h
> > > +++ b/linux-headers/linux/userfaultfd.h
> > > @@ -77,6 +77,7 @@ struct uffd_msg {
> > >   		struct {
> > >   			__u64	flags;
> > >   			__u64	address;
> > > +			pid_t   pid;
> > >   		} pagefault;
> > Yes, but we'll just rerun the sync of the headers once your change
> > lands in the kernel.
> Like commit "update Linux headers to 4.6"? But I saw additional commit e.g.
> your.
> Anyway, ok.

Right but mine eventually got dropped when an 'update Linux headers...' patch
caught up.

Dave

> > 
> > Dave
> > 
> > >   		struct {
> > > -- 
> > > 1.8.3.1
> > > 
> > --
> > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
> > 
> > 
> > 
> 
> 
> -- 
> Best regards,
> Alexey Perevalov
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
diff mbox

Patch

diff --git a/linux-headers/linux/userfaultfd.h b/linux-headers/linux/userfaultfd.h
index 2ed5dc3..7b299a2 100644
--- a/linux-headers/linux/userfaultfd.h
+++ b/linux-headers/linux/userfaultfd.h
@@ -77,6 +77,7 @@  struct uffd_msg {
 		struct {
 			__u64	flags;
 			__u64	address;
+			pid_t   pid;
 		} pagefault;
 
 		struct {