mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
24b74d187c
Add a new memoryBacking source type "memfd", supported by QEMU (when the capability is available). A memfd is a specialized anonymous memory kind. As such, an anonymous source type could be automatically using a memfd. However, there are some complications when migrating from different memory backends in qemu (mainly due to the internal object naming at this point, but there could be more). For now, it is simpler and safer to simply introduce a new source type "memfd". Eventually, the "anonymous" type could learn to use memfd transparently in a separate change. The main benefits are that it doesn't need to create filesystem files, and it also enforces sealing, providing a bit more safety. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
37 lines
1.1 KiB
XML
37 lines
1.1 KiB
XML
<domain type='kvm' id='56'>
|
|
<name>instance-00000092</name>
|
|
<uuid>126f2720-6f8e-45ab-a886-ec9277079a67</uuid>
|
|
<memory unit='KiB'>14680064</memory>
|
|
<currentMemory unit='KiB'>14680064</currentMemory>
|
|
<memoryBacking>
|
|
<hugepages>
|
|
<page size="2" unit="M"/>
|
|
</hugepages>
|
|
<source type='memfd'/>
|
|
<access mode='shared'/>
|
|
<allocation mode='immediate'/>
|
|
</memoryBacking>
|
|
<numatune>
|
|
<memnode cellid='0' mode='preferred' nodeset='3'/>
|
|
</numatune>
|
|
<vcpu placement='static'>8</vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc-i440fx-wily'>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<cpu>
|
|
<topology sockets='1' cores='8' threads='1'/>
|
|
<numa>
|
|
<cell id='0' cpus='0-7' memory='14680064' unit='KiB'/>
|
|
</numa>
|
|
</cpu>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
<memballoon model='virtio'/>
|
|
</devices>
|
|
</domain>
|