mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
cpu: Wire in XML validation
This adds a new value to virConnectCompareCPUFlags, "VIR_CONNECT_CPU_VALIDATE_XML", that governs XML document validation in virCPUDefParseXML. In src/conf/cpu_conf.c, include configmake.h for PKGDATADIR and virfile.h for virFileFindResource. Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
committed by
Peter Krempa
parent
9faa31ce79
commit
4c3ed3b84e
@@ -754,6 +754,8 @@ typedef enum {
|
||||
typedef enum {
|
||||
VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE = (1 << 0), /* treat incompatible
|
||||
CPUs as failure */
|
||||
VIR_CONNECT_COMPARE_CPU_VALIDATE_XML = (1 << 1), /* validate the xml
|
||||
document */
|
||||
} virConnectCompareCPUFlags;
|
||||
|
||||
int virConnectCompareCPU(virConnectPtr conn,
|
||||
|
||||
Reference in New Issue
Block a user