hw/arm/smmuv3: Queue helpers
authorEric Auger <eric.auger@redhat.com>
Fri, 4 May 2018 17:05:51 +0000 (18:05 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 4 May 2018 17:49:21 +0000 (18:49 +0100)
commitdadd1a0809b1aff8c4d5364f3714b3e0e039dcb0
tree3943cd19d95610ef3e2bed806c76769f2e84c138
parent6a736033d343e0e5774849fa0eef88f2582c364a
hw/arm/smmuv3: Queue helpers

We introduce helpers to read/write into the command and event
circular queues.

smmuv3_write_eventq and smmuv3_cmq_consume will become static
in subsequent patches.

Invalidation commands are not yet dealt with. We do not cache
data that need to be invalidated. This will change with vhost
integration.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Prem Mallappa <prem.mallappa@broadcom.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1524665762-31355-7-git-send-email-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmuv3-internal.h
hw/arm/smmuv3.c
hw/arm/trace-events