From nobody Fri May 3 13:25:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1625730170; cv=none; d=zohomail.com; s=zohoarc; b=gblRLTwiHkbfaBwUCKiAgqK1WuYYBD5DST7OUM5/tPSlxahIVo54Ik90Mph8jdrOSz6OGoaLd0DXIJDFrJ1EaU225hWiG0jhkXmZT1lKGqxgsPicaGDCpKmvPOvcNbyNkGnSqOBe++0v81+6uZPKPbjF/rHRrP8eVzBxD9n6iWU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625730170; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=WAKbz52YRkWtColBycE0PH6oENBCDTHfRSVZAmwMeVQ=; b=T25pRQX+phr9SNnegxtRFGx3AndNpLgmxN0u9IpeGQcnvUD8Aw0E61oqMJRZosKAFJmGm32FVEr/rrt7GauRKsxVWteJxJ6sNyqfX+6G3U7LU0si5EOXmOd8aPvAckdmBi6v+Lp0X2QZO4YvG6wbzWFN7TUFy5GQJNUfZBMmz6A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 162573017025521.444428376608244; Thu, 8 Jul 2021 00:42:50 -0700 (PDT) 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-223-RDGfBd0WO_mEKlejz5jpOQ-1; Thu, 08 Jul 2021 03:42:47 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 154D1804140; Thu, 8 Jul 2021 07:42:42 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0F0D25D6AB; Thu, 8 Jul 2021 07:42:40 +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 1F2721809C99; Thu, 8 Jul 2021 07:42:34 +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 1687gWRS010574 for ; Thu, 8 Jul 2021 03:42:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8EB135D9DD; Thu, 8 Jul 2021 07:42:32 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.194.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id 120F65D9D3 for ; Thu, 8 Jul 2021 07:42:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625730169; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=WAKbz52YRkWtColBycE0PH6oENBCDTHfRSVZAmwMeVQ=; b=UUgJJ6fnzmoHJayUqcd+D8JIQP3/8szjtPrwttk3HBIOGUWMmFCO6FeKkbCa2j5FdU7xrc +Pkhf65JC1PslbnUv7FXnpZdXNDRjgLUppmlFIoxVOsW/97+Zt5AXU1aW85kh2S/SZ0yhG c6gKDEYL1Q5/Tl1XFn3rtUttIxNxjg4= X-MC-Unique: RDGfBd0WO_mEKlejz5jpOQ-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] schemas: Allow cache attribute for bandwidth element for HMAT Date: Thu, 8 Jul 2021 09:42:21 +0200 Message-Id: <47aacd729c5e67c339f5ae5a07c3a574446fb6b6.1625730141.git.mprivozn@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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.79 on 10.5.11.15 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: 1625730170720100001 Content-Type: text/plain; charset="utf-8" Turns out, when introducing HMAT support in v6.6.0-rc1~249 I've forgot to allow "cache" attribute for element in RNG. It's parsed and formatted, but schema does not allow it. Fixes: a89bbbac86383a10be0cec5a93feb7ed820871eb Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=3D1980162 Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- docs/schemas/cputypes.rng | 5 +++++ tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args | 1 + tests/qemuxml2argvdata/numatune-hmat.xml | 1 + 3 files changed, 7 insertions(+) diff --git a/docs/schemas/cputypes.rng b/docs/schemas/cputypes.rng index 77c8fa783b..056e66e1b4 100644 --- a/docs/schemas/cputypes.rng +++ b/docs/schemas/cputypes.rng @@ -250,6 +250,11 @@ + + + + + access diff --git a/tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args b/test= s/qemuxml2argvdata/numatune-hmat.x86_64-latest.args index 1ec2e15095..54ab91b09c 100644 --- a/tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args +++ b/tests/qemuxml2argvdata/numatune-hmat.x86_64-latest.args @@ -30,6 +30,7 @@ XDG_CONFIG_HOME=3D/tmp/lib/domain--1-QEMUGuest/.config \ -numa hmat-lb,initiator=3D0,target=3D0,hierarchy=3Dmemory,data-type=3Dacce= ss-latency,latency=3D5 \ -numa hmat-lb,initiator=3D0,target=3D0,hierarchy=3Dfirst-level,data-type= =3Daccess-latency,latency=3D10 \ -numa hmat-lb,initiator=3D0,target=3D0,hierarchy=3Dmemory,data-type=3Dacce= ss-bandwidth,bandwidth=3D204800K \ +-numa hmat-lb,initiator=3D0,target=3D0,hierarchy=3Dfirst-level,data-type= =3Daccess-bandwidth,bandwidth=3D208896K \ -numa hmat-cache,node-id=3D0,size=3D10K,level=3D1,associativity=3Ddirect,p= olicy=3Dwrite-back,line=3D8 \ -uuid c7a5fdb2-cdaf-9455-926a-d65c16db1809 \ -display none \ diff --git a/tests/qemuxml2argvdata/numatune-hmat.xml b/tests/qemuxml2argvd= ata/numatune-hmat.xml index 51ff3c3425..a64d2ef3e2 100644 --- a/tests/qemuxml2argvdata/numatune-hmat.xml +++ b/tests/qemuxml2argvdata/numatune-hmat.xml @@ -30,6 +30,7 @@ + --=20 2.31.1