File 231af0a0-schema-Add-maxphysaddr-element-to-hostcpu.patch of Package libvirt.33033
From 6d7cc26900dda7982f2eaa63d69df792ec4c1409 Mon Sep 17 00:00:00 2001
From: Jim Fehlig <jfehlig@suse.com>
Date: Thu, 11 Aug 2022 16:36:24 -0600
Subject: [PATCH 7/9] schema: Add maxphysaddr element to hostcpu
The output of "virsh capabilities" was not conformant to the
capability.rng schema. Add the missing element to the schema.
Fixes: c647bf29afb9890c792172ecf7db2c9c27babbb6
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
(cherry picked from commit 231af0a08ca6c021a8d5daa8a4a9d804b9224ea8)
---
docs/schemas/cputypes.rng | 3 +++
tests/capabilityschemadata/caps-test.xml | 1 +
2 files changed, 4 insertions(+)
Index: libvirt-8.0.0/docs/schemas/cputypes.rng
===================================================================
--- libvirt-8.0.0.orig/docs/schemas/cputypes.rng
+++ libvirt-8.0.0/docs/schemas/cputypes.rng
@@ -376,6 +376,9 @@
<optional>
<ref name="cpuTopology"/>
</optional>
+ <optional>
+ <ref name="cpuMaxPhysAddr"/>
+ </optional>
<zeroOrMore>
<element name="feature">
<attribute name="name">
Index: libvirt-8.0.0/tests/capabilityschemadata/caps-test.xml
===================================================================
--- libvirt-8.0.0.orig/tests/capabilityschemadata/caps-test.xml
+++ libvirt-8.0.0/tests/capabilityschemadata/caps-test.xml
@@ -4,6 +4,7 @@
<cpu>
<arch>i686</arch>
<vendor>Intel</vendor>
+ <maxphysaddr mode='emulate' bits='46'/>
<features>
<pae/>
<nonpae/>