From patchwork Tue Feb 9 16:03:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 8263231 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AE8FA9F38B for ; Tue, 9 Feb 2016 16:07:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D75EC202EC for ; Tue, 9 Feb 2016 16:07:31 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 06C9320254 for ; Tue, 9 Feb 2016 16:07:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aTAmX-0005ct-EU; Tue, 09 Feb 2016 16:04:49 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aTAmW-0005cl-Io for xen-devel@lists.xensource.com; Tue, 09 Feb 2016 16:04:48 +0000 Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id D4/7D-28791-F1E0AB65; Tue, 09 Feb 2016 16:04:47 +0000 X-Env-Sender: prvs=840b1d678=Stefano.Stabellini@citrix.com X-Msg-Ref: server-6.tower-27.messagelabs.com!1455033885!22635816!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 33939 invoked from network); 9 Feb 2016 16:04:47 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 9 Feb 2016 16:04:47 -0000 X-IronPort-AV: E=Sophos;i="5.22,421,1449532800"; d="scan'208";a="337044311" Date: Tue, 9 Feb 2016 16:03:56 +0000 From: Stefano Stabellini X-X-Sender: sstabellini@kaball.uk.xensource.com To: Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Jackson , Wei Liu , Ian Campbell , Stefano Stabellini Subject: [Xen-devel] [PATCH] docs: document shortcomings of running QEMU as non-root X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Running QEMU as non-root causes migration and PCI passthrough not to work properly. Migration can be fixed rather easily (http://marc.info/?l=xen-devel&m=145382864118600), but PCI passthrough cannot (http://marc.info/?l=xen-devel&m=145286946113964). Signed-off-by: Stefano Stabellini Acked-by: Ian Jackson diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 index 8899f75..40690bd 100644 --- a/docs/man/xl.cfg.pod.5 +++ b/docs/man/xl.cfg.pod.5 @@ -1840,6 +1840,8 @@ option to the device-model. Run the device model as user "username", instead of xen-qemudepriv-domid$domid or xen-qemudepriv-shared or root. +Please note that running QEMU as non-root causes migration and PCI +passthrough not to work properly. =back diff --git a/docs/misc/qemu-deprivilege.txt b/docs/misc/qemu-deprivilege.txt index dde74ab..879a98e 100644 --- a/docs/misc/qemu-deprivilege.txt +++ b/docs/misc/qemu-deprivilege.txt @@ -29,3 +29,7 @@ adduser --no-create-home --system xen-qemuuser-shared 3) root As a last resort, libxl will start QEMU as root. + + +Please note that running QEMU as non-root causes migration and PCI +passthrough not to work properly.