From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 BC812C433E2 for ; Fri, 22 May 2020 14:10:43 +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 8C01A208DB for ; Fri, 22 May 2020 14:10:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jKgF7CQc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C01A208DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass 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.92) (envelope-from ) id 1jc7lU-0005i8-BU; Fri, 22 May 2020 13:31:08 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jc7lS-0005hz-UA for xen-devel@lists.xenproject.org; Fri, 22 May 2020 13:31:06 +0000 X-Inumbo-ID: 7ccf5000-9c30-11ea-b07b-bc764e2007e4 Received: from mail-lj1-x241.google.com (unknown [2a00:1450:4864:20::241]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 7ccf5000-9c30-11ea-b07b-bc764e2007e4; Fri, 22 May 2020 13:31:06 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id q2so12593564ljm.10 for ; Fri, 22 May 2020 06:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ak1+Sq274vtepf4F/AMOKn+/SUcTSsWehkImMnDWeMg=; b=jKgF7CQcaAjDQDVOHthIQ3XotjTb0RDq7FMZ8hkoFVphja0cVBOQAcG6DeZ8tmWkUB eqYcZ1ypAK/GMY7ZMmHIEcwvJxEOhk5lQS2thb4Oc0MaFhdtVjo6ubZ8QmblgfjghmI/ 4E7OTkrq2NAY94p2UwBhKXZL/uRNC6ku6yx/mLyPvGv69QM7lR+uQjIyFPfrEfQXbTxm zOWQdFHQRiinT2wGHEJvVdwrwzKb3zmOQb+VI0k42e2Mn4o+NiuT71LJO9RA9y+yYE7r oXrzCY9HOFdiFXAM+I2sn8R+m7Tv0iqBZvvWA71lhhkvS/ZwGjW9m1CTfJWQx/MmKAU4 LKCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ak1+Sq274vtepf4F/AMOKn+/SUcTSsWehkImMnDWeMg=; b=ao4Rp/06dKszFzCABijCH8SUYA8uzV5aHWg4kTRkF2EoeVDOIiZCnHlyQbuG0ivnvL EKRI5we9d/QRi+vPYPGddvINqiKbNPg0MMtu6jE5IkIkOFrW93LG3jAFMg31pKC2/xJ+ PSMrLwmmILYyQr6Mc7N8i+rcbVlmQaZn25V+QYmTvLI3vXK39fdjRQzz4yo3EqsYhCf/ k8j3QU4Fu6LJSC3SM3vzvCZOBFn4UfX9DLIm87EpPFIZfqsua1m7eFq3NugZULUYBb7o +Xcmqh5e9p30i/CVaDXaCRzQsvXDWGUhsw6gcxUttYn6/PJ8KUsPFOv8e+JlwMc1rYip SRPQ== X-Gm-Message-State: AOAM532U55hriMBoDNNpD/3kh1AucgK/JeXx0SFEkosk6FHtOWwikbP2 kiBcA9MGmJX5rptZkk5v/ZyoRqMBPljmeddDfO8= X-Google-Smtp-Source: ABdhPJwgaQ/wOSeT5ZTxq4/k1vLcj0qJp4eugiaAjpOEkGHNl9iHrkTNb6GbRJZzueZHfr3F2rAfXc+wfjf9fOfzCZY= X-Received: by 2002:a2e:b0e7:: with SMTP id h7mr6640951ljl.196.1590154264938; Fri, 22 May 2020 06:31:04 -0700 (PDT) MIME-Version: 1.0 References: <20200519015503.115236-1-jandryuk@gmail.com> <4510049C-2AD1-4AE4-B0E5-F4231450EDB6@citrix.com> <001301d6301f$0b546cd0$21fd4670$@xen.org> In-Reply-To: <001301d6301f$0b546cd0$21fd4670$@xen.org> From: Jason Andryuk Date: Fri, 22 May 2020 09:30:53 -0400 Message-ID: Subject: Re: [PATCH v7 00/19] Add support for qemu-xen runnning in a Linux-based stubdomain To: Paul Durrant Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , xen-devel , Wei Liu , Andrew Cooper , George Dunlap , Jan Beulich , Ian Jackson , Anthony Perard , Samuel Thibault , Daniel De Graaf Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On Fri, May 22, 2020 at 5:54 AM Paul Durrant wrote: > > > -----Original Message----- > > From: Xen-devel On Behalf Of G= eorge Dunlap > > Sent: 22 May 2020 10:11 > > To: Jason Andryuk > > Cc: Stefano Stabellini ; Julien Grall ; Samuel Thibault > > ; Wei Liu ; Andrew Cooper ; Jan > > Beulich ; Ian Jackson ; Anth= ony Perard > > ; xen-devel = ; Daniel De Graaf > > > > Subject: Re: [PATCH v7 00/19] Add support for qemu-xen runnning in a Li= nux-based stubdomain > > > > > > > On May 19, 2020, at 2:54 AM, Jason Andryuk wrote= : > > > > > > General idea is to allow freely set device_model_version and > > > device_model_stubdomain_override and choose the right options based o= n this > > > choice. Also, allow to specific path to stubdomain kernel/ramdisk, f= or greater > > > flexibility. > > > > Excited to see this patch series get in. But I didn=E2=80=99t really n= otice any documents explaining how to > > actually use it =E2=80=94 is there a blog post anywhere describing how = to get the kernel / initrd image and so > > on? Yeah, it's not really collected anywhere, but below are the quick start instructions. The cover letter mentioned this repo (forked from Marek's): https://github.com/jandryuk/qubes-vmm-xen-stubdom-linux (branch initramfs-tools, tag for-upstream-v6) clone it and then run: $ make get-sources $ make -f Makefile.stubdom output: kernel: build/linux/arch/x86/boot/bzImage ramdisk: build/rootfs/stubdom-linux-rootfs To make them available system wide, copy to /usr/lib/xen/boot/qemu-stubdom-linux-kernel and /usr/lib/xen/boot/qemu-stubdom-linux-rootfs respectively. Obviously this should match your installation's "$lib/xen/boot/" location. A second option is to set paths to those files manually in a VM's xl.cfg with stubdomain_kernel=3D"/path" and stubdomain_ramdisk=3D"/path" Update your xl configuration with: device_model_stubdomain_override =3D 1 device_model_version =3D "qemu-xen" Start the domain and that should be it. Maybe additionally use serial =3D "pty" to access the VM with `xl console -t serial $NAME`. Some limitations are here: https://xenbits.xen.org/gitweb/?p=3Dxen.git;a=3Dblob;f=3Ddocs/misc/stubdom.= txt;h=3Dc717a95d17d2e562639a5574e89df3c4db8712fa;hb=3DHEAD#l124 Limitations: - PCI passthrough require permissive mode - only one nic is supported - at most 26 emulated disks are supported (more are still available as PV disks) - graphics output (VNC/SDL/Spice) not supported > > Also, would it be possible to add a follow-up series which modifies SUP= PORT.md and CHANGELOG.md? > > Yes please. In future I think we should encourage the patch to CHANGELOG.= md to be the last patch of a series such as this. I can do this. What is the SUPPORT status for this? Regards, Jason