LF-3016-3 tools/virtio: ivshmem-console: correct device_vector to 0

We need to set device_vector to 0, otherwise inmate is not able to
trigger interrupt to root cell and virtio console not work.

This is a hack, not a good fix. With MSIX, we might able to use 2,
but we are using INTX now.

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Peng Fan 2020-12-11 11:46:01 +08:00 committed by Dong Aisheng
parent 761bdcb3fd
commit b0a28a79a1

View File

@ -361,9 +361,9 @@ int main(int argc, char *argv[])
memset(queue_config, 0, sizeof(queue_config));
queue_config[0].size = 8;
queue_config[0].device_vector = 1;
queue_config[0].device_vector = 0;
queue_config[1].size = 8;
queue_config[1].device_vector = 2;
queue_config[1].device_vector = 0;
current_queue = -1;
vc->config.cols = winsize.ws_col;