[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 08/11] s390: Add new channel I/O based virtio tr
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 08/11] s390: Add new channel I/O based virtio transport. |
Date: |
Thu, 24 Jan 2013 16:33:28 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 |
Am 24.01.2013 15:42, schrieb Cornelia Huck:
> On Thu, 24 Jan 2013 14:18:10 +0100
> Andreas Färber <address@hidden> wrote:
>
> Forgot one point :)
>
>>> +/* DeviceState to VirtioCcwData. Note: used on datapath,
>>> + * be careful and test performance if you change this.
>>> + */
>>> +static inline VirtioCcwData *to_virtio_ccw_data_fast(DeviceState *d)
>>> +{
>>> + return container_of(d, VirtioCcwData, parent_obj);
>>> +}
>>> +
>>> +/* DeviceState to VirtioCcwData. TODO: use QOM. */
>>
>> Are the prerequisites to resolve this TODO not yet in qemu.git?
>
> This is copied verbatim from s390-virtio-bus/virtio-pci; my guess it
> that it will be resolved tree-wide.
>
>>
>>> +static inline VirtioCcwData *to_virtio_ccw_data(DeviceState *d)
>>> +{
>>> + return container_of(d, VirtioCcwData, parent_obj);
>>> +}
>>> +
You did introduce VIRTIO_CCW_DEVICE(obj) though, no? Then you can drop
this function and use it instead. Can be a follow-up but it seems a
file-local issue to me.
Cheers,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- [Qemu-devel] [PATCH 09/11] s390-virtio: Factor out some initialization code., (continued)
- [Qemu-devel] [PATCH 09/11] s390-virtio: Factor out some initialization code., Cornelia Huck, 2013/01/24
- [Qemu-devel] [PATCH 07/11] s390: Wire up channel I/O in kvm., Cornelia Huck, 2013/01/24
- [Qemu-devel] [PATCH 11/11] s390: Add s390-ccw-virtio machine., Cornelia Huck, 2013/01/24
- [Qemu-devel] [PATCH 10/11] s390: Add default support for SCLP console, Cornelia Huck, 2013/01/24
- [Qemu-devel] [PATCH 05/11] s390: Add channel I/O instructions., Cornelia Huck, 2013/01/24
- [Qemu-devel] [PATCH 06/11] s390: Virtual channel subsystem support., Cornelia Huck, 2013/01/24
- [Qemu-devel] [PATCH 08/11] s390: Add new channel I/O based virtio transport., Cornelia Huck, 2013/01/24
- Re: [Qemu-devel] [PATCH v6 00/11] s390: channel I/O support in qemu., Alexander Graf, 2013/01/24
- Re: [Qemu-devel] [PATCH v6 00/11] s390: channel I/O support in qemu., Anthony Liguori, 2013/01/25