Qemu does not need pin NVDIMM memory for VFIO device during VFIO hotplug, what's more, if there is no NVDIMM hw in the test machine, the VFIO hotplug operation will need at least 10 minutes to pin RAM as the NVDIMM, this time is not accepted. So we add "nopin=on" option in the memory-backed-file, which can avoid to pin RAM memory for NVDIMM.
The new command like below: -object memory-backend-file,id=mem0,share,nopin=on,mem-path=kvm.img,size=9161408512 The default of "nopin" still "off" value, which is same with previous value. Yang Zhong (2): hostmem-file: Add "nopin" option for memory-backend-file nvdimm: Add "nopin" for related documents backends/hostmem-file.c | 23 +++++++++++++++++++++++ docs/nvdimm.txt | 10 ++++++++-- hw/vfio/common.c | 12 +++++++++++- qemu-options.hx | 6 +++++- 4 files changed, 47 insertions(+), 4 deletions(-) -- 1.9.1