cc'ing Paul On Tue, 11 Apr 2017 20:10:17 +1000 Michael Ellerman <m...@ellerman.id.au> wrote:
> Nicholas Piggin <npig...@gmail.com> writes: > > > POWER9 hypervisors will not necessarily run guest threads together on > > the same core at the same time, so msgsndp should not be used. > > I'm worried this is encoding the behaviour of a particular hypervisor in > the guest kernel. Yeah, it's not ideal. > If we *can't* use msgsndp then the hypervisor better do something to > stop us from using it. POWER9 hypervisor has an hfscr and should clear that if it does not gang threads like POWER8. The guest still needs to know not to use it though... > If it would be preferable for us not to use msgsndp, then the hypervisor > can tell us that somehow, eg. in the device tree. I don't know that we have a really good way to do that other than guests to clear the doorbell feature for POWER9. Does the hypervisor set any relevant DT we can use today that says virtual sibling != physical sibling? If not, then we'll just have to clear it from all POWER9 guests until we get a DT proprety from phyp. Thanks, Nick