Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp405376imp; Thu, 21 Feb 2019 03:57:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IYa/2tvPFZ/WIGO+xGlBfrI0ihk+hdbZ/6y+6fNAoFMOU1FOuiWJh7yO3JdPLbOY8ldyeA0 X-Received: by 2002:a63:d49:: with SMTP id 9mr33990530pgn.27.1550750242546; Thu, 21 Feb 2019 03:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550750242; cv=none; d=google.com; s=arc-20160816; b=rdtgGkqZHkrGbOJfuu0B4GzrlJ9W9wDSsksETe4btc+20p5OlgM8zvB3uhfa6QLEyT 8jrOABXQ2oPKA79Wu7X/rAEadeoO54is0PV1LecOZBC/QaqT7ur/aI2xJeOCXXWUsYMz xGORqswM1Fxa4NVb/AysmJ6rUL8mSmEcAsPFvsSrINXdmr3FUtAVRuB7YTKA+UfexFD1 8zReu3UCMhU0QLrqt6KjVXa9pww1x+8MA/o3KWyFUmbLzJVx460q4mSA+d9e0YFlFYFR lRGD0aTMAEUM4dEC71KGRGITCL78HEeiQfm/Xy9LY5iJbopSHt+WdhHv3ovWGDD/sZxh 38xQ== 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:date:message-id:from :references:cc:to:subject:dkim-signature; bh=Pbq0pvPOHEEJ+KrRRgeyvszIi/z/+hzos7hFkkP1w74=; b=AkWcjeWLP03JuK9C6HgxQ3LRNzE4k5CPUdllVEzpKS//tIyW2GDq/n+guWzUHV6jBd dMlFG02rOxXlhBJb6x1l6eVMnNSf9gLzkx1405Vo7+krsZL2+Td3jDqQlM9YRqkO0TeC EBx1H2zDjHB3735RKQVeKGDC501QjRenxLyV6dxXb1lph+64lZG9TcnGYusn5vNNBsHR Mmi7doOVYFSXoOfERCBZbY1CnHheLXDY0yKI18WhbF5N++ETW+fGP8xZupt2GYnd/5Nh Sp3OCFU+jvjXmripzrY96zfWncp6TpDRS5FgBTNg1BO35sJcddiTY2t91LfqTNl9L3O9 NsZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=GmHkWxAk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az2si9448701plb.252.2019.02.21.03.57.07; Thu, 21 Feb 2019 03:57:22 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=GmHkWxAk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727451AbfBUL4p (ORCPT + 99 others); Thu, 21 Feb 2019 06:56:45 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:52420 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbfBUL4p (ORCPT ); Thu, 21 Feb 2019 06:56:45 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1LBsc0B035676; Thu, 21 Feb 2019 11:55:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=Pbq0pvPOHEEJ+KrRRgeyvszIi/z/+hzos7hFkkP1w74=; b=GmHkWxAk1iIPPv86Vvh3PdDb2Tl90iilKrF8nfs07s0exHy6e3hKUGI+Gomw1huQqbox CGrXa5AYkbjUoEJe/AomYIIYR4a4OAzvbbEidd19PGy5qoQbjC+87uXDPVp2/pjnD4PB MmnB3HJtVYv6F8yw9aLbViwTPP6guX32/UnljBCbqtBTOBpPTUNcGKrdfmeCcGYZBV6Q jZwuIXRdgfrXYyN2QdgBkC5niMPmhjKekk9KpNyqA5fK8pkP/g7KDNlXXEvznt2OhQGr dDi9UofGStiA+zXeMVnC/LPaoTesvnwzQSK2Cnmpc43qnFh7LuHSs2G6PEhCXPKYkaMn Lg== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2qpb5rqcv6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Feb 2019 11:55:25 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x1LBtP3a022610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Feb 2019 11:55:25 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x1LBtNG2012028; Thu, 21 Feb 2019 11:55:24 GMT Received: from [192.168.1.67] (/94.61.137.133) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Feb 2019 03:55:23 -0800 Subject: Re: [Xen-devel] [PATCH RFC 00/39] x86/KVM: Xen HVM guest support To: =?UTF-8?Q?Marek_Marczykowski-G=c3=b3recki?= Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org, =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , x86@kernel.org, Ankur Arora , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Paolo Bonzini , Boris Ostrovsky , Thomas Gleixner References: <20190220201609.28290-1-joao.m.martins@oracle.com> <20190220233941.GA5279@mail-itl> From: Joao Martins Message-ID: <6c12ea67-0845-d2c2-6f78-f4819b46b7b5@oracle.com> Date: Thu, 21 Feb 2019 11:55:10 +0000 MIME-Version: 1.0 In-Reply-To: <20190220233941.GA5279@mail-itl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9173 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902210089 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/20/19 11:39 PM, Marek Marczykowski-Górecki wrote: > On Wed, Feb 20, 2019 at 08:15:30PM +0000, Joao Martins wrote: >> 2. PV Driver support (patches 17 - 39) >> >> We start by redirecting hypercalls from the backend to routines >> which emulate the behaviour that PV backends expect i.e. grant >> table and interdomain events. Next, we add support for late >> initialization of xenbus, followed by implementing >> frontend/backend communication mechanisms (i.e. grant tables and >> interdomain event channels). Finally, introduce xen-shim.ko, >> which will setup a limited Xen environment. This uses the added >> functionality of Xen specific shared memory (grant tables) and >> notifications (event channels). > > Does it mean backends could be run in another guest, similarly as on > real Xen? AFAIK virtio doesn't allow that as virtio backends need > arbitrary write access to guest memory. But grant tables provide enough > abstraction to do that safely. > In this series not yet. Here we are trying to resemble how KVM drives its kernel PV backends (i.e. vhost virtio). The domU grant {un,}mapping could be added complementary. The main difference between domU gntmap vs shim gntmap is that the former maps/unmaps the guest page on the backend. Most of it is common code I think. Joao