summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2014-04-30 16:04:25 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-08-26 10:09:02 +0200
commit527e30b41d8b86e9ae7f5b740de416958c0e574e (patch)
treea19053eaa5ab6bb2f705006a0f7b5b90bb4a1a0b /block
parent6e0a0431bf7d90ed0b8a0a974ad219617a70cc22 (diff)
KVM: s390/mm: use radix trees for guest to host mappings
Store the target address for the gmap segments in a radix tree instead of using invalid segment table entries. gmap_translate becomes a simple radix_tree_lookup, gmap_fault is split into the address translation with gmap_translate and the part that does the linking of the gmap shadow page table with the process page table. A second radix tree is used to keep the pointers to the segment table entries for segments that are mapped in the guest address space. On unmap of a segment the pointer is retrieved from the radix tree and is used to carry out the segment invalidation in the gmap shadow page table. As the radix tree can only store one pointer, each host segment may only be mapped to exactly one guest location. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions