Received: by 10.223.185.116 with SMTP id b49csp6870115wrg; Wed, 28 Feb 2018 17:43:34 -0800 (PST) X-Google-Smtp-Source: AG47ELtP8SHqK6HPn6Ql/PEGBJz+ow8tkkMFap+i9Ghw1jVEPpuIrM8oF6bkaLkIzbWtBDMPBD8d X-Received: by 2002:a17:902:9898:: with SMTP id s24-v6mr167641plp.382.1519868614723; Wed, 28 Feb 2018 17:43:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519868614; cv=none; d=google.com; s=arc-20160816; b=at0qcYtgX1k/ROH4MQzXOl8eZC+pFqqjbGacAwsBp/feolySxX2NH6LXjJ9e+HF3LA niUN8Z8UKOLNItXuzRkmWsFp1hXNpGAcAdubu29B4ZyjjUjw5+bUnfD6cO0TKljPN/4c m+xUESiEKdIknujd1kKuUKjElSTEA3x3P0shZy88aEcgEsuIUUydSQePbYaFnXdn6i3M 6Hshr2EDPTd4qjG5SaqezaC5GDjT19k8yXk8B1hU4WkbWszapn+SiRgtGgnJby0oIdRy 3H9dzZ/NL8L/2XWKdvBJci+YVnwstE4KRV/N4z4fDJAlForsRPs95k0VGUMu2tdicIrd ylgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dmarc-filter :arc-authentication-results; bh=Epgcj+CfrbOSF3zL3ff0BhNQVAbyt+bru8HZUvl/mFg=; b=f9gqGhA+BmBkcnbIcfRyLKLJEZLdtJoJc+T1XT5qBgp2CZd7hqsFXkbw4lpS8lcEqM vVPX/vuAHagmIzbdY6sAAIRLLnrf7UOfVZzWBPQDwILwQEe8lAmNJu0D+PcT3VTIVATm W/HkDV1jHD7+5UDPPniWFbDfADd/I7EHZq9YJYr/GmH4jbUhAj7hVsUJekhX/8Fz+d9D Aj+qObwlgKZ/jJiRO6ht4pD9JqQS7709YvQ6+CD8T56FSXo0ytSi4bd0DJKIKbwCjoN0 4hS2RevGCCX+lGA/GMPZ8uT7jwYHFAB2vLevYfBhhUJ4XuTz2ef8TPAbRhiZJAbvSNA+ VW+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k80si2105892pfh.260.2018.02.28.17.43.19; Wed, 28 Feb 2018 17:43:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935676AbeCABml (ORCPT + 99 others); Wed, 28 Feb 2018 20:42:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:43708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932134AbeCABmk (ORCPT ); Wed, 28 Feb 2018 20:42:40 -0500 Received: from [10.135.48.227] (unknown [12.248.85.146]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B52E021748; Thu, 1 Mar 2018 01:42:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B52E021748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sstabellini@kernel.org Date: Wed, 28 Feb 2018 17:42:38 -0800 (PST) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-X260 To: Julien Grall cc: Oleksandr Andrushchenko , xen-devel@lists.xenproject.org, "linux-kernel@vger.kernel.org" , dri-devel@lists.freedesktop.org, airlied@linux.ie, daniel.vetter@intel.com, seanpaul@chromium.org, gustavo@padovan.org, Juergen Gross , boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, Oleksandr Andrushchenko , Stefano Stabellini , Wei Liu Subject: Re: [Xen-devel] [PATCH 0/9] drm/xen-front: Add support for Xen PV display frontend In-Reply-To: <4628e34f-5e7d-c2e6-d132-c1f4c1c25efd@arm.com> Message-ID: References: <1519200222-20623-1-git-send-email-andr2000@gmail.com> <4c7e6f65-1787-3815-22b5-f9495e388c06@gmail.com> <7e265c53-db9a-0946-6b1c-b946bcbb4100@gmail.com> <4628e34f-5e7d-c2e6-d132-c1f4c1c25efd@arm.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Feb 2018, Julien Grall wrote: > (+ Stefano and Wei) > > Hi, > > On 02/27/2018 12:40 PM, Oleksandr Andrushchenko wrote: > > Please find some more clarifications on VirtIO use with Xen > > (I would like to thank Xen community for helping with this) > > > > 1. Possible security issues - VirtIO devices are PCI bus masters, thus > > allowing real device (running, for example, in untrusted driver domain) > > to get control over guest's memory by writing to its memory > > > > 2. VirtIO currently uses GFNs written into the shared ring, without Xen > > grants support. This will require generic grant-mapping/sharing layer > > to be added to VirtIO. This is important. VirtIO doesn't allow for driver domains (running the backend inside a virtual machine). > > 3. VirtIO requires QEMU PCI emulation for setting up a device. Xen PV (and > > PVH) > > domains don't use QEMU for platform emulation in order to reduce attack > > surface. > > (PVH is in the process of gaining PCI config space emulation though, but it > > is > > optional, not a requirement) > I don't think the support of PCI configuration space emulation for PVH would > help there. The plan is to emulate in Xen, QEMU is still out of the equation > there. Right: there is no infrastructure to run IO emulation in userspace for PV, PVH and ARM guests. We do have a QEMU instance running for PV, PVH and ARM guests but only to implement PV backends, such as the vdispl backend for example, which are handling asynchronous requests from frontends using the traditional grant table maps/unmaps. > > 4. Most of the PV drivers a guest uses at the moment are Xen PV drivers, > > e.g. net, > > block, console, so only virtio-gpu will require QEMU to run. > > Although this use case would work on x86 it will require additional changes > > to get this running on ARM, which is my target platform. > > All type of guests but x86 HVM are not using QEMU for device emulation. > > I would even be stronger here. Using QEMU would require a significant amount > of engineering to make it work and increase the cost of safety certification > for automotive use cases. So IHMO, the Xen PV display solution is the best. > > The protocol was accepted and merged in Xen 4.9. This the standard way to have > para-virtualized display for guests on Xen. Having the driver merged in Linux > would help user to get out-of-box display in guest. That's right. I don't think it really makes sense to introduce virtio support in Xen on ARM as it is today.