mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemuBuildMemoryBackendProps: Move @prealloc setting to backend agnostic part
All three memory backends (-file, -ram and -memfd) have .prealloc attribute. Since we are setting it only for -file, the corresponding code lives only under if() that handles that specific backend. But in near future we will want to set the attribute for other backends too. Therefore, move the corresponding code outside of the if(). This causes some .argv files to be changed, but the only change happening there is move of the attribute (best viewed with: 'git show --color-words=.'). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
bfb1ab1df1
commit
eda5cc7a62
@ -3109,13 +3109,11 @@ qemuBuildMemoryBackendProps(virJSONValuePtr *backendProps,
|
||||
|
||||
if (mem->nvdimmPath) {
|
||||
memPath = g_strdup(mem->nvdimmPath);
|
||||
if (!priv->memPrealloc)
|
||||
prealloc = true;
|
||||
prealloc = true;
|
||||
} else if (useHugepage) {
|
||||
if (qemuGetDomainHupageMemPath(priv->driver, def, pagesize, &memPath) < 0)
|
||||
return -1;
|
||||
if (!priv->memPrealloc)
|
||||
prealloc = true;
|
||||
prealloc = true;
|
||||
} else {
|
||||
/* We can have both pagesize and mem source. If that's the case,
|
||||
* prefer hugepages as those are more specific. */
|
||||
@ -3124,7 +3122,6 @@ qemuBuildMemoryBackendProps(virJSONValuePtr *backendProps,
|
||||
}
|
||||
|
||||
if (virJSONValueObjectAdd(props,
|
||||
"B:prealloc", prealloc,
|
||||
"s:mem-path", memPath,
|
||||
NULL) < 0)
|
||||
return -1;
|
||||
@ -3149,6 +3146,10 @@ qemuBuildMemoryBackendProps(virJSONValuePtr *backendProps,
|
||||
backendType = "memory-backend-ram";
|
||||
}
|
||||
|
||||
if (!priv->memPrealloc &&
|
||||
virJSONValueObjectAdd(props, "B:prealloc", prealloc, NULL) < 0)
|
||||
return -1;
|
||||
|
||||
if (virJSONValueObjectAdd(props, "U:size", mem->size * 1024, NULL) < 0)
|
||||
return -1;
|
||||
|
||||
|
@ -14,25 +14,25 @@ QEMU_AUDIO_DRV=none \
|
||||
-m size=4194304k,slots=16,maxmem=8388608k \
|
||||
-realtime mlock=off \
|
||||
-smp 4,sockets=4,cores=1,threads=1 \
|
||||
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,share=no,size=1073741824,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node0,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,share=no,prealloc=yes,\
|
||||
size=1073741824,host-nodes=0-3,policy=bind \
|
||||
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,size=1073741824,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node1,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,prealloc=yes,\
|
||||
size=1073741824,host-nodes=0-3,policy=bind \
|
||||
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
||||
-object memory-backend-file,id=ram-node2,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,share=no,size=1073741824,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node2,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,share=no,prealloc=yes,\
|
||||
size=1073741824,host-nodes=0-3,policy=bind \
|
||||
-numa node,nodeid=2,cpus=2,memdev=ram-node2 \
|
||||
-object memory-backend-file,id=ram-node3,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,share=no,size=1073741824,\
|
||||
host-nodes=3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node3,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,share=no,prealloc=yes,\
|
||||
size=1073741824,host-nodes=3,policy=bind \
|
||||
-numa node,nodeid=3,cpus=3,memdev=ram-node3 \
|
||||
-object memory-backend-file,id=memdimm0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,size=536870912,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=memdimm0,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,prealloc=yes,\
|
||||
size=536870912,host-nodes=0-3,policy=bind \
|
||||
-device pc-dimm,node=1,memdev=memdimm0,id=dimm0,slot=0,addr=4294967296 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -18,9 +18,9 @@ QEMU_AUDIO_DRV=none \
|
||||
mem-path=/var/lib/libvirt/qemu/ram/-1-QEMUGuest1/ram-node0,share=no,\
|
||||
size=1073741824,host-nodes=0-3,policy=bind \
|
||||
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,size=1073741824,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node1,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,prealloc=yes,\
|
||||
size=1073741824,host-nodes=0-3,policy=bind \
|
||||
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
||||
-object memory-backend-file,id=ram-node2,\
|
||||
mem-path=/var/lib/libvirt/qemu/ram/-1-QEMUGuest1/ram-node2,share=no,\
|
||||
@ -30,9 +30,9 @@ size=1073741824,host-nodes=0-3,policy=bind \
|
||||
mem-path=/var/lib/libvirt/qemu/ram/-1-QEMUGuest1/ram-node3,share=no,\
|
||||
size=1073741824,host-nodes=3,policy=bind \
|
||||
-numa node,nodeid=3,cpus=3,memdev=ram-node3 \
|
||||
-object memory-backend-file,id=memdimm0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,size=536870912,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=memdimm0,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,prealloc=yes,\
|
||||
size=536870912,host-nodes=0-3,policy=bind \
|
||||
-device pc-dimm,node=1,memdev=memdimm0,id=dimm0,slot=0,addr=4294967296 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -16,8 +16,9 @@ QEMU_AUDIO_DRV=none \
|
||||
-smp 2,sockets=2,cores=1,threads=1 \
|
||||
-object memory-backend-ram,id=ram-node0,size=268435456 \
|
||||
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-SomeDummyHugepagesGu,size=805306368 \
|
||||
-object memory-backend-file,id=ram-node1,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-SomeDummyHugepagesGu,prealloc=yes,\
|
||||
size=805306368 \
|
||||
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
||||
-uuid ef1bdff4-27f3-4e85-a807-5fb4d58463cc \
|
||||
-display none \
|
||||
|
@ -14,17 +14,21 @@ QEMU_AUDIO_DRV=none \
|
||||
-m 4096 \
|
||||
-realtime mlock=off \
|
||||
-smp 4,sockets=4,cores=1,threads=1 \
|
||||
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node0,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,prealloc=yes,\
|
||||
size=1073741824 \
|
||||
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node1,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,prealloc=yes,\
|
||||
size=1073741824 \
|
||||
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
||||
-object memory-backend-file,id=ram-node2,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node2,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,prealloc=yes,\
|
||||
size=1073741824 \
|
||||
-numa node,nodeid=2,cpus=2,memdev=ram-node2 \
|
||||
-object memory-backend-file,id=ram-node3,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node3,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,prealloc=yes,\
|
||||
size=1073741824 \
|
||||
-numa node,nodeid=3,cpus=3,memdev=ram-node3 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -17,11 +17,12 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||
-m size=1048576k,slots=16,maxmem=1099511627776k \
|
||||
-overcommit mem-lock=off \
|
||||
-smp 2,sockets=2,dies=1,cores=1,threads=1 \
|
||||
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node0,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,prealloc=yes,\
|
||||
size=1073741824 \
|
||||
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm,\
|
||||
share=yes,size=536870912 \
|
||||
-object memory-backend-file,id=memnvdimm0,mem-path=/tmp/nvdimm,share=yes,\
|
||||
prealloc=yes,size=536870912 \
|
||||
-device nvdimm,node=0,memdev=memnvdimm0,id=nvdimm0,slot=0 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -14,21 +14,21 @@ QEMU_AUDIO_DRV=none \
|
||||
-m 4096 \
|
||||
-realtime mlock=off \
|
||||
-smp 4,sockets=4,cores=1,threads=1 \
|
||||
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node0,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,prealloc=yes,\
|
||||
size=1073741824,host-nodes=0-3,policy=bind \
|
||||
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,size=1073741824,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node1,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,share=yes,prealloc=yes,\
|
||||
size=1073741824,host-nodes=0-3,policy=bind \
|
||||
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
||||
-object memory-backend-file,id=ram-node2,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,share=no,size=1073741824,\
|
||||
host-nodes=0-3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node2,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,share=no,prealloc=yes,\
|
||||
size=1073741824,host-nodes=0-3,policy=bind \
|
||||
-numa node,nodeid=2,cpus=2,memdev=ram-node2 \
|
||||
-object memory-backend-file,id=ram-node3,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824,\
|
||||
host-nodes=3,policy=bind \
|
||||
-object memory-backend-file,id=ram-node3,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,prealloc=yes,\
|
||||
size=1073741824,host-nodes=3,policy=bind \
|
||||
-numa node,nodeid=3,cpus=3,memdev=ram-node3 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -15,9 +15,9 @@ QEMU_AUDIO_DRV=none \
|
||||
-realtime mlock=off \
|
||||
-smp 2,sockets=2,cores=1,threads=1 \
|
||||
-numa node,nodeid=0,cpus=0-1,mem=214 \
|
||||
-object memory-backend-file,id=memdimm0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,size=536870912,\
|
||||
host-nodes=1-3,policy=bind \
|
||||
-object memory-backend-file,id=memdimm0,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,prealloc=yes,\
|
||||
size=536870912,host-nodes=1-3,policy=bind \
|
||||
-device pc-dimm,node=0,memdev=memdimm0,id=dimm0,slot=0,addr=4294967296 \
|
||||
-object memory-backend-ram,id=memdimm2,size=536870912 \
|
||||
-device pc-dimm,node=0,memdev=memdimm2,id=dimm2,slot=2 \
|
||||
|
@ -17,9 +17,9 @@ QEMU_AUDIO_DRV=none \
|
||||
-numa node,nodeid=0,cpus=0-1,mem=214 \
|
||||
-object memory-backend-ram,id=memdimm0,size=536870912 \
|
||||
-device pc-dimm,node=0,memdev=memdimm0,id=dimm0,slot=0 \
|
||||
-object memory-backend-file,id=memdimm1,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,size=536870912,\
|
||||
host-nodes=1-3,policy=bind \
|
||||
-object memory-backend-file,id=memdimm1,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,prealloc=yes,\
|
||||
size=536870912,host-nodes=1-3,policy=bind \
|
||||
-device pc-dimm,node=0,memdev=memdimm1,id=dimm1,slot=1 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -19,8 +19,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||
-smp 2,sockets=2,dies=1,cores=1,threads=1 \
|
||||
-object memory-backend-ram,id=ram-node0,size=224395264 \
|
||||
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm,\
|
||||
share=no,size=536870912 \
|
||||
-object memory-backend-file,id=memnvdimm0,mem-path=/tmp/nvdimm,share=no,\
|
||||
prealloc=yes,size=536870912 \
|
||||
-device nvdimm,node=0,memdev=memnvdimm0,id=nvdimm0,slot=0 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -19,8 +19,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||
-smp 2,sockets=2,dies=1,cores=1,threads=1 \
|
||||
-object memory-backend-ram,id=ram-node0,size=224395264 \
|
||||
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm,\
|
||||
share=no,size=536870912,align=2097152 \
|
||||
-object memory-backend-file,id=memnvdimm0,mem-path=/tmp/nvdimm,share=no,\
|
||||
prealloc=yes,size=536870912,align=2097152 \
|
||||
-device nvdimm,node=0,memdev=memnvdimm0,id=nvdimm0,slot=0 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -19,8 +19,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||
-smp 2,sockets=2,dies=1,cores=1,threads=1 \
|
||||
-object memory-backend-ram,id=ram-node0,size=224395264 \
|
||||
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm,\
|
||||
share=no,size=536870912 \
|
||||
-object memory-backend-file,id=memnvdimm0,mem-path=/tmp/nvdimm,share=no,\
|
||||
prealloc=yes,size=536870912 \
|
||||
-device nvdimm,node=0,label-size=131072,memdev=memnvdimm0,id=nvdimm0,slot=0 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -19,8 +19,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||
-smp 2,sockets=2,dies=1,cores=1,threads=1 \
|
||||
-object memory-backend-ram,id=ram-node0,size=224395264 \
|
||||
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm,\
|
||||
share=no,size=536870912,pmem=yes \
|
||||
-object memory-backend-file,id=memnvdimm0,mem-path=/tmp/nvdimm,share=no,\
|
||||
prealloc=yes,size=536870912,pmem=yes \
|
||||
-device nvdimm,node=0,memdev=memnvdimm0,id=nvdimm0,slot=0 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -18,7 +18,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||
-overcommit mem-lock=off \
|
||||
-smp 2,sockets=2,dies=1,cores=1,threads=1 \
|
||||
-numa node,nodeid=0,cpus=0-1,mem=1024 \
|
||||
-object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm,\
|
||||
-object memory-backend-file,id=memnvdimm0,mem-path=/tmp/nvdimm,prealloc=yes,\
|
||||
size=537001984 \
|
||||
-device nvdimm,node=0,label-size=131072,\
|
||||
uuid=49545eb3-75e1-2d0a-acdd-f0294406c99e,memdev=memnvdimm0,id=nvdimm0,slot=0 \
|
||||
|
@ -19,8 +19,8 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||
-smp 2,sockets=2,dies=1,cores=1,threads=1 \
|
||||
-object memory-backend-ram,id=ram-node0,size=224395264 \
|
||||
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm,\
|
||||
share=no,size=536870912 \
|
||||
-object memory-backend-file,id=memnvdimm0,mem-path=/tmp/nvdimm,share=no,\
|
||||
prealloc=yes,size=536870912 \
|
||||
-device nvdimm,node=0,unarmed=on,memdev=memnvdimm0,id=nvdimm0,slot=0 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-display none \
|
||||
|
@ -19,7 +19,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||
-smp 2,sockets=2,dies=1,cores=1,threads=1 \
|
||||
-object memory-backend-ram,id=ram-node0,size=1073741824 \
|
||||
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm,\
|
||||
-object memory-backend-file,id=memnvdimm0,mem-path=/tmp/nvdimm,prealloc=yes,\
|
||||
size=536870912 \
|
||||
-device nvdimm,node=0,memdev=memnvdimm0,id=nvdimm0,slot=0 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
|
@ -15,8 +15,8 @@ QEMU_AUDIO_DRV=none \
|
||||
-realtime mlock=off \
|
||||
-smp 2,sockets=2,cores=1,threads=1 \
|
||||
-numa node,nodeid=0,cpus=0-1,mem=1024 \
|
||||
-object memory-backend-file,id=memdimm0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-fedora,size=1073741824,\
|
||||
-object memory-backend-file,id=memdimm0,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-fedora,prealloc=yes,size=1073741824,\
|
||||
host-nodes=1-3,policy=bind \
|
||||
-device pc-dimm,node=0,memdev=memdimm0,id=dimm0,slot=0 \
|
||||
-object memory-backend-file,id=memdimm1,\
|
||||
|
@ -16,17 +16,17 @@ file=/tmp/lib/domain--1-gentoo/master-key.aes \
|
||||
-m 4096 \
|
||||
-realtime mlock=off \
|
||||
-smp 4,sockets=4,cores=1,threads=1 \
|
||||
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-gentoo,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node0,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-gentoo,prealloc=yes,size=1073741824 \
|
||||
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
||||
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-gentoo,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node1,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-gentoo,prealloc=yes,size=1073741824 \
|
||||
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
||||
-object memory-backend-file,id=ram-node2,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-gentoo,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node2,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-gentoo,prealloc=yes,size=1073741824 \
|
||||
-numa node,nodeid=2,cpus=2,memdev=ram-node2 \
|
||||
-object memory-backend-file,id=ram-node3,prealloc=yes,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-gentoo,size=1073741824 \
|
||||
-object memory-backend-file,id=ram-node3,\
|
||||
mem-path=/dev/hugepages1G/libvirt/qemu/-1-gentoo,prealloc=yes,size=1073741824 \
|
||||
-numa node,nodeid=3,cpus=3,memdev=ram-node3 \
|
||||
-uuid a75aca4b-a02f-2bcb-4a91-c93cd848c34b \
|
||||
-no-user-config \
|
||||
|
@ -17,8 +17,9 @@ file=/tmp/lib/domain--1-guest/master-key.aes \
|
||||
-m 2048 \
|
||||
-overcommit mem-lock=off \
|
||||
-smp 2,sockets=2,cores=1,threads=1 \
|
||||
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-guest,share=yes,size=2147483648 \
|
||||
-object memory-backend-file,id=ram-node0,\
|
||||
mem-path=/dev/hugepages2M/libvirt/qemu/-1-guest,share=yes,prealloc=yes,\
|
||||
size=2147483648 \
|
||||
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0 \
|
||||
-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \
|
||||
-display none \
|
||||
|
Loading…
x
Reference in New Issue
Block a user