diff options
author | David Hildenbrand <david@redhat.com> | 2022-10-14 15:47:18 +0200 |
---|---|---|
committer | David Hildenbrand <david@redhat.com> | 2022-10-27 11:00:56 +0200 |
commit | e04a34e55cf1911099e2d8a680f9bee4f6d90e4a (patch) | |
tree | a5bbbbb85c78a78baeb2e5d034fc4686b7258468 /util/oslib-win32.c | |
parent | 10218ae6d006f76410804cc4dc690085b3d008b5 (diff) | |
download | qemu-e04a34e55cf1911099e2d8a680f9bee4f6d90e4a.zip qemu-e04a34e55cf1911099e2d8a680f9bee4f6d90e4a.tar.gz qemu-e04a34e55cf1911099e2d8a680f9bee4f6d90e4a.tar.bz2 |
util: Make qemu_prealloc_mem() optionally consume a ThreadContext
... and implement it under POSIX. When a ThreadContext is provided,
create new threads via the context such that these new threads obtain a
properly configured CPU affinity.
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Message-Id: <20221014134720.168738-6-david@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'util/oslib-win32.c')
-rw-r--r-- | util/oslib-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/oslib-win32.c b/util/oslib-win32.c index e1cb725..a67cb38 100644 --- a/util/oslib-win32.c +++ b/util/oslib-win32.c @@ -269,7 +269,7 @@ int getpagesize(void) } void qemu_prealloc_mem(int fd, char *area, size_t sz, int max_threads, - Error **errp) + ThreadContext *tc, Error **errp) { int i; size_t pagesize = qemu_real_host_page_size(); |