# Re: \[PATCH\] powerpc: Fix is\_kvm\_guest() / kvm\_para\_available()

- From: Michael Ellerman \<hidden\>
- Date: 2021-06-26 10:42:26 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/06/9523406
- Thread: https://ratatoskr.run/linuxppc-dev/2021/06/9523362/t.md

```text
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
```
