kvm-s390.c (a4721ced760684d1776bf31f7925aa41bb3f4846) kvm-s390.c (97daa028f3f621adff2c4f7b15fe0874e5b5bd6c)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * hosting IBM Z kernel virtual machines (s390x)
4 *
5 * Copyright IBM Corp. 2008, 2020
6 *
7 * Author(s): Carsten Otte <cotte@de.ibm.com>
8 * Christian Borntraeger <borntraeger@de.ibm.com>

--- 1925 unchanged lines hidden (view full) ---

1934 slot = start + (end - start) / 2;
1935
1936 if (gfn >= memslots[slot].base_gfn)
1937 end = slot;
1938 else
1939 start = slot + 1;
1940 }
1941
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * hosting IBM Z kernel virtual machines (s390x)
4 *
5 * Copyright IBM Corp. 2008, 2020
6 *
7 * Author(s): Carsten Otte <cotte@de.ibm.com>
8 * Christian Borntraeger <borntraeger@de.ibm.com>

--- 1925 unchanged lines hidden (view full) ---

1934 slot = start + (end - start) / 2;
1935
1936 if (gfn >= memslots[slot].base_gfn)
1937 end = slot;
1938 else
1939 start = slot + 1;
1940 }
1941
1942 if (start >= slots->used_slots)
1943 return slots->used_slots - 1;
1944
1942 if (gfn >= memslots[start].base_gfn &&
1943 gfn < memslots[start].base_gfn + memslots[start].npages) {
1944 atomic_set(&slots->lru_slot, start);
1945 }
1946
1947 return start;
1948}
1949

--- 3106 unchanged lines hidden ---
1945 if (gfn >= memslots[start].base_gfn &&
1946 gfn < memslots[start].base_gfn + memslots[start].npages) {
1947 atomic_set(&slots->lru_slot, start);
1948 }
1949
1950 return start;
1951}
1952

--- 3106 unchanged lines hidden ---