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 4E254D7497F for ; Wed, 30 Oct 2024 08:45:49 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.827917.1242680 (Exim 4.92) (envelope-from ) id 1t64KR-00015W-KI; Wed, 30 Oct 2024 08:45:23 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 827917.1242680; Wed, 30 Oct 2024 08:45:23 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t64KR-00015P-G0; Wed, 30 Oct 2024 08:45:23 +0000 Received: by outflank-mailman (input) for mailman id 827917; Wed, 30 Oct 2024 08:45:22 +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 1t64KP-00015J-UT for xen-devel@lists.xenproject.org; Wed, 30 Oct 2024 08:45:22 +0000 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [2a00:1450:4864:20::131]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 484604c7-969b-11ef-a0c3-8be0dac302b0; Wed, 30 Oct 2024 09:45:14 +0100 (CET) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-539f2b95775so7278325e87.1 for ; Wed, 30 Oct 2024 01:45:14 -0700 (PDT) Received: from smtpclient.apple ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b1dec818bsm557506666b.17.2024.10.30.01.45.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Oct 2024 01:45:13 -0700 (PDT) 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: 484604c7-969b-11ef-a0c3-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDA6MTQ1MDo0ODY0OjIwOjoxMzEiLCJoZWxvIjoibWFpbC1sZjEteDEzMS5nb29nbGUuY29tIn0= X-Custom-Transaction: eyJpZCI6IjQ4NDYwNGM3LTk2OWItMTFlZi1hMGMzLThiZTBkYWMzMDJiMCIsInRzIjoxNzMwMjc3OTE0LjkxMTMxLCJzZW5kZXIiOiJjaHJpc3RpYW4ubGluZGlnQGNsb3VkLmNvbSIsInJlY2lwaWVudCI6Inhlbi1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZyJ9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.com; s=cloud; t=1730277914; x=1730882714; darn=lists.xenproject.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ya9siQaff7yrs6VkC2sMft2PPhKGAsqT/t4iJJBvyBs=; b=RQ3ynDPV8Ti0VB9a9UAPARusD0MrVSebZN67YiDQ/469KdBMGgEcaNtpo1gh7iLz6t vhMqZRIynphUQat/Z0frY82ctU0EXPFTeUEjk+pxyGQhKjmnDdqhgfiM14gNANKigFnR dlD27bRIV6C4N9jyvhFpGwLoi2HF4kNcwsz2w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730277914; x=1730882714; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ya9siQaff7yrs6VkC2sMft2PPhKGAsqT/t4iJJBvyBs=; b=L4lzp6nkHm/AXc8wbyb05CcZU/n01lUtNagHhVz/WrmYQm8Hu0gnkSi4FfoS49A14L WeU7QSyDZ5KnOC74oXcRbddDitiIPr4qfuwKoC4Uhayy4eu0vXuuxPyPvIbCPZQm7YOn HICk/5WEq3KPQw0QTe9OqdyC1fZ6oa3BBxLZXQERwRreynYU2CHywT60tDzCtk6nrXU2 wpC1yAi9OHdSx+9rhySni1s3zoc6+sKH1fzxs7gYOrginhhfuq1oHJs/HMt+EyjdXtBV joAgmG1WyerMbAxZWvattIbPi71XcNDQQKeup4e/jXf7T11h1faVJNHTsEO4SSsjCzT2 Gckw== X-Gm-Message-State: AOJu0Ywl6gazs4lNIyQfLRbuvhpHP398tCW+Um8R5dxAx0RBEzO7Dl3X oTzzZCylISifGOBQ0fIEwzBrB8L6ZDEHZGaqAlWxDVNpB182GupmHjLujmHQURo= X-Google-Smtp-Source: AGHT+IHH5vfdUbKdl4OijcycyqkYsKiP+5hhbqtQ2CuHYNyXjTyq4MYLhWC7cf27g1ji8Gj5TgrYyg== X-Received: by 2002:a05:6512:1285:b0:539:9ee4:baab with SMTP id 2adb3069b0e04-53b348daf62mr12360026e87.30.1730277913850; Wed, 30 Oct 2024 01:45:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [RFC PATCH 0/6] xen/abi: On wide bitfields inside primitive types From: Christian Lindig In-Reply-To: <20241029181632.69600-1-alejandro.vallejo@cloud.com> Date: Wed, 30 Oct 2024 08:45:01 +0000 Cc: Xen-devel , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini , Juergen Gross , Anthony PERARD , =?utf-8?Q?Marek_Marczykowski-G=C3=B3recki?= , Christian Lindig , David Scott , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , =?utf-8?Q?Roger_Pau_Monn=C3=A9?= Content-Transfer-Encoding: quoted-printable Message-Id: References: <20241029181632.69600-1-alejandro.vallejo@cloud.com> To: Alejandro Vallejo X-Mailer: Apple Mail (2.3774.600.62) > On 29 Oct 2024, at 18:16, Alejandro Vallejo = wrote: >=20 >=20 > The invariant I'd like to (slowly) introduce and discuss is that = fields may > have bitflags (e.g: a packed array of booleans indexed by some = enumerated > type), but not be mixed with wider fields in the same primitive type. = This > ensures any field containing an integer of any kind can be referred by = pointer > and treated the same way as any other with regards to sizeof() and the = like. Acked-by: Christian Lindig Fine with me but the OCaml part is not very exposed to this. =E2=80=94 C=