From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Alexander Graf <agraf@suse.de>
Cc: linux-s390 <linux-s390@vger.kernel.org>,
Anthony Liguori <aliguori@us.ibm.com>,
Rusty Russell <rusty@rustcorp.com.au>, KVM <kvm@vger.kernel.org>,
Carsten Otte <cotte@de.ibm.com>,
Sebastian Ott <sebott@linux.vnet.ibm.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
qemu-devel <qemu-devel@nongnu.org>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Avi Kivity <avi@redhat.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: Re: [Qemu-devel] [PATCH v2 3/4] s390/kvm: Add a channel I/O based virtio transport driver.
Date: Tue, 9 Oct 2012 16:30:46 +0200 [thread overview]
Message-ID: <20121009163046.16fcefab@BR9GNB5Z> (raw)
In-Reply-To: <04780C07-9F02-4148-B375-83C6025D6E45@suse.de>
On Wed, 19 Sep 2012 18:38:38 +0200
Alexander Graf <agraf@suse.de> wrote:
>
> On 04.09.2012, at 17:13, Cornelia Huck wrote:
> > +static u32 virtio_ccw_get_features(struct virtio_device *vdev)
> > +{
> > + struct virtio_ccw_device *vcdev = to_vc_device(vdev);
> > + struct virtio_feature_desc features;
> > + int ret;
> > +
> > + /* Read the feature bits from the host. */
> > + /* TODO: Features > 32 bits */
> > + features.index = 0;
> > + vcdev->ccw.cmd_code = CCW_CMD_READ_FEAT;
> > + vcdev->ccw.flags = 0;
> > + vcdev->ccw.count = sizeof(features);
> > + vcdev->ccw.cda = vcdev->area;
> > + ret = ccw_io_helper(vcdev, VIRTIO_CCW_DOING_READ_FEAT);
> > + if (ret)
> > + return 0;
> > +
> > + memcpy(&features, (void *)(unsigned long)vcdev->area,
> > + sizeof(features));
> > + return le32_to_cpu(features.features);
>
> The fact that the features are LE is missing from the spec, right?
You're right, I thought it was there.
>
>
> Alex
>
next prev parent reply other threads:[~2012-10-09 14:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-04 15:13 [Qemu-devel] [RFC PATCH v2 0/4] s390: virtio-ccw guest kernel support Cornelia Huck
2012-09-04 15:13 ` [Qemu-devel] [PATCH v2 1/4] s390/kvm: Handle hosts not supporting s390-virtio Cornelia Huck
2012-09-04 15:13 ` [Qemu-devel] [PATCH v2 2/4] s390: Add a mechanism to get the subchannel id Cornelia Huck
2012-09-04 15:13 ` [Qemu-devel] [PATCH v2 3/4] s390/kvm: Add a channel I/O based virtio transport driver Cornelia Huck
2012-09-19 16:38 ` Alexander Graf
2012-10-09 14:30 ` Cornelia Huck [this message]
2012-09-04 15:13 ` [Qemu-devel] [PATCH v2 4/4] s390/kvm: Split out early console code Cornelia Huck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121009163046.16fcefab@BR9GNB5Z \
--to=cornelia.huck@de.ibm.com \
--cc=agraf@suse.de \
--cc=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=cotte@de.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rusty@rustcorp.com.au \
--cc=schwidefsky@de.ibm.com \
--cc=sebott@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).