mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
10218ae6d0
commit
e04a34e55c
5 changed files with 22 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue