diff options
author | David Hildenbrand | 2022-10-14 15:47:14 +0200 |
---|---|---|
committer | David Hildenbrand | 2022-10-27 11:00:28 +0200 |
commit | 6556aadc18c560e493b29dd99cae2cbf86d214cb (patch) | |
tree | 7d4b15d6988db2f112fab919483a2b783ad7856a /hw/virtio | |
parent | hw/mem/nvdimm: fix error message for 'unarmed' flag (diff) | |
download | qemu-6556aadc18c560e493b29dd99cae2cbf86d214cb.tar.gz qemu-6556aadc18c560e493b29dd99cae2cbf86d214cb.tar.xz qemu-6556aadc18c560e493b29dd99cae2cbf86d214cb.zip |
util: Cleanup and rename os_mem_prealloc()
Let's
* give the function a "qemu_*" style name
* make sure the parameters in the implementation match the prototype
* rename smp_cpus to max_threads, which makes the semantics of that
parameter clearer
... and add a function documentation.
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Message-Id: <20221014134720.168738-2-david@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/virtio-mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c index 30d03e987a..0e9ef4ff19 100644 --- a/hw/virtio/virtio-mem.c +++ b/hw/virtio/virtio-mem.c @@ -467,7 +467,7 @@ static int virtio_mem_set_block_state(VirtIOMEM *vmem, uint64_t start_gpa, int fd = memory_region_get_fd(&vmem->memdev->mr); Error *local_err = NULL; - os_mem_prealloc(fd, area, size, 1, &local_err); + qemu_prealloc_mem(fd, area, size, 1, &local_err); if (local_err) { static bool warned; |