diff options
author | Jean-Philippe Brucker <[email protected]> | 2019-06-12 18:59:38 +0100 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2019-06-18 17:14:35 +0200 |
commit | 58b55c859ac00c6845b6aed8852c541bc204c935 (patch) | |
tree | b65de7a000f95abed1de8872bf90731508347411 /lib/cmdline.c | |
parent | bf3255b3cfe2d06280340dbac3f44b65d3ee6da3 (diff) |
iommu: Add padding to struct iommu_fault
Ease future extensions of struct iommu_fault_page_request and struct
iommu_fault_unrecoverable by adding a few bytes of padding. That way, a
new field can be added to either of these structures by simply introducing
a new flag. To extend it after the size limit is reached, a new fault
reporting structure will have to be negotiated with userspace.
With 56 bytes of padding, the total size of iommu_fault is 64 bytes and
fits in a cache line on a lot of contemporary machines, while providing 16
and 24 bytes of extension to structures iommu_fault_page_request and
iommu_fault_unrecoverable respectively.
Signed-off-by: Jean-Philippe Brucker <[email protected]>
Acked-by: Jacob Pan <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/cmdline.c')
0 files changed, 0 insertions, 0 deletions