From nobody Mon Sep 16 20:09:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1694440358; cv=none; d=zohomail.com; s=zohoarc; b=bs1vPLamGbIhYDpVodNrVHBq/3kAFqJy84kIjpwBrVomTZNmwSvzNPiAP5Nyeqn1lYbPMwSkJOcuYVETXkoJyBUoMwc9nPsjcex4WT1Fh0UFBA8nH99dN7Skn8aLAQA3fv3bN5C+cbsqFGxeF7lUpynK0RrUupYkuK8jIFUtRc4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694440358; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Icw+GmGWSwbs/Puo2aOv1M+2Rb4+FTZ7Je7ss5po/r8=; b=gBe+9rbL+L68j150Fc/ZDiTZIlFXJC/fzq2OxmwISw7ANHQkDL5rqaZsHJsFs7x0j+FUkAVndNGW8ScQNvlN59WMZmWnl+kSq7EHXP4wVdpa6VhSJwUeKWOdoHepMix/rozOcwTL9mtZh3xtUSJVrW+0ydp3HhEZVdPamGU4ynI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1694440358323845.9980878752947; Mon, 11 Sep 2023 06:52:38 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-52-VG_3DRpmODmibTiz2hKWWQ-1; Mon, 11 Sep 2023 09:52:35 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1A5B88F8763; Mon, 11 Sep 2023 13:52:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 003692026D4B; Mon, 11 Sep 2023 13:52:31 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id CD2801946A4B; Mon, 11 Sep 2023 13:52:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BCA831946597 for ; Mon, 11 Sep 2023 13:52:29 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 9D7A610005D2; Mon, 11 Sep 2023 13:52:29 +0000 (UTC) Received: from fedora.. (unknown [10.43.2.118]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4500810F1BE7 for ; Mon, 11 Sep 2023 13:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694440357; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Icw+GmGWSwbs/Puo2aOv1M+2Rb4+FTZ7Je7ss5po/r8=; b=UJ0qjveFKF3HTM10kC39cJFZh42nsstSdb0TM6WzwR7bR4Xix/cddXEU4EKGLPut4Rsvs6 oCS9Sd4hslGdueDXwE3orj2sRaMJrWZ3U0QsnvxAmhFP/nL7NtgOuNytATSGdB4Nkt6rvG G7PSPtp102KWdBM7Tv0myX46KMUGQYE= X-MC-Unique: VG_3DRpmODmibTiz2hKWWQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCHv1 2/8] conf: move idmap definition earlier Date: Mon, 11 Sep 2023 15:51:22 +0200 Message-ID: <0bfee163f95f5bab8e21c1687313bc9e0d7fd01b.1694440288.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1694440397652100001 Signed-off-by: J=C3=A1n Tomko --- src/conf/domain_conf.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index ca195a52d2..8937968e3b 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -802,6 +802,20 @@ struct _virDomainControllerDef { virDomainVirtioOptions *virtio; }; =20 +struct _virDomainIdMapEntry { + unsigned int start; + unsigned int target; + unsigned int count; +}; + +struct _virDomainIdMapDef { + size_t nuidmap; + virDomainIdMapEntry *uidmap; + + size_t ngidmap; + virDomainIdMapEntry *gidmap; +}; + =20 /* Types of disk backends */ typedef enum { @@ -2695,20 +2709,6 @@ virDomainMemoryDef *virDomainMemoryDefNew(virDomainM= emoryModel model); void virDomainMemoryDefFree(virDomainMemoryDef *def); G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainMemoryDef, virDomainMemoryDefFree); =20 -struct _virDomainIdMapEntry { - unsigned int start; - unsigned int target; - unsigned int count; -}; - -struct _virDomainIdMapDef { - size_t nuidmap; - virDomainIdMapEntry *uidmap; - - size_t ngidmap; - virDomainIdMapEntry *gidmap; -}; - =20 typedef enum { VIR_DOMAIN_PANIC_MODEL_DEFAULT, --=20 2.41.0