diff options
author | Will McVicker <willmcvicker@google.com> | 2021-11-22 11:22:21 -0800 |
---|---|---|
committer | Will McVicker <willmcvicker@google.com> | 2021-11-24 10:13:19 -0800 |
commit | 09629482290959333f11196ceb219b6141f9a626 (patch) | |
tree | 7b97a17c1d172b86615ee7f07a55c7df8c0938f6 | |
parent | 81e9ad30fbe11a25b041643e1947b23e9b8dd054 (diff) | |
download | trusty-09629482290959333f11196ceb219b6141f9a626.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.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 }, |