[RESEND PATCH V8 11/11] KVM: ROE: Store protected chunks in red black tree

2019-01-21 Thread Ahmed Abd El Mawgood
The old way of storing protected chunks was a linked list. That made linear overhead when searching for chunks. When reaching 2000 chunk, The time taken two read the last chunk was about 10 times slower than the first chunk. This patch stores the chunks as tree for faster search. Signed-off-by: Ah

[PATCH V8 11/11] KVM: ROE: Store protected chunks in red black tree

2019-01-06 Thread Ahmed Abd El Mawgood
The old way of storing protected chunks was a linked list. That made linear overhead when searching for chunks. When reaching 2000 chunk, The time taken two read the last chunk was about 10 times slower than the first chunk. This patch stores the chunks as tree for faster search. Signed-off-by: Ah