Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBEC5C33CAA for ; Thu, 23 Jan 2020 23:11:56 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B4FB420684 for ; Thu, 23 Jan 2020 23:11:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="dO421cya" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4FB420684 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=invisiblethingslab.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iuldC-0000GD-Gl; Thu, 23 Jan 2020 23:11:22 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iuldA-0000G8-PY for xen-devel@lists.xenproject.org; Thu, 23 Jan 2020 23:11:21 +0000 X-Inumbo-ID: a552cc2c-3e35-11ea-9fd7-bc764e2007e4 Received: from wout4-smtp.messagingengine.com (unknown [64.147.123.20]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a552cc2c-3e35-11ea-9fd7-bc764e2007e4; Thu, 23 Jan 2020 23:11:12 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 145B5650; Thu, 23 Jan 2020 18:11:11 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 23 Jan 2020 18:11:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=q1/3ve KfauzspCcwuso7PZoMKHgNuOL/IMy2RSP5OvQ=; b=dO421cyas6srNmGxH0h7uT 9sVeqvPseau5BeTNniAjRWotbWmmgrbC51sg9IsCj3kgy95Sc0owp6Bs19TCW92t JINdhOaC4Dc3Rod9YHGTlSJOsYgEzj6bp1Dfq8wJj5Yq/DnPme1gK9Vij6A0KMfc 1p3kvdtRoSV/729Zwy4RQ8bq2yXLi1Gu4L24+AOY+udlsH2fp658ldNUiDySgoEZ nTioE+E1moWzDNzpzMvXDsz1vXDdamiGt06VpWVyvUom+uDjYdVUa+BtSx+aTpbs LoECguYs1NKZCw6b/q5EEt4+niNyHM2g7tjd0ZSa13ARPcyU2j5Rt+9OMT+l/teA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrvdefucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtje enucfhrhhomhepofgrrhgvkhcuofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuceo mhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecuff homhgrihhnpehquhgsvghsqdhoshdrohhrghenucfkphepledurdeihedrfeegrdeffeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghrmh grrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhm X-ME-Proxy: Received: from mail-itl (ip5b412221.dynamic.kabel-deutschland.de [91.65.34.33]) by mail.messagingengine.com (Postfix) with ESMTPA id 0F3BB3060ACE; Thu, 23 Jan 2020 18:11:09 -0500 (EST) Date: Fri, 24 Jan 2020 00:11:07 +0100 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: tosher 1 Message-ID: <20200123231107.GI1314@mail-itl> References: <1284035258.1445298.1579543677315.ref@mail.yahoo.com> <1284035258.1445298.1579543677315@mail.yahoo.com> <20200122012713.GB2995@mail-itl> <1699773700.2581218.1579712175340@mail.yahoo.com> <20200122190133.GS2507@mail-itl> <409698033.2707956.1579722613556@mail.yahoo.com> <20200122195831.GB1314@mail-itl> <972998214.522226.1579818994322@mail.yahoo.com> MIME-Version: 1.0 In-Reply-To: <972998214.522226.1579818994322@mail.yahoo.com> Subject: Re: [Xen-devel] HVM Driver Domain X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Xen-devel Content-Type: multipart/mixed; boundary="===============1215962742051878862==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============1215962742051878862== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8PmjN3crGoJ4VbbS" Content-Disposition: inline --8PmjN3crGoJ4VbbS Content-Type: multipart/mixed; protected-headers=v1; boundary="JCIJwDXlZmsNNBnR" Content-Disposition: inline Subject: Re: [Xen-devel] HVM Driver Domain --JCIJwDXlZmsNNBnR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 23, 2020 at 10:36:34PM +0000, tosher 1 wrote: >=20 >=20 > I wasn't able to make the HVM driver domain work even with the latest Xen= version which is 4.14. I see the 'xendriverdomain' executable in the /etc/= init.d/ directory, but it doesn't seem to be running in the background.=20 >=20 > On the other hand, I see the official "Qubes OS Architecture" document (h= ttps://www.qubes-os.org/attachment/wiki/QubesArchitecture/arch-spec-0.3.pdf= ) defines the driver domain as the following. >=20 > "A driver domain is an unprivileged PV-domain that has been securely gran= ted access to certain PCI device (e.g. the network card or disk controller)= using Intel VT-d." - Page 12 >=20 > Moreover, section 6.1 reads "The network domain is granted direct access = to the networking hardware, e.g. the WiFi or ethernet card. Besides, it is = a regular unprivileged PV domain." >=20 > Maybe you guys later moved to the HVM driver domain from PV. Would you pl= ease share the Xen config you use for the network driver domain? Yes, that PDF is quite outdated, we use HVM now. As for the configs, as said before, we use libvirt, with some extra patches, so the config won't be directly useful for you. I'm attaching both libvirt XML for the driver domain, and also converted to XL (using virsh domxml-to-native), may be inaccurate. --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --JCIJwDXlZmsNNBnR Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="sys-net.xl" name = "sys-net" uuid = "f8716f60-6be1-43b5-9bcb-b2c8c0910e5b" maxmem = 400 memory = 400 vcpus = 2 pae = 1 acpi = 1 apic = 1 viridian = 1 rtc_timeoffset = 0 localtime = 1 on_poweroff = "destroy" on_reboot = "destroy" on_crash = "destroy" sdl = 0 vnc = 1 vncunused = 0 vncdisplay = -5900 pci = [ "0000:00:1f.6", "0000:04:00.0" ] parallel = "none" serial = "none" builder = "hvm" cmdline = "root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 xen_scrub_pages=0 nopat iommu=soft swiotlb=8192" boot = "dc" nestedhvm = 0 disk = [ "format=raw,vdev=xvda,access=rw,backendtype=phy,target=/dev/qubes_dom0/vm-sys-net-root-snap", "format=raw,vdev=xvdb,access=rw,backendtype=phy,target=/dev/qubes_dom0/vm-sys-net-private-snap", "format=raw,vdev=xvdc,access=rw,backendtype=phy,target=/dev/qubes_dom0/vm-sys-net-volatile", "format=raw,vdev=xvdd,access=ro,backendtype=phy,target=/var/lib/qubes/vm-kernels/4.19.86-1/modules.img" ] usb = 1 usbdevice = "tablet" --JCIJwDXlZmsNNBnR Content-Type: text/xml; charset=utf-8 Content-Disposition: attachment; filename="sys-net.xml" sys-net f8716f60-6be1-43b5-9bcb-b2c8c0910e5b 409600 409600 2 hvm hvmloader root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 xen_scrub_pages=0 nopat iommu=soft swiotlb=8192 destroy destroy destroy
--JCIJwDXlZmsNNBnR-- --8PmjN3crGoJ4VbbS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl4qKAsACgkQ24/THMrX 1yzrPAf/bcpuyS6Qff74tMg0qV60Wucmx8NPY/zBuxDNPsV63Xr8wJAKb4A6D01z N2rlVz8Z3amkGdUiExFyLi+fLgsmxLIQlzLLSObKbc/BHyLotX9/D51cN5tYttzN 4j5cwUOUFQDp5rMkytLJSvyTPleHwcT0eANBgghAf+jj1gUeUELQKDoA/O4ue1CX nYiGJ9yffcBHuaspgQLE7hqOGPfE1qhf+aUnU921ZaNeAaCS0QGJvGUiPfk+YXqa y63r+JloTY6TQIMr0QjlmNfDvsV6NepcQUm3ClwMgJKpuwH/1oC8vvhUAYIMLV3O xKKn7fZtWUTsRl4kLTC/VGwt0Dd+4Q== =0ahZ -----END PGP SIGNATURE----- --8PmjN3crGoJ4VbbS-- --===============1215962742051878862== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============1215962742051878862==--