Commit 040537c
KVM: PPC: Explicitly require struct page memory for Ultravisor sharing
Explicitly require "struct page" memory when sharing memory between
guest and host via an Ultravisor. Given the number of pfn_to_page()
calls in the code, it's safe to assume that KVM already requires that the
pfn returned by gfn_to_pfn() is backed by struct page, i.e. this is
likely a bug fix, not a reduction in KVM capabilities.
Switching to gfn_to_page() will eventually allow removing gfn_to_pfn()
and kvm_pfn_to_refcounted_page().
Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-79-seanjc@google.com>1 parent 570d666 commit 040537c
1 file changed
Lines changed: 12 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
| 882 | + | |
883 | 883 | | |
884 | | - | |
885 | 884 | | |
886 | 885 | | |
887 | 886 | | |
| |||
901 | 900 | | |
902 | 901 | | |
903 | 902 | | |
904 | | - | |
905 | | - | |
| 903 | + | |
| 904 | + | |
906 | 905 | | |
907 | 906 | | |
908 | 907 | | |
| |||
911 | 910 | | |
912 | 911 | | |
913 | 912 | | |
914 | | - | |
| 913 | + | |
915 | 914 | | |
916 | 915 | | |
917 | 916 | | |
918 | | - | |
| 917 | + | |
919 | 918 | | |
920 | 919 | | |
921 | 920 | | |
922 | 921 | | |
923 | | - | |
| 922 | + | |
924 | 923 | | |
925 | 924 | | |
926 | 925 | | |
| |||
1083 | 1082 | | |
1084 | 1083 | | |
1085 | 1084 | | |
1086 | | - | |
| 1085 | + | |
1087 | 1086 | | |
1088 | 1087 | | |
1089 | | - | |
1090 | | - | |
| 1088 | + | |
| 1089 | + | |
1091 | 1090 | | |
1092 | 1091 | | |
1093 | 1092 | | |
1094 | 1093 | | |
1095 | 1094 | | |
1096 | 1095 | | |
1097 | | - | |
1098 | | - | |
| 1096 | + | |
| 1097 | + | |
1099 | 1098 | | |
1100 | | - | |
| 1099 | + | |
1101 | 1100 | | |
1102 | 1101 | | |
1103 | 1102 | | |
| |||
0 commit comments