diff options
author | Liu Yi L | 2020-07-04 10:07:15 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2020-07-22 13:57:07 +0200 |
commit | a4544c45e109ceee87ee8c19baff28be3890d788 (patch) | |
tree | f5b5eb70e2da31fefede2ccf6e738dfc77bf0af7 /include | |
parent | virtio: verify that legacy support is not accidentally on (diff) | |
download | qemu-a4544c45e109ceee87ee8c19baff28be3890d788.tar.gz qemu-a4544c45e109ceee87ee8c19baff28be3890d788.tar.xz qemu-a4544c45e109ceee87ee8c19baff28be3890d788.zip |
intel_iommu: Use correct shift for 256 bits qi descriptor
In chapter 10.4.23 of VT-d spec 3.0, Descriptor Width bit was introduced
in VTD_IQA_REG. Software could set this bit to tell VT-d the QI descriptor
from software would be 256 bits. Accordingly, the VTD_IQH_QH_SHIFT should
be 5 when descriptor size is 256 bits.
This patch adds the DW bit check when deciding the shift used to update
VTD_IQH_REG.
Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Message-Id: <1593850035-35483-1-git-send-email-yi.l.liu@intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions