On 06/05/2014 11:00 PM, Alexander Graf wrote: > > On 05.06.14 08:53, Gavin Shan wrote: >> The patch implements sPAPRPHBClass::eeh_handler so that the >> EEH RTAS requests can be routed to VFIO for further handling. >> >> Signed-off-by: Gavin Shan <gws...@linux.vnet.ibm.com> > > Just to make sure I grasp this correctly. > > We have PHBs that are VFIO PHBs and PHBs that are emulation PHBs. Emulation > PHBs can only have emulated devices attached. VFIO PHBs can only have a > single IOMMU group's devices attached each. A container can not span 2 > different VFIO PHBs. > > Is this correct?
Yes, this is correct. PHBs are too cheap on SPAPR to think of any additional complication here :) > If not the code below needs to take care of any > abstraction we have in between and maybe limit scope a bit to make sure the > guest doesn't kill devices on other PHBs :). -- Alexey