search for: ccw_cmd_set_ind

Displaying 20 results from an estimated 60 matches for "ccw_cmd_set_ind".

2019 May 10
2
[PATCH 08/10] virtio/s390: add indirection to indicators access
...; +??????? indicatorp = kmalloc(sizeof(indicators(vcdev)), >>>> ?????????????????????? GFP_DMA | GFP_KERNEL); >>>> ????????? if (!indicatorp) >>>> ????????????? return; >>>> ????????? *indicatorp = 0; >>>> ????????? ccw->cmd_code = CCW_CMD_SET_IND; >>>> -??????? ccw->count = sizeof(&vcdev->indicators); >>>> +??????? ccw->count = sizeof(indicators(vcdev)); >>> >>> This looks strange to me. Was already weird before. >>> Lucky we are indicators are long... >>> may be just...
2019 May 10
2
[PATCH 08/10] virtio/s390: add indirection to indicators access
...; +??????? indicatorp = kmalloc(sizeof(indicators(vcdev)), >>>> ?????????????????????? GFP_DMA | GFP_KERNEL); >>>> ????????? if (!indicatorp) >>>> ????????????? return; >>>> ????????? *indicatorp = 0; >>>> ????????? ccw->cmd_code = CCW_CMD_SET_IND; >>>> -??????? ccw->count = sizeof(&vcdev->indicators); >>>> +??????? ccw->count = sizeof(indicators(vcdev)); >>> >>> This looks strange to me. Was already weird before. >>> Lucky we are indicators are long... >>> may be just...
2019 May 08
2
[PATCH 08/10] virtio/s390: add indirection to indicators access
...ayload is the address of the indicators */ > - indicatorp = kmalloc(sizeof(&vcdev->indicators), > + indicatorp = kmalloc(sizeof(indicators(vcdev)), > GFP_DMA | GFP_KERNEL); > if (!indicatorp) > return; > *indicatorp = 0; > ccw->cmd_code = CCW_CMD_SET_IND; > - ccw->count = sizeof(&vcdev->indicators); > + ccw->count = sizeof(indicators(vcdev)); This looks strange to me. Was already weird before. Lucky we are indicators are long... may be just sizeof(long) > ccw->cda = (__u32)(unsigned long) indicatorp; > } >...
2019 May 08
2
[PATCH 08/10] virtio/s390: add indirection to indicators access
...ayload is the address of the indicators */ > - indicatorp = kmalloc(sizeof(&vcdev->indicators), > + indicatorp = kmalloc(sizeof(indicators(vcdev)), > GFP_DMA | GFP_KERNEL); > if (!indicatorp) > return; > *indicatorp = 0; > ccw->cmd_code = CCW_CMD_SET_IND; > - ccw->count = sizeof(&vcdev->indicators); > + ccw->count = sizeof(indicators(vcdev)); This looks strange to me. Was already weird before. Lucky we are indicators are long... may be just sizeof(long) > ccw->cda = (__u32)(unsigned long) indicatorp; > } >...
2019 May 10
2
[PATCH 08/10] virtio/s390: add indirection to indicators access
...tors(vcdev)), >>>>>> ?????????????????????? GFP_DMA | GFP_KERNEL); >>>>>> ????????? if (!indicatorp) >>>>>> ????????????? return; >>>>>> ????????? *indicatorp = 0; >>>>>> ????????? ccw->cmd_code = CCW_CMD_SET_IND; >>>>>> -??????? ccw->count = sizeof(&vcdev->indicators); >>>>>> +??????? ccw->count = sizeof(indicators(vcdev)); >>>>> >>>>> This looks strange to me. Was already weird before. >>>>> Lucky we are indicato...
2019 May 10
2
[PATCH 08/10] virtio/s390: add indirection to indicators access
...tors(vcdev)), >>>>>> ?????????????????????? GFP_DMA | GFP_KERNEL); >>>>>> ????????? if (!indicatorp) >>>>>> ????????????? return; >>>>>> ????????? *indicatorp = 0; >>>>>> ????????? ccw->cmd_code = CCW_CMD_SET_IND; >>>>>> -??????? ccw->count = sizeof(&vcdev->indicators); >>>>>> +??????? ccw->count = sizeof(indicators(vcdev)); >>>>> >>>>> This looks strange to me. Was already weird before. >>>>> Lucky we are indicato...
2019 May 09
1
[PATCH 08/10] virtio/s390: add indirection to indicators access
...oc(sizeof(&vcdev->indicators), >> +??????? indicatorp = kmalloc(sizeof(indicators(vcdev)), >> ?????????????????????? GFP_DMA | GFP_KERNEL); >> ????????? if (!indicatorp) >> ????????????? return; >> ????????? *indicatorp = 0; >> ????????? ccw->cmd_code = CCW_CMD_SET_IND; >> -??????? ccw->count = sizeof(&vcdev->indicators); >> +??????? ccw->count = sizeof(indicators(vcdev)); > > This looks strange to me. Was already weird before. > Lucky we are indicators are long... > may be just sizeof(long) AFAIK the size of the indicators...
2019 May 27
2
[PATCH v2 6/8] virtio/s390: add indirection to indicators access
.../* payload is the address of the indicators */ > - indicatorp = kmalloc(sizeof(&vcdev->indicators), > + indicatorp = kmalloc(sizeof(indicators(vcdev)), > GFP_DMA | GFP_KERNEL); > if (!indicatorp) > return; > *indicatorp = 0; > ccw->cmd_code = CCW_CMD_SET_IND; > - ccw->count = sizeof(&vcdev->indicators); > + ccw->count = sizeof(indicators(vcdev)); > ccw->cda = (__u32)(unsigned long) indicatorp; > } > /* Deregister indicators from host. */ > - vcdev->indicators = 0; > + *indicators(vcdev) = 0; I'm not...
2019 May 27
2
[PATCH v2 6/8] virtio/s390: add indirection to indicators access
.../* payload is the address of the indicators */ > - indicatorp = kmalloc(sizeof(&vcdev->indicators), > + indicatorp = kmalloc(sizeof(indicators(vcdev)), > GFP_DMA | GFP_KERNEL); > if (!indicatorp) > return; > *indicatorp = 0; > ccw->cmd_code = CCW_CMD_SET_IND; > - ccw->count = sizeof(&vcdev->indicators); > + ccw->count = sizeof(indicators(vcdev)); > ccw->cda = (__u32)(unsigned long) indicatorp; > } > /* Deregister indicators from host. */ > - vcdev->indicators = 0; > + *indicators(vcdev) = 0; I'm not...
2013 Jun 07
2
[PATCH RFC 0/2] KVM: s390: virtio-ccw adapter interrupts.
Hi, here's the guest driver support for adapter interrupts in virtio-ccw. We use one summary indicator per page of indicators. For each device, we try to find a space in an indicator where all of its virtqueues fit. Locking probably needs some more love, but it seems to work fine so far. Cornelia Huck (2): KVM: s390: virtio-ccw: Handle command rejects. KVM: s390: virtio-ccw adapter
2013 Jun 07
2
[PATCH RFC 0/2] KVM: s390: virtio-ccw adapter interrupts.
Hi, here's the guest driver support for adapter interrupts in virtio-ccw. We use one summary indicator per page of indicators. For each device, we try to find a space in an indicator where all of its virtqueues fit. Locking probably needs some more love, but it seems to work fine so far. Cornelia Huck (2): KVM: s390: virtio-ccw: Handle command rejects. KVM: s390: virtio-ccw adapter
2019 Apr 26
0
[PATCH 08/10] virtio/s390: add indirection to indicators access
...d long) thinint_area; } else { /* payload is the address of the indicators */ - indicatorp = kmalloc(sizeof(&vcdev->indicators), + indicatorp = kmalloc(sizeof(indicators(vcdev)), GFP_DMA | GFP_KERNEL); if (!indicatorp) return; *indicatorp = 0; ccw->cmd_code = CCW_CMD_SET_IND; - ccw->count = sizeof(&vcdev->indicators); + ccw->count = sizeof(indicators(vcdev)); ccw->cda = (__u32)(unsigned long) indicatorp; } /* Deregister indicators from host. */ - vcdev->indicators = 0; + *indicators(vcdev) = 0; ccw->flags = 0; ret = ccw_io_helper(vcde...
2019 May 10
0
[PATCH 08/10] virtio/s390: add indirection to indicators access
...malloc(sizeof(indicators(vcdev)), > >>>> ?????????????????????? GFP_DMA | GFP_KERNEL); > >>>> ????????? if (!indicatorp) > >>>> ????????????? return; > >>>> ????????? *indicatorp = 0; > >>>> ????????? ccw->cmd_code = CCW_CMD_SET_IND; > >>>> -??????? ccw->count = sizeof(&vcdev->indicators); > >>>> +??????? ccw->count = sizeof(indicators(vcdev)); > >>> > >>> This looks strange to me. Was already weird before. > >>> Lucky we are indicators are long......
2019 May 23
0
[PATCH v2 6/8] virtio/s390: add indirection to indicators access
...d long) thinint_area; } else { /* payload is the address of the indicators */ - indicatorp = kmalloc(sizeof(&vcdev->indicators), + indicatorp = kmalloc(sizeof(indicators(vcdev)), GFP_DMA | GFP_KERNEL); if (!indicatorp) return; *indicatorp = 0; ccw->cmd_code = CCW_CMD_SET_IND; - ccw->count = sizeof(&vcdev->indicators); + ccw->count = sizeof(indicators(vcdev)); ccw->cda = (__u32)(unsigned long) indicatorp; } /* Deregister indicators from host. */ - vcdev->indicators = 0; + *indicators(vcdev) = 0; ccw->flags = 0; ret = ccw_io_helper(vcde...
2019 Jun 12
0
[PATCH v5 6/8] virtio/s390: add indirection to indicators access
...d long) thinint_area; } else { /* payload is the address of the indicators */ - indicatorp = kmalloc(sizeof(&vcdev->indicators), + indicatorp = kmalloc(sizeof(indicators(vcdev)), GFP_DMA | GFP_KERNEL); if (!indicatorp) return; *indicatorp = 0; ccw->cmd_code = CCW_CMD_SET_IND; - ccw->count = sizeof(&vcdev->indicators); + ccw->count = sizeof(indicators(vcdev)); ccw->cda = (__u32)(unsigned long) indicatorp; } /* Deregister indicators from host. */ - vcdev->indicators = 0; + *indicators(vcdev) = 0; ccw->flags = 0; ret = ccw_io_helper(vcde...
2019 May 29
0
[PATCH v3 6/8] virtio/s390: add indirection to indicators access
...d long) thinint_area; } else { /* payload is the address of the indicators */ - indicatorp = kmalloc(sizeof(&vcdev->indicators), + indicatorp = kmalloc(sizeof(indicators(vcdev)), GFP_DMA | GFP_KERNEL); if (!indicatorp) return; *indicatorp = 0; ccw->cmd_code = CCW_CMD_SET_IND; - ccw->count = sizeof(&vcdev->indicators); + ccw->count = sizeof(indicators(vcdev)); ccw->cda = (__u32)(unsigned long) indicatorp; } /* Deregister indicators from host. */ - vcdev->indicators = 0; + *indicators(vcdev) = 0; ccw->flags = 0; ret = ccw_io_helper(vcde...
2019 May 09
0
[PATCH 08/10] virtio/s390: add indirection to indicators access
...ators), > >> +??????? indicatorp = kmalloc(sizeof(indicators(vcdev)), > >> ?????????????????????? GFP_DMA | GFP_KERNEL); > >> ????????? if (!indicatorp) > >> ????????????? return; > >> ????????? *indicatorp = 0; > >> ????????? ccw->cmd_code = CCW_CMD_SET_IND; > >> -??????? ccw->count = sizeof(&vcdev->indicators); > >> +??????? ccw->count = sizeof(indicators(vcdev)); > > > > This looks strange to me. Was already weird before. > > Lucky we are indicators are long... > > may be just sizeof(long) >...
2013 Jul 09
3
[RFC PATCH v2 0/2] KVM: s390: virtio-ccw adapter interrupts.
Hi, next version of the guest exploitation of virtio-ccw adapter interrupts. Changes from the last version: - adapt to latest kvm-next - changed housekeeping for indicator locations: we now use cacheline-sized and aligned areas - minor tweaks Cornelia Huck (2): KVM: s390: virtio-ccw: Handle command rejects. KVM: s390: virtio-ccw adapter interrupt support. arch/s390/include/asm/irq.h
2013 Jul 09
3
[RFC PATCH v2 0/2] KVM: s390: virtio-ccw adapter interrupts.
Hi, next version of the guest exploitation of virtio-ccw adapter interrupts. Changes from the last version: - adapt to latest kvm-next - changed housekeeping for indicator locations: we now use cacheline-sized and aligned areas - minor tweaks Cornelia Huck (2): KVM: s390: virtio-ccw: Handle command rejects. KVM: s390: virtio-ccw adapter interrupt support. arch/s390/include/asm/irq.h
2016 Mar 01
3
[PATCH 0/2] virtio/s390 patches
Hi Michael, here are two virtio/s390 patches (one cleanup, one bugfix), prepared against your vhost branch of mst/vhost.git. Please apply. Cornelia Huck (1): virtio/s390: size of SET_IND payload Geliang Tang (1): virtio/s390: use dev_to_virtio drivers/s390/virtio/virtio_ccw.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) -- 2.3.9