Commit 7ae68002 authored by Lu Baolu's avatar Lu Baolu Committed by Greg Kroah-Hartman

iommu/vt-d: Set the right field for Page Walk Snoop

[ Upstream commit 66d78ad3 ]

Set the page walk snoop to the right bit, otherwise the domain
id field will be overlapped.
Reported-by: default avatarDave Jiang <dave.jiang@intel.com>
Fixes: 6f7db75e ("iommu/vt-d: Add second level page table interface")
Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cd3d34cf
......@@ -387,7 +387,7 @@ static inline void pasid_set_present(struct pasid_entry *pe)
*/
static inline void pasid_set_page_snoop(struct pasid_entry *pe, bool value)
{
pasid_set_bits(&pe->val[1], 1 << 23, value);
pasid_set_bits(&pe->val[1], 1 << 23, value << 23);
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment