mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
conf: domcaps: Add 'backingStoreInput' domain capability
Historically we've only supported the <backingStore> as an output-only element for domain disks. The documentation states that it may become supported on input. To allow management apps detectin once that happens add a domain capability which will be asserted if the hypervisor driver will be able to obey the <backingStore> as configured on input. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
eef089db78
commit
757203ee52
@ -516,6 +516,7 @@
|
|||||||
</gic>
|
</gic>
|
||||||
<vmcoreinfo supported='yes'/>
|
<vmcoreinfo supported='yes'/>
|
||||||
<genid supported='yes'/>
|
<genid supported='yes'/>
|
||||||
|
<backingStoreInput supported='yes'/>
|
||||||
<sev>
|
<sev>
|
||||||
<cbitpos>47</cbitpos>
|
<cbitpos>47</cbitpos>
|
||||||
<reduced-phys-bits>1</reduced-phys-bits>
|
<reduced-phys-bits>1</reduced-phys-bits>
|
||||||
@ -552,6 +553,13 @@
|
|||||||
|
|
||||||
<p>Reports whether the genid feature can be used by the domain.</p>
|
<p>Reports whether the genid feature can be used by the domain.</p>
|
||||||
|
|
||||||
|
<h4><a id="featureBackingStoreInput">backingStoreInput</a></h4>
|
||||||
|
|
||||||
|
<p>Reports whether the hypervisor will obey the <backingStore>
|
||||||
|
elements configured for a <disk> when booting the guest, hotplugging
|
||||||
|
the disk to a running guest, or similar.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h4><a id="elementsSEV">SEV capabilities</a></h4>
|
<h4><a id="elementsSEV">SEV capabilities</a></h4>
|
||||||
|
|
||||||
<p>AMD Secure Encrypted Virtualization (SEV) capabilities are exposed under
|
<p>AMD Secure Encrypted Virtualization (SEV) capabilities are exposed under
|
||||||
|
@ -207,6 +207,9 @@
|
|||||||
<optional>
|
<optional>
|
||||||
<ref name='vmgenid'/>
|
<ref name='vmgenid'/>
|
||||||
</optional>
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<ref name='backingStoreInput'/>
|
||||||
|
</optional>
|
||||||
<optional>
|
<optional>
|
||||||
<ref name='sev'/>
|
<ref name='sev'/>
|
||||||
</optional>
|
</optional>
|
||||||
@ -232,6 +235,12 @@
|
|||||||
</element>
|
</element>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
|
<define name='backingStoreInput'>
|
||||||
|
<element name='backingStoreInput'>
|
||||||
|
<ref name='supported'/>
|
||||||
|
</element>
|
||||||
|
</define>
|
||||||
|
|
||||||
<define name='sev'>
|
<define name='sev'>
|
||||||
<element name='sev'>
|
<element name='sev'>
|
||||||
<ref name='supported'/>
|
<ref name='supported'/>
|
||||||
|
@ -40,6 +40,7 @@ VIR_ENUM_IMPL(virDomainCapsFeature,
|
|||||||
"iothreads",
|
"iothreads",
|
||||||
"vmcoreinfo",
|
"vmcoreinfo",
|
||||||
"genid",
|
"genid",
|
||||||
|
"backingStoreInput",
|
||||||
);
|
);
|
||||||
|
|
||||||
static virClassPtr virDomainCapsClass;
|
static virClassPtr virDomainCapsClass;
|
||||||
|
@ -162,6 +162,7 @@ typedef enum {
|
|||||||
VIR_DOMAIN_CAPS_FEATURE_IOTHREADS = 0,
|
VIR_DOMAIN_CAPS_FEATURE_IOTHREADS = 0,
|
||||||
VIR_DOMAIN_CAPS_FEATURE_VMCOREINFO,
|
VIR_DOMAIN_CAPS_FEATURE_VMCOREINFO,
|
||||||
VIR_DOMAIN_CAPS_FEATURE_GENID,
|
VIR_DOMAIN_CAPS_FEATURE_GENID,
|
||||||
|
VIR_DOMAIN_CAPS_FEATURE_BACKING_STORE_INPUT,
|
||||||
|
|
||||||
VIR_DOMAIN_CAPS_FEATURE_LAST
|
VIR_DOMAIN_CAPS_FEATURE_LAST
|
||||||
} virDomainCapsFeature;
|
} virDomainCapsFeature;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user