>>> On 26.01.16 at 14:47, <quan...@intel.com> wrote: > As you mentioned , I simply need to consult the bitmap along with the domain > ID array. > > +If ( test_bit(did, iommu->domid_bitmap) && iommu->domid_map[did] >= 0 ) > + d = rcu_lock_domain_by_id(iommu->domid_map[did]); > > Is it right now?
Mostly, except that I don't understand the >= 0 part. > At first, I am open for any solution. > pcidevs_lock is quite a big lock. For this point, it looks much better to > add a new flag to delay hiding device. > I am also afraid that it may raise further security issues. Well, I'd say just go and see which one turns out to be less cumbersome and/or less intrusive. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel