Received: by 10.223.185.116 with SMTP id b49csp6230063wrg; Wed, 28 Feb 2018 06:09:34 -0800 (PST) X-Google-Smtp-Source: AH8x225xCHm5WxL0iF2c765mvTXT0mCw7XzqPKREHSphKjhYQMHIv7Hs0ciR1wXdECZTKQ2d5dgo X-Received: by 10.98.11.19 with SMTP id t19mr17978343pfi.70.1519826974356; Wed, 28 Feb 2018 06:09:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519826974; cv=none; d=google.com; s=arc-20160816; b=bSBbxnJX5NyK3uNTHCzt7pY7Ifc5lJ5+kgVmG7zf+n0X2scbhYgdJR3mvcxrBFjV75 U09LIinNSoI9G3a0Oq+22HKftEaYV8i0q3XT7LgZM748+ARCD7YOdf0G2T8XrmiDQ2CQ MkF77XlagqTqUJs98WUxURh30JP0HXb9A8VF5dhQ8lpKEOPxSnzGENIxvsCLOHoTT2s3 GB8gSKFc3JDwLigkexzm5S09dSEpWIBR603BM88mzH+oHlX0lRyLkCTazTRCMai39+Nb 4aT8f5stovMR73+ijzK9DsNgsTC7h2j0as9p7qVYCugxmh1cIvUBPQuxxa9MhwoUHFwH kTDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=9iauDrcqPy8Tv3WhcM5cu9Mke0M6XDdXlcGKBiRCRiw=; b=vyUvJeaJhSd2PGlYDGK5m8cpovP5QGhICNnkdm00YKQi+Lis6JOfKqp5LbJbCTPScO 2epP0wjB+cxAdMoVdEmLqrjCAvGRLUkUOlLXhOV6YycJ+kt89mXlewmKRNnKnXtzzBcx 5Zktz9AcUMny/OLRwc8j7PCLlk+/CH0w7Kwltx5vXKii+/mY6XiQOrz3hehAOAr6TLyf dVOq8yUXj/Qh/Z3OlLEVFldjydt7lFhFYPuVl+2bXacVUcwyY+tKtrKC2vdRtLneC0pL Pr6CdMuGoL18IsO5EiO237SWmosF7iALhKU627HAJA2NJQRyS8fMXtFduSEB0BpEqexx COZg== 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 o6-v6si1306212plk.820.2018.02.28.06.09.17; Wed, 28 Feb 2018 06:09: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 S1752697AbeB1OIS (ORCPT + 99 others); Wed, 28 Feb 2018 09:08:18 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50076 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752377AbeB1OIN (ORCPT ); Wed, 28 Feb 2018 09:08:13 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E832B15AD; Wed, 28 Feb 2018 06:08:12 -0800 (PST) Received: from [192.168.42.206] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C71623F487; Wed, 28 Feb 2018 06:08:09 -0800 (PST) Subject: Re: [Xen-devel] [PATCH 0/9] drm/xen-front: Add support for Xen PV display frontend To: 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 Cc: Oleksandr Andrushchenko , Stefano Stabellini , Wei Liu References: <1519200222-20623-1-git-send-email-andr2000@gmail.com> <4c7e6f65-1787-3815-22b5-f9495e388c06@gmail.com> <7e265c53-db9a-0946-6b1c-b946bcbb4100@gmail.com> From: Julien Grall Message-ID: <4628e34f-5e7d-c2e6-d132-c1f4c1c25efd@arm.com> Date: Wed, 28 Feb 2018 14:08:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <7e265c53-db9a-0946-6b1c-b946bcbb4100@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (+ 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. > > 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. > > 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. Cheers, -- Julien Grall