summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill McVicker <willmcvicker@google.com>2021-11-22 11:22:21 -0800
committerBrandon Anderson <brandonand@google.com>2024-03-01 02:12:34 +0000
commit9ce20d90f92fe504ad8b97ead5024a387c00f0d1 (patch)
tree71dca7c25621980eb44d0ea4da9e99fb6144df4d
parent560b3e77edd7f521cdd3bb1e3ab5d8edb7bae394 (diff)
downloadtrusty-9ce20d90f92fe504ad8b97ead5024a387c00f0d1.tar.gz
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 <willmcvicker@google.com> Change-Id: I386c62da3d8e7e5479a6f68443b606605d9d27f2
-rw-r--r--drivers/trusty/trusty-ipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/trusty/trusty-ipc.c b/drivers/trusty/trusty-ipc.c
index 0ddd76c..aea792f 100644
--- a/drivers/trusty/trusty-ipc.c
+++ b/drivers/trusty/trusty-ipc.c
@@ -2658,6 +2658,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 },