[Qemu-devel] [PATCH 1/2] userfault: add pid into uffd_msg

Alexey Perevalov posted 2 patches 8 years, 10 months ago
[Qemu-devel] [PATCH 1/2] userfault: add pid into uffd_msg
Posted by Alexey Perevalov 8 years, 10 months ago
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;
 
 		struct {
-- 
1.8.3.1


Re: [Qemu-devel] [PATCH 1/2] userfault: add pid into uffd_msg
Posted by Dr. David Alan Gilbert 8 years, 10 months ago
* 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

Re: [Qemu-devel] [PATCH 1/2] userfault: add pid into uffd_msg
Posted by Alexey Perevalov 8 years, 10 months ago
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
>
>
>


-- 
Best regards,
Alexey Perevalov

Re: [Qemu-devel] [PATCH 1/2] userfault: add pid into uffd_msg
Posted by Dr. David Alan Gilbert 8 years, 10 months ago
* 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