[PATCH] powerpc: Fix is_kvm_guest() / kvm_para_available()

Michael Ellerman patch-notifications at ellerman.id.au
Sat Jun 26 20:37:25 AEST 2021


On Wed, 23 Jun 2021 23:05:14 +1000, Michael Ellerman wrote:
> Commit a21d1becaa3f ("powerpc: Reintroduce is_kvm_guest() as a fast-path
> check") added is_kvm_guest() and changed kvm_para_available() to use it.
> 
> is_kvm_guest() checks a static key, kvm_guest, and that static key is
> set in check_kvm_guest().
> 
> The problem is check_kvm_guest() is only called on pseries, and even
> then only in some configurations. That means is_kvm_guest() always
> returns false on all non-pseries and some pseries depending on
> configuration. That's a bug.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc: Fix is_kvm_guest() / kvm_para_available()
      https://git.kernel.org/powerpc/c/95839225639ba7c3d8d7231b542728dcf222bf2d

cheers


More information about the Linuxppc-dev mailing list