]> git.ipfire.org Git - thirdparty/qemu.git/commit
intel_iommu: Add missed reserved bit check for IEC descriptor
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 4 Nov 2024 12:55:36 +0000 (20:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Nov 2024 21:03:25 +0000 (16:03 -0500)
commit096d96e7be7071aa805c4e70ef51da0b99b6a8fc
tree52c1b5741384a7b84340d06b76b14a3350b0b468
parent8e761fb61cafa95f4f41acaf8e86fae7e898b555
intel_iommu: Add missed reserved bit check for IEC descriptor

IEC descriptor is 128-bit invalidation descriptor, must be padded with
128-bits of 0s in the upper bytes to create a 256-bit descriptor when
the invalidation queue is configured for 256-bit descriptors (IQA_REG.DW=1).

Fixes: 02a2cbc872df ("x86-iommu: introduce IEC notifiers")
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Message-Id: <20241104125536.1236118-4-zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c
hw/i386/intel_iommu_internal.h