Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756250AbbHZI0U (ORCPT ); Wed, 26 Aug 2015 04:26:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55839 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbbHZI0R (ORCPT ); Wed, 26 Aug 2015 04:26:17 -0400 Message-ID: <1440577573.32587.11.camel@redhat.com> Subject: Re: virtio-serial: Add multiple times opening support to virtserialport(port) From: Gerd Hoffmann To: Matt Ma Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, Christoffer Dall , Alex =?ISO-8859-1?Q?Benn=E9e?= , Peter Maydell Date: Wed, 26 Aug 2015 10:26:13 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1432 Lines: 36 Hi, > AndroidPipe is a communication channel between the guest system and > the emulator itself. Guest side device node can be opened by multi > processes at the same time with different service name. It has a > de-multiplexer on the QEMU side to figure out which service the guest > actually wanted, so the first write after opening device node is the > service name guest wanted, after QEMU backend receive this service > name, create a corresponding communication channel, initialize related > component, such as file descriptor which connect to the host socket > serve. So each opening in guest will create a separated communication > channel. > > We can create a separate device for each service type, however some > services, such as the OpenGL emulation, need to have multiple open > channels at a time. This is currently not possible using the > virtserialport which can only be opened once. vsock probably works better then: http://events.linuxfoundation.org/sites/events/files/slides/stefanha-kvm-forum-2015.pdf Also: for opengl you might want check out virtio-gpu (assuming you can build mesa for android). https://www.kraxel.org/slides/qemu-opengl/ cheers, Gerd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/