mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Introduce migratable attribute for the <cpu> element
The attribute is only allowed for host-passthrough CPUs and it can be used to request only migratable or all supported features to be enabled in the virtual CPU. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -1490,7 +1490,7 @@
|
||||
...</pre>
|
||||
|
||||
<pre>
|
||||
<cpu mode='host-passthrough'>
|
||||
<cpu mode='host-passthrough' migratable='off'>
|
||||
<cache mode='passthrough'/>
|
||||
<feature policy='disable' name='lahf_lm'/>
|
||||
...</pre>
|
||||
@@ -1639,7 +1639,17 @@
|
||||
using host-passthrough is dangerous if the source and destination hosts
|
||||
are not identical in both hardware, QEMU version, microcode version
|
||||
and configuration. If such a migration is attempted then the guest may
|
||||
hang or crash upon resuming execution on the destination host.</dd>
|
||||
hang or crash upon resuming execution on the destination host.
|
||||
Depending on hypervisor version the virtual CPU may or may not
|
||||
contain features which may block migration even to an identical host.
|
||||
<span class="since">Since 6.5.0</span> optional
|
||||
<code>migratable</code> attribute may be used to explicitly request
|
||||
such features to be removed from (<code>on</code>) or kept in
|
||||
(<code>off</code>) the virtual CPU. This attribute does not make
|
||||
migration to another host safer: even with
|
||||
<code>migratable='on'</code> migration will be dangerous unless both
|
||||
hosts are identical as described above.
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
Both <code>host-model</code> and <code>host-passthrough</code> modes
|
||||
|
||||
@@ -5469,6 +5469,11 @@
|
||||
<optional>
|
||||
<ref name="cpuCheck"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="migratable">
|
||||
<ref name="virOnOff"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<interleave>
|
||||
<optional>
|
||||
<ref name="cpuModel"/>
|
||||
|
||||
Reference in New Issue
Block a user