From patchwork Mon Mar 11 18:02:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Andryuk X-Patchwork-Id: 10847973 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 78D606C2 for ; Mon, 11 Mar 2019 18:12:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 613692901B for ; Mon, 11 Mar 2019 18:12:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 509DA2922D; Mon, 11 Mar 2019 18:12:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F1C162901B for ; Mon, 11 Mar 2019 18:12:24 +0000 (UTC) Received: from localhost ([127.0.0.1]:38082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3PPU-00019x-9y for patchwork-qemu-devel@patchwork.kernel.org; Mon, 11 Mar 2019 14:12:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3PGT-0002fh-Kz for qemu-devel@nongnu.org; Mon, 11 Mar 2019 14:03:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3PGS-00021N-T0 for qemu-devel@nongnu.org; Mon, 11 Mar 2019 14:03:05 -0400 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]:44750) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3PGS-000200-OW for qemu-devel@nongnu.org; Mon, 11 Mar 2019 14:03:04 -0400 Received: by mail-qk1-x742.google.com with SMTP id u22so3268795qkj.11 for ; Mon, 11 Mar 2019 11:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eGDwXjMtZOG2B5LlUpQ0z1MceU93kiKxAuzwu5k0+mg=; b=DbCGi6BnrevEKhIq5hqt28rD31G6zySoHnxp1nkaDSaxyaLIdYHxzzz6Yx9QTR9nS1 8614oRT4dN0cgPFSOAarBDYu4+b7YOM04Sy9ZDXwO0OFhrYceX4US+/eNxr7pNZaBX6O 65Mp22Ux1aytTYToLx5vcd2vUDM2/nJ4agvu7Sdlheci47KUcm+hj89Q4yAzQ0aVmor8 s4ZALB+aIVZtPxpvZozEioP3kjCduSp3MpLpMgCiOjRiV7/g5+vG8DO2MK/7JtN6Pryv vqGF2+HeLKuA9zy7l/w/wboYugBwNzTkxdGpI9v5S0i0hvsnGMl6zk29ZGFuaTobIzbZ GYaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eGDwXjMtZOG2B5LlUpQ0z1MceU93kiKxAuzwu5k0+mg=; b=MWsOG78LGNmbi7jbnpHRtn0V/5NhUhU3g+mTQDDLkcEIFbDaDVf0JdSABOLb1p0u6N vPyZIRMyvFhkLgp1JPWps6FQm5Cy4N7lElzNFXh/BFP7O7BiBOE0HJgGn1vK7m3RO/Ci alkNVKHzP2JS3UTjs83X9umMl5M059wBir7CWLNBFFG3of3Ac5GbvbSEC4lfaV+D8yVe kTYJbRtiM+TbJFqwGBnwE0+SCaZYkAAdjBReCENjLh2XDJ8F2kSe6mgGnJLf35cDFJ1Y cK2Du12wtkcEHyRG19yBDO82pMAKiQXACAEb3JW2yGKZAM0UGFvqJQ6c+r+0OrWudpVD niyQ== X-Gm-Message-State: APjAAAVqbK4558TNXEB0tcAIpbKOXEUXbOYvEC8JLgLKqYRyGqd3Epuf fdo+8+cjgvqatl9VEIh4NT4VLAZ/OVk= X-Google-Smtp-Source: APXvYqzCpeTnVPrH1H6V8//4c7aAcyOKUY4CK0tP4XaStOp91ih1dvpux1EajxCzBeGfR4bN53XXMQ== X-Received: by 2002:a05:620a:13b0:: with SMTP id m16mr24643723qki.74.1552327383019; Mon, 11 Mar 2019 11:03:03 -0700 (PDT) Received: from pm2-ws13.praxislan02.com ([2001:470:8:67e:ba27:ebff:fee8:ce27]) by smtp.gmail.com with ESMTPSA id f126sm4687637qka.14.2019.03.11.11.03.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Mar 2019 11:03:02 -0700 (PDT) From: Jason Andryuk To: qemu-devel@nongnu.org Date: Mon, 11 Mar 2019 14:02:10 -0400 Message-Id: <20190311180216.18811-1-jandryuk@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::742 Subject: [Qemu-devel] [PATCH 0/6] Xen stubdom support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Eduardo Habkost , Jason Andryuk , "Michael S. Tsirkin" , marmarek@invisiblethingslab.com, Paul Durrant , Paolo Bonzini , Anthony Perard , xen-devel@lists.xenproject.org, Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Xen supports running QEMU in a dedicated service vm - a stub domain or stubdom. QEMU is then isolated outside of the privileged Domain-0. When running in a stubdom, there are a few changes needed for QEMU. On older Xen versions, the default ioreq server needs to have the stubdom's domid specified. The stubdom doesn't run PV backends, so that initialization code can be skipped. Stubdom's don't support MSI-X, so that PCI capability must be hidden from passed through devices. Stubdom mode is enabled by the new -xen-stubdom flag. Jason Andryuk (5): xen: Introduce -xen-stubdom option xen: Move xenstore initialization to common location xen: Skip backend initialization for stubdom xen: Set HVM_PARAM_DM_DOMAIN for stubdom on older Xen xen-pt: Hide MSI-X from xen stubdoms Simon Gaiser (1): xen-pt: Round pci regions sizes to XEN_PAGE_SIZE hw/i386/xen/xen-hvm.c | 22 ++++++++++++++++------ hw/xen/xen-legacy-backend.c | 8 -------- hw/xen/xen_pt.c | 10 +++++++--- hw/xen/xen_pt_config_init.c | 3 +++ include/hw/xen/xen.h | 6 ++++++ include/hw/xen/xen_common.h | 5 +++++ qemu-options.hx | 7 +++++++ vl.c | 8 ++++++++ 8 files changed, 52 insertions(+), 17 deletions(-)