From 09629482290959333f11196ceb219b6141f9a626 Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Mon, 22 Nov 2021 11:22:21 -0800 Subject: trusty: add the TRUSTY virtio id to trusty-ipc.c We can't modify upstream headers. So directly add the TRUSTY virtio id to the trusty source. This only works because trusty is re-using an existing virtio ID which is very bad. This needs to eventually be fixed! Bug: 207176288 Signed-off-by: Will McVicker Change-Id: I386c62da3d8e7e5479a6f68443b606605d9d27f2 --- drivers/trusty/trusty-ipc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/trusty/trusty-ipc.c b/drivers/trusty/trusty-ipc.c index b553482..7ac586e 100644 --- a/drivers/trusty/trusty-ipc.c +++ b/drivers/trusty/trusty-ipc.c @@ -2117,6 +2117,8 @@ static void tipc_virtio_remove(struct virtio_device *vdev) kref_put(&vds->refcount, _free_vds); } +// TODO (b/207176288) This needs to be sent upstream +#define VIRTIO_ID_TRUSTY_IPC 13 /* virtio trusty ipc */ static const struct virtio_device_id tipc_virtio_id_table[] = { { VIRTIO_ID_TRUSTY_IPC, VIRTIO_DEV_ANY_ID }, { 0 }, -- cgit v1.2.3