From nobody Sat May 4 18:33:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1636729003; cv=none; d=zohomail.com; s=zohoarc; b=jkRtYewTp4MGq2eAYXMwcWHaGKDrAF+OePWjLEED0EZeRJoSr6xhzwMkG3FGGNcx0p/gp5sPfHRqkaquMkRaR7jMV/SiZVIefKvQeicv1RFcJVNS8p/+MLRQsoEMBLkeUx4bh2jAsgn75jEz8TNb7P45Bk1UROUO+XkKOQ0gz8Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1636729003; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=7H9zt35FuBbx4qiCDt94bpX2tpEZYK/kG8sae7DgHF8=; b=hJISnRapM0Gg97SV22dc18/91lFADcS6IHUfUxszz3Ajkv+CmMhA7uuzbTVvWrZiwU91069FDTZSVXC04ZAEgSaKjGImKTTNWtGJKWkllMcswzS34qq82GbvI664urTqJVthW0JFfWzOBYiv0bmO/u88nv0IAIjexvUdH4yZTeE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1636729003189986.6217715638948; Fri, 12 Nov 2021 06:56:43 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-349-Tec5--owNe6fHGcD5Db5dg-1; Fri, 12 Nov 2021 09:56:40 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0FEAB10144F0; Fri, 12 Nov 2021 14:56:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C3BE55E275; Fri, 12 Nov 2021 14:56:33 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C62CE4A704; Fri, 12 Nov 2021 14:56:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1ACEuU23011254 for ; Fri, 12 Nov 2021 09:56:30 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2386A68371; Fri, 12 Nov 2021 14:56:30 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-12-58.pek2.redhat.com [10.72.12.58]) by smtp.corp.redhat.com (Postfix) with ESMTP id DA5DA68701; Fri, 12 Nov 2021 14:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636729002; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=7H9zt35FuBbx4qiCDt94bpX2tpEZYK/kG8sae7DgHF8=; b=FHPIH34d4EvzTsHmcUk33WwYjCwGNgnDf+Zgdt6rXBBV89WyFc77WYaAulL0hneHRImpKc 7BI+de+SWH/AZ12Db32PWIwnTsZi4PpeqOgGWR8stF4QWE99zKkev7c2EHLVtV9Rj7bkOQ 2s0Mi9XE3FDZ3TSZmK9y9IGegHBzG0Y= X-MC-Unique: Tec5--owNe6fHGcD5Db5dg-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH] virt-xml-validate: Add support for cpu and domaincheckpoint Date: Fri, 12 Nov 2021 22:55:53 +0800 Message-Id: <20211112145553.432247-1-hhan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Han Han X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1636729004324100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Han Han --- tools/virt-xml-validate.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/virt-xml-validate.in b/tools/virt-xml-validate.in index 249bcf7eef..a818e2c3a5 100644 --- a/tools/virt-xml-validate.in +++ b/tools/virt-xml-validate.in @@ -77,6 +77,9 @@ if [ -z "$TYPE" ]; then *domainsnapshot*) # Must come first, since *domain* is a substring TYPE=3D"domainsnapshot" ;; + *domaincheckpoint*) + TYPE=3D"domaincheckpoint" + ;; *domain*) TYPE=3D"domain" ;; @@ -110,6 +113,9 @@ if [ -z "$TYPE" ]; then *interface*) TYPE=3D"interface" ;; + *cpu*) + TYPE=3D"cpu" + ;; *) echo "$0: cannot determine schema type for $XMLFILE" >&2 exit 3 --=20 2.33.1