[PATCH 0/2] memdev device: add share argument for type=file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch enables the possibility to run a qemu virtual machine with the 
share option for the memory-backend-file. The xml description looks like:

<memdev type='file' share='on'>
    <name>ram0</name>
    <source mem-path='/hugetlbfs'/>
    <capacity unit='MiB'>1024</capacity>
</memdev>

This work is based on the previous work of Chen Fan[1].
We are aware of the existing conflict with the previous numa patches[2].
We are sharing this because it is a dependency for some use cases of the
qemu vhost-user support(e.g. snabbswitch).

[1] http://www.redhat.com/archives/libvir-list/2014-June/msg01195.html
[2] http://www.redhat.com/archives/libvir-list/2014-June/msg00201.html

Michele Paolino (2):
  Add share argument to memdev devices(type=file)
  Documentation and test for the share argument in memdev device

 docs/formatdomain.html.in                          |  7 +++++++
 docs/schemas/domaincommon.rng                      |  3 +++
 src/conf/domain_conf.c                             | 16 ++++++++++++++++
 src/conf/domain_conf.h                             |  1 +
 src/qemu/qemu_command.c                            |  3 +++
 tests/qemuxml2argvdata/qemuxml2argv-cpu-numa4.args |  2 +-
 tests/qemuxml2argvdata/qemuxml2argv-cpu-numa4.xml  |  2 +-
 7 files changed, 32 insertions(+), 2 deletions(-)

-- 
1.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]