util/oslib-posix: Avoid creating a single thread with MADV_POPULATE_WRITE
commitac86e5c37df4963846d1a2e999696bb5031a99cd
authorDavid Hildenbrand <david@redhat.com>
Fri, 17 Dec 2021 13:46:08 +0000 (17 14:46 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Jan 2022 10:19:55 +0000 (7 05:19 -0500)
tree341f6fb962b414e4d610e05b031d2c379e7b7a69
parent89aec6411c429adb662c53c94a986a5397961a7f
util/oslib-posix: Avoid creating a single thread with MADV_POPULATE_WRITE

Let's simplify the case when we only want a single thread and don't have
to mess with signal handlers.

Reviewed-by: Pankaj Gupta <pankaj.gupta@ionos.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20211217134611.31172-6-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
util/oslib-posix.c