• D
    iommu/vt-d: Fix SVM IOTLB flush handling · 5d52f482
    David Woodhouse 提交于
    Change the 'pages' parameter to 'unsigned long' to avoid overflow.
    
    Fix the device-IOTLB flush parameter calculation — the size of the IOTLB
    flush is indicated by the position of the least significant zero bit in
    the address field. For example, a value of 0x12345f000 will flush from
    0x123440000 to 0x12347ffff (256KiB).
    
    Finally, the cap_pgsel_inv() is not relevant to SVM; the spec says that
    *all* implementations must support page-selective invaliation for
    "first-level" translations. So don't check for it.
    Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
    5d52f482
intel-svm.c 15.5 KB