[PATCH] spec: Xen arches have changed on Fedora 36+

2022-06-11 Thread Cole Robinson
Latest fedora 36+ xen builds have dropped i686 and armv7hl builds.

Signed-off-by: Cole Robinson 
---
 libvirt.spec.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 59d2f96709..c4ea02fc8e 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -21,6 +21,9 @@
 %define arches_systemtap_64bit  %{arches_64bit}
 %define arches_dmidecode%{arches_x86}
 %define arches_xen  %{arches_x86} aarch64
+%if 0%{?fedora} >= 36
+%define arches_xen  x86_64 aarch64
+%endif
 %define arches_vbox %{arches_x86}
 %define arches_ceph %{arches_64bit}
 %define arches_zfs  %{arches_x86} %{power64} %{arm}
-- 
2.36.1



[PATCH] conf: cpu: Add

2022-06-11 Thread Cole Robinson
Internally we already collect x86 host family + model + stepping
numeric values. This exposed them in capabilities CPU output.
Example:

$ sudo virsh capabilities | grep -A1 -B1 signature
  
  
  

Users need to know these values to calculate an expected.
SEV-ES/SEV-SNP launch measurement.

Signed-off-by: Cole Robinson 
---
 src/conf/cpu_conf.c   | 36 +++
 src/conf/cpu_conf.h   |  3 ++
 src/conf/schemas/cputypes.rng | 13 +++
 src/cpu/cpu_x86.c |  3 ++
 .../x86_64-cpuid-A10-5800K-host.xml   |  1 +
 .../x86_64-cpuid-Atom-D510-host.xml   |  1 +
 .../x86_64-cpuid-Atom-N450-host.xml   |  1 +
 .../x86_64-cpuid-Atom-P5362-host.xml  |  1 +
 .../x86_64-cpuid-Cooperlake-host.xml  |  1 +
 .../x86_64-cpuid-Core-i5-2500-host.xml|  1 +
 .../x86_64-cpuid-Core-i5-2540M-host.xml   |  1 +
 .../x86_64-cpuid-Core-i5-4670T-host.xml   |  1 +
 .../x86_64-cpuid-Core-i5-650-host.xml |  1 +
 .../x86_64-cpuid-Core-i5-6600-host.xml|  1 +
 .../x86_64-cpuid-Core-i7-2600-host.xml|  1 +
 ...86_64-cpuid-Core-i7-2600-xsaveopt-host.xml |  1 +
 .../x86_64-cpuid-Core-i7-3520M-host.xml   |  1 +
 .../x86_64-cpuid-Core-i7-3740QM-host.xml  |  1 +
 .../x86_64-cpuid-Core-i7-3770-host.xml|  1 +
 .../x86_64-cpuid-Core-i7-4510U-host.xml   |  1 +
 .../x86_64-cpuid-Core-i7-4600U-host.xml   |  1 +
 .../x86_64-cpuid-Core-i7-5600U-arat-host.xml  |  1 +
 .../x86_64-cpuid-Core-i7-5600U-host.xml   |  1 +
 .../x86_64-cpuid-Core-i7-5600U-ibrs-host.xml  |  1 +
 .../x86_64-cpuid-Core-i7-7600U-host.xml   |  1 +
 .../x86_64-cpuid-Core-i7-7700-host.xml|  1 +
 .../x86_64-cpuid-Core-i7-8550U-host.xml   |  1 +
 .../x86_64-cpuid-Core-i7-8700-host.xml|  1 +
 .../x86_64-cpuid-Core2-E6850-host.xml |  1 +
 .../x86_64-cpuid-Core2-Q9500-host.xml |  1 +
 .../x86_64-cpuid-EPYC-7601-32-Core-host.xml   |  1 +
 ...6_64-cpuid-EPYC-7601-32-Core-ibpb-host.xml |  1 +
 .../cputestdata/x86_64-cpuid-FX-8150-host.xml |  1 +
 .../x86_64-cpuid-Opteron-1352-host.xml|  1 +
 .../x86_64-cpuid-Opteron-2350-host.xml|  1 +
 .../x86_64-cpuid-Opteron-6234-host.xml|  1 +
 .../x86_64-cpuid-Opteron-6282-host.xml|  1 +
 .../x86_64-cpuid-Pentium-P6100-host.xml   |  1 +
 .../x86_64-cpuid-Phenom-B95-host.xml  |  1 +
 ...64-cpuid-Ryzen-7-1800X-Eight-Core-host.xml |  1 +
 .../x86_64-cpuid-Xeon-5110-host.xml   |  1 +
 .../x86_64-cpuid-Xeon-E3-1225-v5-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E3-1245-v5-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E5-2609-v3-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E5-2623-v4-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E5-2630-v3-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E5-2630-v4-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E5-2650-host.xml|  1 +
 .../x86_64-cpuid-Xeon-E5-2650-v3-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E5-2650-v4-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E7-4820-host.xml|  1 +
 .../x86_64-cpuid-Xeon-E7-4830-host.xml|  1 +
 .../x86_64-cpuid-Xeon-E7-8890-v3-host.xml |  1 +
 .../x86_64-cpuid-Xeon-E7540-host.xml  |  1 +
 .../x86_64-cpuid-Xeon-Gold-5115-host.xml  |  1 +
 .../x86_64-cpuid-Xeon-Gold-6130-host.xml  |  1 +
 .../x86_64-cpuid-Xeon-Gold-6148-host.xml  |  1 +
 .../x86_64-cpuid-Xeon-Platinum-8268-host.xml  |  1 +
 .../x86_64-cpuid-Xeon-Platinum-9242-host.xml  |  1 +
 .../x86_64-cpuid-Xeon-W3520-host.xml  |  1 +
 .../x86_64-cpuid-Xeon-X5460-host.xml  |  1 +
 61 files changed, 112 insertions(+)

diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c
index 2d447da7c3..1a09e27dca 100644
--- a/src/conf/cpu_conf.c
+++ b/src/conf/cpu_conf.c
@@ -159,6 +159,9 @@ virCPUDefCopyModelFilter(virCPUDef *dst,
 dst->vendor = g_strdup(src->vendor);
 dst->vendor_id = g_strdup(src->vendor_id);
 dst->microcodeVersion = src->microcodeVersion;
+dst->sigFamily = src->sigFamily;
+dst->sigModel = src->sigModel;
+dst->sigStepping = src->sigStepping;
 dst->nfeatures_max = src->nfeatures;
 dst->nfeatures = 0;
 
@@ -210,6 +213,9 @@ virCPUDefStealModel(virCPUDef *dst,
 dst->model = g_steal_pointer(>model);
 dst->features = g_steal_pointer(>features);
 dst->microcodeVersion = src->microcodeVersion;
+dst->sigFamily = src->sigFamily;
+dst->sigModel = src->sigModel;
+dst->sigStepping = src->sigStepping;
 dst->nfeatures_max = src->nfeatures_max;
 src->nfeatures_max = 0;
 dst->nfeatures = src->nfeatures;
@@ -421,6 +427,7 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt,
 if (def->type == VIR_CPU_TYPE_HOST) {
 g_autofree char *arch = virXPathString("string(./arch[1])", ctxt);
 xmlNodePtr counter_node = NULL;
+xmlNodePtr signature_node = NULL;
 
 if (!arch) {
 virReportError(VIR_ERR_XML_ERROR, "%s",

[PATCH] docs: kbase/launch_security_sev: QEMU 6.0+ sets iommu=on for us

2022-06-11 Thread Cole Robinson
Signed-off-by: Cole Robinson 
---
 docs/kbase/launch_security_sev.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/kbase/launch_security_sev.rst 
b/docs/kbase/launch_security_sev.rst
index 3ebb01ad80..9f6330a1ca 100644
--- a/docs/kbase/launch_security_sev.rst
+++ b/docs/kbase/launch_security_sev.rst
@@ -295,6 +295,8 @@ In order to make virtio devices work, we need to use
  inside the given device XML element in order
 to enable DMA API in the virtio driver.
 
+QEMU 6.0 and later will `set this by default 
`__. For earlier QEMU 
versions, you will need to explicitly enable this in the device XML:
+
 ::
 
# virsh edit 
-- 
2.36.1