[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 0/4] tools/ocaml/libs/xc: domid control at domain creation time


  • To: Edwin Torok <edvin.torok@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Christian Lindig <christian.lindig@xxxxxxxxxx>
  • Date: Wed, 18 Nov 2020 10:46:03 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lTTHZPlnsZ/uKtKoOoXfEjYbBdMzIjdnd9G2ZQNTfqU=; b=J6PFVrG+OxhCCZlqbCiZsKp4W4LACudK9zPngpEYRRvEOAaZd6E4zNuwTM/mxgRNyQPT9p9fLg6AfJOq/m/3VqMQyxUMPLiKtE0OmEruU2olOuEuH/57B72s94hsdby20A6AotuPTbxASJfj4dq1mPVXuB5r1g4JdDkpME6AIXhw0oax4nEzvZCWYSyxyWz9bcgpV8Rain1OqtP4vTw4c8PgHwXXUrscKzrdnCQnuUlGi9PJ/ioXvkY2isETtwZ+i/5WYJB2fJovjjhD4qOhf3rWE8x41GIchvu8yv0CeV2LVCRtqcgzayuxPfA6YsWQzaMGLyOOOztrip+yCJ59Yw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MqjJToQqHsWivQTMYkSPujSMOGJaLRfZlICwy1MOPSByOaAqbJrw5Z1gPKStBcbuB3qbypxzEufAKEWLgBxd5MxJIlh2TLttDqjLt+IVvNOYo2Oe9g+Q52O7PHNEPRlLHIM7fOTAYdOVoTI8R8MZRj0HFeG4LQp5Aypb7blzotf+DVP58ckiNTO4tja+XTEobD6F+r7q2hnBi4/5KefPK12o9zV2CJGqtZRKQWhRbSioKV3XDCxjxZiSPsLoW1YiUyEhx/akM+n/aTmiC60EG4VNlUXdCQRJTCn/iv2e9YNzQdzo6bbXSyUSr50O8obc5fOg9Zg0OtSFPseXLxHwxg==
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Doug Goldstein <cardoe@xxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, "Ian Jackson" <iwj@xxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, David Scott <dave@xxxxxxxxxx>
  • Delivery-date: Wed, 18 Nov 2020 10:46:55 +0000
  • Ironport-sdr: 1tWbEBLXUmBVlwxZZLLlvq82I0Zrbqa3Dih2OPssJw0McBDKgOg6BkwcOtxbT2uIkEZSyMZedK apGoUTZ/rkup4Kyi1JMu4LetNiPCjmeIyLerWfD6zHmEdWv4PpYnx54rUtCRy+8TcdlZhVW5Le mITmaBpSK9/2s34tv0aok/6M9G2FfODpI74Ospvjq5o8VZTy7gaD/bJbgPbVy7XI0omU3hKTWl A2c2gyv5u4MfPg9CaUZGRiDT/wXNzMzh2IvhShgSyOT15h2ZIyrOsyQnC4XzqlZT1/OmwH50ZW iDI=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWvQ7kpc/nzF74N0aOmOwyv2vIBKnNtIjn
  • Thread-topic: [PATCH v1 0/4] tools/ocaml/libs/xc: domid control at domain creation time

I like the improvements for the build process but I wonder whether these should 
be mixed with functional code changes. But that is only a cosmetic concern as 
it might impact identifying patches when they are backported. The code change 
looks good to me, too. I support moving to Dune for building the OCaml part in 
the future.

Acked-by: Christian Lindig <christian.lindig@xxxxxxxxxx>

________________________________________
From: Edwin Török <edvin.torok@xxxxxxxxxx>
Sent: 17 November 2020 18:24
To: xen-devel@xxxxxxxxxxxxxxxxxxxx
Cc: Edwin Torok; Doug Goldstein; Andrew Cooper; George Dunlap; Ian Jackson; Jan 
Beulich; Julien Grall; Stefano Stabellini; Wei Liu; Christian Lindig; David 
Scott
Subject: [PATCH v1 0/4] tools/ocaml/libs/xc: domid control at domain creation 
time

The xl toolstack allows some control over the domid at VM creation time,
allow xenopsd similar control by exposing the appropriate domid field in the 
OCaml xenctrl bindings.
A new API function is introduced to preserve backwards compatibility without 
merge ordering
requirements between the Xen and xenopsd patches: Xen can merge the patch and 
xenopsd will keep
building with the old function, and a new version of xenopsd will start using 
the new function.

I've also included some build system fixes to allow me to test the build
in an upstream build environment:
```
cd automation/build
podman build -t registry.gitlab.com/xen-project/xen/ubuntu:focal -f 
ubuntu/focal.dockerfile ubuntu
DOCKER_CMD=podman CONTAINER_NO_PULL=1 
CONTAINER=registry.gitlab.com/xen-project/xen/ubuntu:focal 
automation/scripts/containerize make build-tools-oxenstored
```

It'd be good if someone could test whether containerize still works on 
non-SELinux systems now, or
whether we need more detection logic in the script.

This works around bugs in the OCaml makefiles that end up in "inconsistent 
assumptions" by doing a
'make clean' before building the OCaml files every time. This is inefficient, 
but works.
Long term it would be beneficial to switch to Dune as build system,
which can do correct incremental builds with minimal configuration.
I'll send a separate patch series for that.

Edwin Török (4):
  automation/scripts/containerize: fix DOCKER_CMD=podman
  automation/: add Ubuntu:focal container
  Makefile: add build-tools-oxenstored
  tools/ocaml/libs/xc: backward compatible domid control at domain
    creation time

 Makefile                                 |  6 +++
 automation/build/ubuntu/focal.dockerfile | 50 ++++++++++++++++++++++++
 automation/scripts/containerize          |  7 ++--
 tools/ocaml/Makefile                     |  8 ++++
 tools/ocaml/libs/xc/xenctrl.ml           |  3 ++
 tools/ocaml/libs/xc/xenctrl.mli          |  2 +
 tools/ocaml/libs/xc/xenctrl_stubs.c      |  9 ++++-
 7 files changed, 80 insertions(+), 5 deletions(-)
 create mode 100644 automation/build/ubuntu/focal.dockerfile

--
2.18.4




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.