From patchwork Wed Jan 22 14:44:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 11345855 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 6E9B56C1 for ; Wed, 22 Jan 2020 14:46:03 +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 4B2622465B for ; Wed, 22 Jan 2020 14:46:03 +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="jrfTU/oi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B2622465B 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 1iuHFe-0000Xs-Pg; Wed, 22 Jan 2020 14:45:02 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iuHFe-0000Xe-1c for xen-devel@lists.xenproject.org; Wed, 22 Jan 2020 14:45:02 +0000 X-Inumbo-ID: c464c702-3d25-11ea-bc65-12813bfff9fa Received: from smtp-fw-9102.amazon.com (unknown [207.171.184.29]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id c464c702-3d25-11ea-bc65-12813bfff9fa; Wed, 22 Jan 2020 14:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1579704302; x=1611240302; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=989W5ywbbhDgDaOidbtY9X0lg29qiVLCF4vo4EmDHLU=; b=jrfTU/oiZ8l0ZBlJ0Tb+pUokG88Y3FeMwVbNtoNzmProc9LXBo5IAhku 3jDnd1pQjJ+X3eIIT/B7GqKzeK/1BifQkbQ4upIWXCKC/v+mrDk3lH5R+ MPo72gRjj9dIqqDnjmZeJNSnyIZuliEJb6uLH0bBOjaDze08uEpKA83UQ I=; IronPort-SDR: YrD71l6OGVJYhmW/k03fZyRh+x8xd1sVaMMiAc0Mppf+4iVIoi6SxbQLDxfd5WCRkG/U2AEC8V oyjC4FcZwchw== X-IronPort-AV: E=Sophos;i="5.70,350,1574121600"; d="scan'208";a="20373682" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1d-37fd6b3d.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 22 Jan 2020 14:44:51 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-37fd6b3d.us-east-1.amazon.com (Postfix) with ESMTPS id F4205286730 for ; Wed, 22 Jan 2020 14:44:49 +0000 (UTC) Received: from EX13D32EUB004.ant.amazon.com (10.43.166.212) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Wed, 22 Jan 2020 14:44:49 +0000 Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX13D32EUB004.ant.amazon.com (10.43.166.212) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 22 Jan 2020 14:44:48 +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; Wed, 22 Jan 2020 14:44:47 +0000 From: Paul Durrant To: Date: Wed, 22 Jan 2020 14:44:39 +0000 Message-ID: <20200122144446.919-1-pdurrant@amazon.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: Bulk Subject: [Xen-devel] [PATCH v4 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: Paul Durrant Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This series was previously named "xl/libxl: allow creation of domains with a specified domid". 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 | 105 ++++++++++++++++++------ 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 | 149 ++++++++++++++++++++++++++++++++-- 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, 432 insertions(+), 103 deletions(-)