From patchwork Fri Sep 15 14:40:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farhan Ali X-Patchwork-Id: 814311 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xtylL6drWz9sxR for ; Sat, 16 Sep 2017 00:41:34 +1000 (AEST) Received: from localhost ([::1]:53630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsroC-0003vj-W9 for incoming@patchwork.ozlabs.org; Fri, 15 Sep 2017 10:41:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsrnN-0003rY-JD for qemu-devel@nongnu.org; Fri, 15 Sep 2017 10:40:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsrnK-0003ur-Gk for qemu-devel@nongnu.org; Fri, 15 Sep 2017 10:40:41 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44752 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dsrnK-0003uY-B3 for qemu-devel@nongnu.org; Fri, 15 Sep 2017 10:40:38 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v8FEd88U013294 for ; Fri, 15 Sep 2017 10:40:37 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0b-001b2d01.pphosted.com with ESMTP id 2d0gqm8axb-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 15 Sep 2017 10:40:37 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Sep 2017 08:40:36 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 15 Sep 2017 08:40:33 -0600 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v8FEeXaf30343224; Fri, 15 Sep 2017 07:40:33 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E297C6A043; Fri, 15 Sep 2017 08:40:32 -0600 (MDT) Received: from alifm-ThinkPad-W540.pok.ibm.com (unknown [9.56.58.52]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTPS id 63F9C6A03B; Fri, 15 Sep 2017 08:40:32 -0600 (MDT) From: Farhan Ali To: qemu-devel@nongnu.org Date: Fri, 15 Sep 2017 10:40:30 -0400 X-Mailer: git-send-email 1.9.1 X-TM-AS-GCONF: 00 x-cbid: 17091514-0028-0000-0000-0000085D00FE X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007743; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000229; SDB=6.00917416; UDB=6.00460785; IPR=6.00697644; BA=6.00005589; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017168; XFM=3.00000015; UTC=2017-09-15 14:40:35 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17091514-0029-0000-0000-0000379062E3 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-09-15_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709150214 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 148.163.158.5 Subject: [Qemu-devel] [PATCH v3 0/2] Virtio GPU for S390 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: borntraeger@de.ibm.com, thuth@redhat.com, cohuck@redhat.com, pasic@linux.vnet.ibm.com, kraxel@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" These patches wire up the virtio-gpu device for CCW bus for S390. For the S390 architecture which does not natively support any graphics device, virtio gpu in 2D mode could be used to emulate a simple graphics card and use VNC as the display. eg: qemu-system-s390x ... -device virtio-gpu-ccw,devno=fe.0.0101 -vnc host_ip_addr:5900 Note, to actually see any display content the guest kernel needs to support DRM layer, Virtio GPU driver, the Virtual Terminal layer etc. I would appreciate any feedback on these patches, specially the first patch. ChangeLog -------- v1 -> v2 - remove error_propagate (patch 2) - Add byteswap functions (patch 1) - Handle endian conversion for virtio_gpu_ctrl_response (patch 1) v2 -> v3 - updated patch 1 based on Gerd's feedback - rename bswap functions (patch 1) - use in-place swapping functions (patch 1) - Handle endian conversion for cursor update (patch 1) Thank you Farhan Farhan Ali (2): virtio-gpu: Handle endian conversion virtio-gpu-ccw: Create a virtio gpu device for the ccw bus hw/display/virtio-gpu.c | 70 +++++++++++++++++++++++++++++++++++++++++++------ hw/s390x/virtio-ccw.c | 49 ++++++++++++++++++++++++++++++++++ hw/s390x/virtio-ccw.h | 10 +++++++ 3 files changed, 121 insertions(+), 8 deletions(-)