From nobody Sun Feb 8 22:08:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1614182416; cv=none; d=zohomail.com; s=zohoarc; b=iP90co6y0+4jTpR1oRCxPgYM3UlxjDc6sJvoyxQknylMt4GYaCeOaogZxMpgJUMFfKWok5+C24TsVXMkV0XAL9CTKjRqGONIvmicNRgeOVZrm6Q+Nj+WbtYI61Yd21gbX96yScK6bzQ0HraS8roOphwnWcrBVR1ICgy9vLxsrTs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614182416; 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=+G6l0U3pxrcr0DJLl+OTCKiJR21W/8AJFubZx5TUK8Q=; b=HuKfb+c8yBlzwPErsGfFabPdpfHl16Y2h1dk53TdntTd4hweAPGdEzJl1EzYzWs54toUaTC2kDnqri+WnCql8IQsGbz9iPAjT1Cvng0tzW1FQE2Gx0SUtT8J5OPDM7izuATSCR7HQiyVF8zL7BwGnhArRrECCcL3f3MN2yttZaU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1614182416365288.23072797968416; Wed, 24 Feb 2021 08:00:16 -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-443-giGn_i2SOpS16VrS7PR38A-1; Wed, 24 Feb 2021 10:58:57 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6C1DADF8C4; Wed, 24 Feb 2021 15:58:44 +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 411C3100239A; Wed, 24 Feb 2021 15:58:44 +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 0584757DFA; Wed, 24 Feb 2021 15:58:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 11OFwOc7010946 for ; Wed, 24 Feb 2021 10:58:24 -0500 Received: by smtp.corp.redhat.com (Postfix) id 9FFAE10016F9; Wed, 24 Feb 2021 15:58:24 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 04FAE1001E73 for ; Wed, 24 Feb 2021 15:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614182414; 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=+G6l0U3pxrcr0DJLl+OTCKiJR21W/8AJFubZx5TUK8Q=; b=DZYLb3Lja+5wqwnyp1dZzyRQW7K1hGuA9rL+MBAE9o2jSdkCMrtgh4rRJc2j24lbYxz7F3 DsnH3r0uO67awXaZFDhUP29LC9jDnPXd8LHn+NrYjCrsSbeMsITaJntBPY/l3i0UkaJdkl pk2xQNaATL2CUfk4lU8UbbIs5AaQ8Vg= X-MC-Unique: giGn_i2SOpS16VrS7PR38A-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v2 12/12] [DON'T PUSH] Force-check all configs with latest capabilities Date: Wed, 24 Feb 2021 16:58:06 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com 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.84 on 10.5.11.22 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) Content-Type: text/plain; charset="utf-8" Hack the qemuxml2argvtest to force-validate everything with latest capabilities. The result is expected: 190) QEMU XML-2-ARGV disk-network-tlsx509-vxhs.x86_64-5.0.0 ... = failed to validate -blockdev '{"driver":"vxhs","tls-creds":"objlibvirt-3-st= orage_tls0","vdisk-id":"eb90327c-8302-4725-9e1b-4e85ed4dc251","server":{"ho= st":"192.168.0.1","port":"9999"},"node-name":"libvirt-3-storage","cache":{"= direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' ag= ainst QAPI schema: { ERROR: variant 'vxhs' for discriminator 'driver' not found FAILED 1036) QEMU XML-2-ARGV launch-security-sev.x86_64-2.12.0 ...= failed to validate -object '{"qom-type":"sev-guest","id":"sev0","cbitpos":= 47,"reduced-phys-bits":1,"policy":1,"dh-cert-file":"/tmp/lib/domain--1-QEMU= Guest1/dh_cert.base64","session-file":"/tmp/lib/domain--1-QEMUGuest1/sessio= n.base64"}' against QAPI schema: { ERROR: variant 'sev-guest' for discriminator 'qom-type' not found FAILED 1037) QEMU XML-2-ARGV launch-security-sev-missing-platform-info.x86_64-2.12= .0 ... failed to validate -object '{"qom-type":"sev-guest","id":"sev0","cbi= tpos":47,"reduced-phys-bits":1,"policy":1,"dh-cert-file":"/tmp/lib/domain--= 1-QEMUGuest1/dh_cert.base64","session-file":"/tmp/lib/domain--1-QEMUGuest1/= session.base64"}' against QAPI schema: { ERROR: variant 'sev-guest' for discriminator 'qom-type' not found FAILED 'vxhs' was deprecated/removed and is also not an '-object' and 'sev-guest' was not enabled on the box I used for generating the capabilities. --- tests/qemuxml2argvtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index a5e40c218a..1c4ba16bbf 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -529,8 +529,8 @@ testCompareXMLToArgvValidateSchema(virQEMUDriverPtr drv, bool netdevQAPIfied =3D false; bool objectQAPIfied =3D false; - /* comment out with line comment to enable schema checking for non _CA= PS tests - if (!info->schemafile) +// /* comment out with line comment to enable schema checking for non _= CAPS tests +// if (!info->schemafile) info->schemafile =3D testQemuGetLatestCapsForArch(virArchToString= (info->arch), "replies"); // */ --=20 2.29.2