From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDWXv-0008Hr-6c for qemu-devel@nongnu.org; Tue, 20 Jan 2015 06:00:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDWXq-0002VE-1j for qemu-devel@nongnu.org; Tue, 20 Jan 2015 06:00:31 -0500 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:49079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDWXp-0002V8-RF for qemu-devel@nongnu.org; Tue, 20 Jan 2015 06:00:25 -0500 Received: by mail-we0-f175.google.com with SMTP id k11so36368668wes.6 for ; Tue, 20 Jan 2015 03:00:25 -0800 (PST) Date: Tue, 20 Jan 2015 11:00:21 +0000 From: Stefan Hajnoczi Message-ID: <20150120110021.GH17631@stefanha-thinkpad.redhat.com> References: <1418304322-7546-1-git-send-email-cornelia.huck@de.ibm.com> <1418304322-7546-11-git-send-email-cornelia.huck@de.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uJrvpPjGB3z5kYrA" Content-Disposition: inline In-Reply-To: <1418304322-7546-11-git-send-email-cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH RFC v6 10/20] s390x/virtio-ccw: add virtio set-revision call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: thuth@linux.vnet.ibm.com, mst@redhat.com, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org --uJrvpPjGB3z5kYrA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 11, 2014 at 02:25:12PM +0100, Cornelia Huck wrote: > From: Thomas Huth >=20 > Handle the virtio-ccw revision according to what the guest sets. > When revision 1 is selected, we have a virtio-1 standard device > with byteswapping for the virtio rings. >=20 > When a channel gets disabled, we have to revert to the legacy behavior > in case the next user of the device does not negotiate the revision 1 > anymore (e.g. the boot firmware uses revision 1, but the operating > system only uses the legacy mode). >=20 > Note that revisions > 0 are still disabled. >=20 > Signed-off-by: Thomas Huth > Signed-off-by: Cornelia Huck > --- > hw/s390x/virtio-ccw.c | 52 +++++++++++++++++++++++++++++++++++++++++++= ++++++ > hw/s390x/virtio-ccw.h | 8 ++++++++ > 2 files changed, 60 insertions(+) Reviewed-by: Stefan Hajnoczi --uJrvpPjGB3z5kYrA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUvjVFAAoJEJykq7OBq3PIzw8IAIFDnCkF1F2/4ayFWYMZpK52 9Zx+XijdUiGcUj5gDjL51FgftE+992ajEBWSOXIi6HKaam/zJCvjUF/1/pQvwl3l 8eh9DzthWxZEisSMvXK1vlytg3yKxrk6i/R2N50tdtfvzn2FQHxF78j8yKGZACCh /AIfhfgcwOwlwurceMtLEjY745upnMBv7xJJyyz3WWLuOYvV6Uo26ZM72HUVA+Jc fjEgWo8AupyZWJNNeTy2hS6+CTsxu9wyN8OdeARj2e8S4SY6OHM2JV5ZxbrvL2yS o9DInGWiT+CqCCvf6ckcRrHbub8ybMpO24p4qlL9XnmCLnT1PeV6kaJoZeK8BBE= =Vy4j -----END PGP SIGNATURE----- --uJrvpPjGB3z5kYrA--