From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 99872E7716E for ; Wed, 4 Dec 2024 14:48:20 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.848625.1263462 (Exim 4.92) (envelope-from ) id 1tIqfe-0000XY-Ev; Wed, 04 Dec 2024 14:48:06 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 848625.1263462; Wed, 04 Dec 2024 14:48:06 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tIqfe-0000XR-BS; Wed, 04 Dec 2024 14:48:06 +0000 Received: by outflank-mailman (input) for mailman id 848625; Wed, 04 Dec 2024 14:48:05 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tIqfd-0000XL-2K for xen-devel@lists.xenproject.org; Wed, 04 Dec 2024 14:48:05 +0000 Received: from mail136-20.atl41.mandrillapp.com (mail136-20.atl41.mandrillapp.com [198.2.136.20]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c2ee70d5-b24e-11ef-a0d4-8be0dac302b0; Wed, 04 Dec 2024 15:48:03 +0100 (CET) Received: from pmta11.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail136-20.atl41.mandrillapp.com (Mailchimp) with ESMTP id 4Y3L3j0dMDzCf9Q9t for ; Wed, 4 Dec 2024 14:48:01 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 78a7af3d9efe4da895ea52e44101c412; Wed, 04 Dec 2024 14:48:01 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c2ee70d5-b24e-11ef-a0d4-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1733323681; x=1733584181; bh=u35DPZ8ea1kMaR4tSzEAnpDkJRruFsNUg1/+5+OYYAY=; h=From:Subject:Message-Id:To:Cc:References:In-Reply-To:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=aZ5NTpH5L0jVYhaSp06jSRH5qBinj0rX3TOqIQaKxEsm/J0i2G1S7z3JKX6KZkqdt 30Pnn1wXVsuS3i3FWXsxy+8rFryVEqk34Vj8BGfWJMuG4VV1Lqqo64dgznda6VMtm+ vn+kzE7wPmIm9hVFvyFQEWfvtPj35tRisXgQlN9FFtsXC5ht4rPYG3psOzAMdZ18H5 bHGlmFAf6/j8k0x86NX/ef/WJcrp4KyKkpLvtk2PUt8j3QrcY9kdvGCktKvcSUQx24 /6C1gNsS1fsibtgWRuImvlpi78/mKw+o+z53eQXZwhpq0WQMc99wJVi2v0wfYx81DI KG/JwIZy64Txg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1733323681; x=1733584181; i=teddy.astie@vates.tech; bh=u35DPZ8ea1kMaR4tSzEAnpDkJRruFsNUg1/+5+OYYAY=; h=From:Subject:Message-Id:To:Cc:References:In-Reply-To:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=fsNVnAHqsZ2UnMRdfaXjGuKee9vrmkzZZ4GAHy11d8VxKM7ae8ph8Cdnq5I4h0z2D TTNVOAG8yXTTmWBetYtrMVbEg3CHvAtWLKha/xQW5wrSwvHK6YMQfIieMMO4rWAC7d k8YDUXi4CpCdLhdESO3ibTVFTHE7Qo9bUlTFLfPFSiGRsK5doEOsg0k4NOoa1bJ6Sh AHRjut227qC9Sj/6oi/Gvyopmo8psDQax5Kdd8Rltmne75l6GLSSRRaEVwJdVGVbKW P/Z8Bvv9NCFKnmDjIRydGN6iug0STAoa0QIECn88F7L7+oUMiR4Ay3Nrkh7gILb20b YvKvEqIJrQvAw== From: "Teddy Astie" Subject: =?utf-8?Q?Re:=20[RFC=20PATCH=2019/25]=20xen:=20Replace=20hand-crafted=20domctl/createdomain=20with=20autogenerated=20version?= X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1733323679366 Message-Id: To: "Alejandro Vallejo" , xen-devel@lists.xenproject.org Cc: "Anthony PERARD" , "Andrew Cooper" , "Jan Beulich" , "Julien Grall" , "Stefano Stabellini" , "Daniel P. Smith" References: <20241115115200.2824-1-alejandro.vallejo@cloud.com> <20241115115200.2824-20-alejandro.vallejo@cloud.com> In-Reply-To: <20241115115200.2824-20-alejandro.vallejo@cloud.com> X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.78a7af3d9efe4da895ea52e44101c412?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20241204:md Date: Wed, 04 Dec 2024 14:48:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello, There is a alternative relevant way of representing "handle" (keeping : > +[[structs.fields]] > +name = "handle" > +description = "IN: Unique identifier for this guest given by the toolstack." > +typ = { tag = "array", args = [{ tag = "u8" }, 16] } > + We can introduce a "guest_handle" type which is represented either as : - C: xen_guest_handle_t (basically uint8_t[16]) - Rust: uuid::Uuid (which is uuid::Bytes thus [u8; 16]) [1] (we would need to add uuid = "1" as a dependency on xen-sys) The toolstack currently uses and represents this handle as a UUID, so I suppose we can keep this representation and being able to manipulate those as Uuid as well (and having new_v4 functions and similar). [1] https://docs.rs/uuid/1.11.0/uuid/struct.Uuid.html#abi Cheers Teddy Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech