From nobody Mon Feb 9 19:04:45 2026 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; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=126.com 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 1651918332966260.06521228808924; Sat, 7 May 2022 03:12:12 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-664-6s84WsPoPY6a0PZbnBzxrg-1; Sat, 07 May 2022 06:12:04 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3DBEE294EDC2; Sat, 7 May 2022 10:12:02 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2865A15387C0; Sat, 7 May 2022 10:12:02 +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 D9A3019451F1; Sat, 7 May 2022 10:12:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 621841947B85 for ; Sat, 7 May 2022 10:11:59 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 45C3F56BC91; Sat, 7 May 2022 10:11:59 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 41C3356BC90 for ; Sat, 7 May 2022 10:11:59 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (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 2A2E6803D47 for ; Sat, 7 May 2022 10:11:59 +0000 (UTC) Received: from m15112.mail.126.com (m15112.mail.126.com [220.181.15.112]) by relay.mimecast.com with ESMTP id us-mta-265-OUl83EHZOpq0TZlJwb0-ug-1; Sat, 07 May 2022 06:11:56 -0400 Received: from zhangjl0200.home.langchao.com (unknown [223.104.194.177]) by smtp2 (Coremail) with SMTP id DMmowAA3QwaGPnZisf0UBQ--.6647S4; Sat, 07 May 2022 17:40:27 +0800 (CST) X-MC-Unique: 6s84WsPoPY6a0PZbnBzxrg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: OUl83EHZOpq0TZlJwb0-ug-1 From: zhangjl02 To: libvir-list@redhat.com Subject: [PATCH 2/3] domain_conf: introduce virDomainPostParseDataDefEmulator type Date: Sat, 7 May 2022 17:40:15 +0800 Message-Id: <20220507094016.1991-3-jx8zjs@126.com> In-Reply-To: <20220507094016.1991-1-jx8zjs@126.com> References: <20220507094016.1991-1-jx8zjs@126.com> MIME-Version: 1.0 X-CM-TRANSID: DMmowAA3QwaGPnZisf0UBQ--.6647S4 X-Coremail-Antispam: 1Uf129KBjvJXoW7CrW5tFy7Aw1fGw1xJr1DZFb_yoW8GFyfpF 4DZ3W2vr4UXr4xGa1kGayj9rWUKFZ8tF1xZ3WFgw4avF45Ww1DJ3s3ury0krW3KFs7JFyD Ar4fJrnrXF4DuFDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UxWrAUUUUU= X-Originating-IP: [223.104.194.177] X-CM-SenderInfo: dm0y6ybv6rjloofrz/1tbiFwv5SFpED3kDNwABsw X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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: , Cc: shenjiatong@inspur.com, zhangjl02@inspur.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1651918334885100001 Content-Type: text/plain; charset="utf-8"; x-default="true" From: zhangjl02 Add virDomainPostParseDataDefEmulator typedef. Add a definition callback in= to _virDomainDefParserConfig. Signed-off-by: zhangjl02 --- src/conf/domain_conf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 88a411d00c..86d627136a 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -3130,6 +3130,7 @@ typedef int (*virDomainDefPostParseDataAlloc)(const v= irDomainDef *def, unsigned int parseFlags, void *opaque, void **parseOpaque); +typedef int (*virDomainPostParseDataDefEmulator)(virDomainDef *def); typedef void (*virDomainDefPostParseDataFree)(void *parseOpaque); =20 /* Called in appropriate places where the domain conf parser can return fa= ilure @@ -3150,6 +3151,7 @@ struct _virDomainDefParserConfig { /* driver domain definition callbacks */ virDomainDefPostParseBasicCallback domainPostParseBasicCallback; virDomainDefPostParseDataAlloc domainPostParseDataAlloc; + virDomainPostParseDataDefEmulator domainPostParseDataDefEmulator; virDomainDefPostParseCallback domainPostParseCallback; virDomainDeviceDefPostParseCallback devicesPostParseCallback; virDomainDefAssignAddressesCallback assignAddressesCallback; --=20 2.35.1.windows.2