Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh:xen-buildrequires
valgrind
valgrind.xen-4.2-handle-IOCTL_GNTALLOC_SET_UNMA...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File valgrind.xen-4.2-handle-IOCTL_GNTALLOC_SET_UNMAP_NOTIFY.patch of Package valgrind
From: Olaf Hering <olaf@aepfle.de> Date: Mon, 19 Nov 2018 10:56:08 +0100 Subject: xen-4.2: handle IOCTL_GNTALLOC_SET_UNMAP_NOTIFY bz#390553 --- coregrind/m_syswrap/syswrap-linux.c | 12 ++++++++++++ include/vki/vki-linux.h | 8 ++++++++ 2 files changed, 20 insertions(+) --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -8523,24 +8523,35 @@ PRE(sys_ioctl) (Addr)&args->count, sizeof(args->count)); } break; case VKI_XEN_IOCTL_GNTALLOC_DEALLOC_GREF: { struct vki_xen_ioctl_gntalloc_dealloc_gref *args = (struct vki_xen_ioctl_gntalloc_dealloc_gref*)(Addr)(ARG3); PRE_MEM_READ("VKI_XEN_IOCTL_GNTALLOC_dealloc_gref(index)", (Addr)&args->index, sizeof(args->index)); PRE_MEM_READ("VKI_XEN_IOCTL_GNTALLOC_dealloc_gref(count)", (Addr)&args->count, sizeof(args->count)); } break; + case VKI_XEN_IOCTL_GNTALLOC_SET_UNMAP_NOTIFY: { + struct vki_xen_ioctl_gntalloc_set_unmap_notify *args = + (struct vki_xen_ioctl_gntalloc_set_unmap_notify*)(Addr)(ARG3); + PRE_MEM_READ("VKI_XEN_IOCTL_GNTALLOC_set_unmap_notify(index)", + (Addr)&args->index, sizeof(args->index)); + PRE_MEM_READ("VKI_XEN_IOCTL_GNTALLOC_set_unmap_notify(action)", + (Addr)&args->action, sizeof(args->action)); + PRE_MEM_READ("VKI_XEN_IOCTL_GNTALLOC_set_unmap_notify(event_channel_port)", + (Addr)&args->event_channel_port, sizeof(args->event_channel_port)); + } + break; #endif /* Lustre */ case VKI_OBD_IOC_FID2PATH: { struct vki_getinfo_fid2path *gf = (struct vki_getinfo_fid2path *)(Addr)ARG3; PRE_MEM_READ("VKI_OBD_IOC_FID2PATH(args)", ARG3, sizeof(struct vki_getinfo_fid2path)); PRE_FIELD_WRITE("VKI_OBD_IOC_FID2PATH(args).gf_recno", gf->gf_recno); PRE_FIELD_WRITE("VKI_OBD_IOC_FID2PATH(args).gf_linkno", gf->gf_linkno); PRE_MEM_WRITE("VKI_OBD_IOC_FID2PATH(args)", (Addr)gf->gf_path, gf->gf_pathlen); break; } @@ -11158,24 +11169,25 @@ POST(sys_ioctl) /* No output */ break; case VKI_XEN_IOCTL_GNTALLOC_ALLOC_GREF: { struct vki_xen_ioctl_gntalloc_alloc_gref *args = (struct vki_xen_ioctl_gntalloc_alloc_gref*)(Addr)(ARG3); POST_FIELD_WRITE(args->index); POST_FIELD_WRITE(args->count); POST_MEM_WRITE((Addr)&args->gref_ids, sizeof(args->gref_ids) * sizeof(args->count)); } break; case VKI_XEN_IOCTL_GNTALLOC_DEALLOC_GREF: + case VKI_XEN_IOCTL_GNTALLOC_SET_UNMAP_NOTIFY: /* No output */ break; #endif /* Lustre */ case VKI_OBD_IOC_FID2PATH: { struct vki_getinfo_fid2path *args = (void *)(Addr)(ARG3); POST_FIELD_WRITE(args->gf_recno); POST_FIELD_WRITE(args->gf_linkno); POST_MEM_WRITE((Addr)args->gf_path, VG_(strlen)(args->gf_path)+1); break; } --- a/include/vki/vki-linux.h +++ b/include/vki/vki-linux.h @@ -3549,24 +3549,32 @@ struct vki_xen_ioctl_gntalloc_alloc_gref { vki_u32 count; __vki_u64 index; vki_u32 gref_ids[1]; }; #define VKI_XEN_IOCTL_GNTALLOC_DEALLOC_GREF \ _VKI_IOC(_VKI_IOC_NONE, 'G', 6, sizeof(struct vki_xen_ioctl_gntalloc_dealloc_gref)) struct vki_xen_ioctl_gntalloc_dealloc_gref { __vki_u64 index; vki_u32 count; }; +#define VKI_XEN_IOCTL_GNTALLOC_SET_UNMAP_NOTIFY \ + _VKI_IOC(_VKI_IOC_NONE, 'G', 7, sizeof(struct vki_xen_ioctl_gntalloc_set_unmap_notify)) +struct vki_xen_ioctl_gntalloc_set_unmap_notify { + __vki_u64 index; + vki_u32 action; + vki_u32 event_channel_port; +}; + //---------------------------------------------------------------------- // From linux-3.4.0/include/linux/fs.h //---------------------------------------------------------------------- struct vki_file_handle { __vki_u32 handle_bytes; int handle_type; /* file identifier */ unsigned char f_handle[0]; }; //----------------------------------------------------------------------
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor