Commit 9739ff4
KVM: PPC: Book3S HV: Refactor HFSCR emulation for KVM guests
Refactor HFSCR emulation for KVM guests when they exit out with
H_FAC_UNAVAIL to use a switch case instead of checking all "cause"
values, since the "cause" values are mutually exclusive; and this is
better expressed with a switch case.
Signed-off-by: Gautam Menghani <[email protected]>
Reviewed-by: Madhavan Srinivasan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]1 parent de9c2c6 commit 9739ff4
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
1925 | | - | |
| 1925 | + | |
| 1926 | + | |
1926 | 1927 | | |
1927 | | - | |
| 1928 | + | |
| 1929 | + | |
1928 | 1930 | | |
1929 | | - | |
| 1931 | + | |
| 1932 | + | |
1930 | 1933 | | |
1931 | | - | |
| 1934 | + | |
| 1935 | + | |
1932 | 1936 | | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
1933 | 1941 | | |
1934 | 1942 | | |
1935 | 1943 | | |
| |||
0 commit comments