qemu/backends
Pavel Fedin a3567ba1e6 hostmem: Ignore ENOSYS while setting MPOL_DEFAULT
Currently hostmem backend fails if CONFIG_NUMA is enabled in QEMU
(the default) but NUMA is not supported by the kernel. This makes
it impossible to use ivshmem in such configurations.

This patch fixes the problem by ignoring ENOSYS error if policy is set to
MPOL_DEFAULT. This way the code behaves in the same way as if CONFIG_NUMA
was not defined. qemu will still fail if the user specifies some other
policy, so that the user knows it.

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2015-11-23 10:43:38 -02:00
..
Makefile.objs backends: Introduce chr-testdev 2014-08-06 17:53:05 +02:00
baum.c qemu-char: convert braille backend to data-driven creation 2015-10-19 10:05:50 +02:00
hostmem-file.c maint: avoid useless "if (foo) free(foo)" pattern 2015-09-11 10:21:38 +03:00
hostmem-ram.c hostmem-ram: don't exit qemu if size of memory-backend-ram is way too big 2014-09-09 13:41:44 +02:00
hostmem.c hostmem: Ignore ENOSYS while setting MPOL_DEFAULT 2015-11-23 10:43:38 -02:00
msmouse.c qemu-char: convert msmouse backend to data-driven creation 2015-10-19 10:05:50 +02:00
rng-egd.c qerror: Clean up QERR_ macros to expand into a single string 2015-06-22 18:20:40 +02:00
rng-random.c qerror: Clean up QERR_ macros to expand into a single string 2015-06-22 18:20:40 +02:00
rng.c qerror: Clean up QERR_ macros to expand into a single string 2015-06-22 18:20:40 +02:00
testdev.c qemu-char: convert testdev backend to data-driven creation 2015-10-19 10:06:09 +02:00
tpm.c qerror: Clean up QERR_ macros to expand into a single string 2015-06-22 18:20:40 +02:00