From patchwork Wed Feb 19 09:37:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 11390801 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 36AFC930 for ; Wed, 19 Feb 2020 09:39:55 +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 134382464E for ; Wed, 19 Feb 2020 09:39:55 +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="QlK8jNcd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 134382464E 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 1j4Lo1-000815-AK; Wed, 19 Feb 2020 09:38:09 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4Lo0-00080x-EX for xen-devel@lists.xenproject.org; Wed, 19 Feb 2020 09:38:08 +0000 X-Inumbo-ID: 88d6df18-52fb-11ea-ade5-bc764e2007e4 Received: from smtp-fw-9101.amazon.com (unknown [207.171.184.25]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 88d6df18-52fb-11ea-ade5-bc764e2007e4; Wed, 19 Feb 2020 09:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1582105088; x=1613641088; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=yg7o8S8w/OaiAsKObTFlQkRRM3fJgBa2l/qu3NlRATY=; b=QlK8jNcdgMidc7GJFpQEc6SAsaa2WepXf7mWZMdA7Ow8idzoooXOdhFZ TOq/dSX+8rMK8Aror8Iz3c7OfrjfxwmBBX9y1eq76jFZOe/d/dwxAg5WY 1jOyVGdJuMx8Pwxj3a7tgF2XhuvkD3ESiJdtVNI532lZUc+Nzl1nd+Q/0 E=; IronPort-SDR: uvzvtUT91hMfbvKOpjkDTYQYwmzu6LZsvaqLYogOb5uWyRZUwuV1JDEmBKrhiebEjeVpSxiJAD IghCh5soJN7w== X-IronPort-AV: E=Sophos;i="5.70,459,1574121600"; d="scan'208";a="17657431" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-7d76a15f.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 19 Feb 2020 09:38:05 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-7d76a15f.us-east-1.amazon.com (Postfix) with ESMTPS id 252F3A311B; Wed, 19 Feb 2020 09:38:01 +0000 (UTC) Received: from EX13D32EUB002.ant.amazon.com (10.43.166.114) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Wed, 19 Feb 2020 09:38:00 +0000 Received: from EX13MTAUEB002.ant.amazon.com (10.43.60.12) by EX13D32EUB002.ant.amazon.com (10.43.166.114) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 19 Feb 2020 09:38:00 +0000 Received: from u2f063a87eabd5f.cbg10.amazon.com (10.125.106.135) by mail-relay.amazon.com (10.43.60.234) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 19 Feb 2020 09:37:57 +0000 From: Paul Durrant To: Date: Wed, 19 Feb 2020 09:37:48 +0000 Message-ID: <20200219093754.2924-1-pdurrant@amazon.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: Bulk Subject: [Xen-devel] [PATCH v6 0/6] 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 , Jan Beulich , Anthony PERARD Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Paul Durrant (6): libxl: add infrastructure to track and query 'recent' domids libxl: modify libxl__logv() to only log valid domid values public/xen.h: add a definition for a 'valid domid' mask 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 | 16 +++ tools/libxl/libxl_create.c | 76 +++++++++++- tools/libxl/libxl_domain.c | 222 ++++++++++++++++++++++++++++++++++ tools/libxl/libxl_internal.c | 12 +- tools/libxl/libxl_internal.h | 14 +++ tools/libxl/libxl_types.idl | 1 + 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_vmcontrol.c | 3 + xen/include/public/xen.h | 3 + 17 files changed, 439 insertions(+), 18 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