qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

virtfs-proxy-helper: Make the helper_opts[] array const

Reduce a bit the memory footprint by making the helper_opts[]
array const.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Greg Kurz <groug@kaod.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20200305010446.17029-4-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

authored by

Philippe Mathieu-Daudé and committed by
Laurent Vivier
b8ccfadc da5cf9a4

+1 -1
+1 -1
fsdev/virtfs-proxy-helper.c
··· 43 43 #define BTRFS_SUPER_MAGIC 0x9123683E 44 44 #endif 45 45 46 - static struct option helper_opts[] = { 46 + static const struct option helper_opts[] = { 47 47 {"fd", required_argument, NULL, 'f'}, 48 48 {"path", required_argument, NULL, 'p'}, 49 49 {"nodaemon", no_argument, NULL, 'n'},