From patchwork Fri Jan 31 15:01:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 11360033 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3AE3A924 for ; Fri, 31 Jan 2020 15:03:24 +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 1758B20707 for ; Fri, 31 Jan 2020 15:03:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="TOWgt3Tp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1758B20707 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.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 1ixXnz-0005ve-1J; Fri, 31 Jan 2020 15:01:59 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ixXnx-0005vV-QD for xen-devel@lists.xenproject.org; Fri, 31 Jan 2020 15:01:57 +0000 X-Inumbo-ID: a0217ed2-443a-11ea-a933-bc764e2007e4 Received: from smtp-fw-6001.amazon.com (unknown [52.95.48.154]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a0217ed2-443a-11ea-a933-bc764e2007e4; Fri, 31 Jan 2020 15:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1580482918; x=1612018918; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TsPomRxi83w4jxEEvSxBq4v/vzEYIDZVuW5ccWSULaw=; b=TOWgt3Tp4JhdXS6cl5qLSRjHwNfhHTH6PqYLbAhcs2yF78EbH03sEJX0 tEE7yQ6//2FdObbnn08oTBcNQOdnP7H74w0rmouhquFEeWm75eOv8aZK+ sEletdDowclLstXt4O9TIE6BQS7pehpqDsfWKfplUCMUEMgCF1m+JLBCP g=; IronPort-SDR: OLClPYiO6wnkoEG47kHNDxMx2vYEINmz29uOw+9VpgoHu1IOLnzgblP7e5hw6gK7E3ZD8HeVH0 fhdbECwXeN+A== X-IronPort-AV: E=Sophos;i="5.70,386,1574121600"; d="scan'208";a="15640778" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-6f38efd9.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 31 Jan 2020 15:01:55 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2c-6f38efd9.us-west-2.amazon.com (Postfix) with ESMTPS id 53EA2A2470; Fri, 31 Jan 2020 15:01:54 +0000 (UTC) Received: from EX13D32EUC002.ant.amazon.com (10.43.164.94) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Fri, 31 Jan 2020 15:01:54 +0000 Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX13D32EUC002.ant.amazon.com (10.43.164.94) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 31 Jan 2020 15:01:53 +0000 Received: from u2f063a87eabd5f.cbg10.amazon.com (10.125.106.135) by mail-relay.amazon.com (10.43.62.224) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 31 Jan 2020 15:01:50 +0000 From: Paul Durrant To: Date: Fri, 31 Jan 2020 15:01:42 +0000 Message-ID: <20200131150149.2008-1-pdurrant@amazon.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: Bulk Subject: [Xen-devel] [PATCH v5 0/7] xl/libxl: domid allocation/preservation changes X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , Wei Liu , Jason Andryuk , George Dunlap , Andrew Cooper , Paul Durrant , Konrad Rzeszutek Wilk , Ian Jackson , Anthony PERARD Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Paul Durrant (7): libxl: add definition of INVALID_DOMID to the API libxl_create: make 'soft reset' explicit libxl: generalise libxl__domain_userdata_lock() libxl: add infrastructure to track and query 'recent' domids libxl: allow creation of domains with a specified or random domid xl.conf: introduce 'domid_policy' xl: allow domid to be preserved on save/restore or migrate docs/man/xl.1.pod.in | 14 +++ docs/man/xl.conf.5.pod | 10 ++ tools/examples/xl.conf | 4 + tools/helpers/xen-init-dom0.c | 30 +++++ tools/libxl/libxl.h | 15 ++- tools/libxl/libxl_create.c | 125 ++++++++++++++----- tools/libxl/libxl_device.c | 4 +- tools/libxl/libxl_disk.c | 12 +- tools/libxl/libxl_dm.c | 2 +- tools/libxl/libxl_dom.c | 12 +- tools/libxl/libxl_domain.c | 218 ++++++++++++++++++++++++++++++++-- tools/libxl/libxl_internal.c | 67 +++++++---- tools/libxl/libxl_internal.h | 30 +++-- tools/libxl/libxl_mem.c | 8 +- tools/libxl/libxl_pci.c | 4 +- tools/libxl/libxl_types.idl | 1 + tools/libxl/libxl_usb.c | 8 +- tools/xl/xl.c | 10 ++ tools/xl/xl.h | 2 + tools/xl/xl_cmdtable.c | 6 +- tools/xl/xl_migrate.c | 15 ++- tools/xl/xl_saverestore.c | 19 ++- tools/xl/xl_utils.h | 2 - tools/xl/xl_vmcontrol.c | 3 + xen/include/public/xen.h | 3 + 25 files changed, 517 insertions(+), 107 deletions(-) --- Cc: Andrew Cooper Cc: Anthony PERARD Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Jason Andryuk Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Wei Liu