mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
intel-iommu: Redefine macros to enable supporting 48 bit address width
The current implementation of Intel IOMMU code only supports 39 bits host/iova address width so number of macros use hard coded values based on that. This patch is to redefine them so they can be used with variable address widths. This patch doesn't add any new functionality but enables adding support for 48 bit address width. Signed-off-by: Prasad Singamsetty <prasad.singamsety@oracle.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
7de22778e1
commit
92e5d85e83
3 changed files with 61 additions and 33 deletions
|
@ -46,8 +46,10 @@
|
|||
#define VTD_SID_TO_DEVFN(sid) ((sid) & 0xff)
|
||||
|
||||
#define DMAR_REG_SIZE 0x230
|
||||
#define VTD_HOST_ADDRESS_WIDTH 39
|
||||
#define VTD_HAW_MASK ((1ULL << VTD_HOST_ADDRESS_WIDTH) - 1)
|
||||
#define VTD_HOST_AW_39BIT 39
|
||||
#define VTD_HOST_AW_48BIT 48
|
||||
#define VTD_HOST_ADDRESS_WIDTH VTD_HOST_AW_39BIT
|
||||
#define VTD_HAW_MASK(aw) ((1ULL << (aw)) - 1)
|
||||
|
||||
#define DMAR_REPORT_F_INTR (1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue