From cadb66e5c17ddc30eeb6955e82e508b27cacec4a Mon Sep 17 00:00:00 2001 From: Balazs Gerofi Date: Sun, 19 Mar 2017 21:45:42 +0900 Subject: [PATCH] init_host_ikc2linux(): adjust minimum queue size --- kernel/host.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/host.c b/kernel/host.c index 2fbc87dc..fb38c554 100644 --- a/kernel/host.c +++ b/kernel/host.c @@ -757,6 +757,9 @@ void init_host_ikc2linux(int linux_cpu) param.intr_cpu = linux_cpu; param.pkt_size = sizeof(struct ikc_scd_packet); param.queue_size = 2 * num_processors * sizeof(struct ikc_scd_packet); + if (param.queue_size < PAGE_SIZE * 4) { + param.queue_size = PAGE_SIZE * 4; + } param.magic = 0x1129; param.handler = dummy_packet_handler;