From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb4lS-0001fa-B6 for qemu-devel@nongnu.org; Thu, 15 Dec 2011 01:25:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rb4lR-0006VJ-7S for qemu-devel@nongnu.org; Thu, 15 Dec 2011 01:25:58 -0500 Received: from ozlabs.org ([203.10.76.45]:41776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb4lQ-0006UT-Cd for qemu-devel@nongnu.org; Thu, 15 Dec 2011 01:25:56 -0500 From: David Gibson Date: Thu, 15 Dec 2011 17:25:37 +1100 Message-Id: <1323930340-24055-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [RFC] Device isolation infrastructure v2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alex.williamson@redhat.com Cc: chrisw@redhat.com, aik@ozlabs.ru, rusty@rustcorp.com.au, agraf@suse.de, qemu-devel@nongnu.org, B08248@freescale.com, iommu@lists.linux-foundation.org, joerg.roedel@amd.com, scottwood@freescale.com, dwmw2@infradead.org, linux-kernel@vger.kernel.org Here's the second spin of my preferred approach to handling grouping of devices for safe assignment to guests. Changes since v1: * Many name changes and file moves for improved consistency * Bugfixes and cleanups * The interface to the next layer up is considerably fleshed out, although it still needs work. * Example initialization of groups for p5ioc2 and p7ioc. TODO: * Need sample initialization of groups for intel and/or amd iommus * Use of sysfs attributes to control group permission is probably a mistake. Although it seems a bit odd, registering a chardev for each group is probably better, because perms can be set from udev rules, just like everything else. * Need more details of what the binder structure will need to contain. * Handle complete removal of groups. * Clarify what will need to happen on the hot unplug path.