summaryrefslogtreecommitdiff
path: root/lib/bch.c
diff options
context:
space:
mode:
authorJiang Liu <jiang.liu@linux.intel.com>2014-07-11 14:19:29 +0800
committerJoerg Roedel <jroedel@suse.de>2014-07-23 16:04:47 +0200
commit44bde61428f7719c54a2074443edddf0e827296c (patch)
tree0182bf0ceebd23310e8b95dba23218d10be63264 /lib/bch.c
parentfb170fb4c548c6d9fe9f71db946e216abb5c6641 (diff)
downloadlinux-44bde61428f7719c54a2074443edddf0e827296c.tar.gz
linux-44bde61428f7719c54a2074443edddf0e827296c.tar.bz2
linux-44bde61428f7719c54a2074443edddf0e827296c.zip
iommu/vt-d: Allocate dynamic domain id for virtual domains only
Check the same domain id is allocated for si_domain on each IOMMU, otherwise the IOTLB flush for si_domain will fail. Now the rules to allocate and manage domain id are: 1) For normal and static identity domains, domain id is allocated when creating domain structure. And this id will be written into context entry. 2) For virtual machine domain, a virtual id is allocated when creating domain. And when binding virtual machine domain to an iommu, a real domain id is allocated on demand and this domain id will be written into context entry. So domain->id for virtual machine domain may be different from the domain id written into context entry(used by hardware). Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions