Skip to the content.

qemu memory backend

源码中 ./backends

https://www.qemu.org/docs/master/system/devices/vhost-user.html 中提到,只有这几种 backend 才可以

In order for the daemon to access the VirtIO queues to process the requests it needs access to the guest’s address space. This is achieved via the memory-backend-file, memory-backend-memfd, or memory-backend-shm objects.

基本操作

  1. info memdev
(qemu) info memdev
memory backend: mem0
  size:  8589934592
  merge: true
  dump: true
  prealloc: false
  share: true
  reserve: true
  policy: default
  host nodes:

执行流程:

启动的时候:

只会调用一次,而且热插不会调用,看来是通过 maxmem 一次性就分配好了。

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。