On Tue, Jul 17, 2018 at 11:48:20AM +0200, Roger Pau Monne wrote: > To the outside of the vpci struct. This way the lock can be used to > check whether vpci is present, and removal can be performed while > holding the lock, in order to make sure there are no accesses to the > contents of the vpci struct. Previously removal could race with > vpci_read for example, since the lock was dropped prior to freeing > pdev->vpci. > > Signed-off-by: Roger Pau Monné <roger....@citrix.com>
Reviewed-by: Wei Liu <wei.l...@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel