qed: Table, L2 cache, and cluster functions
commita38d2fdd46bf897303acfad96a56be478e55e0c5
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 22 Sep 2010 13:56:08 +0000 (22 14:56 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 10 Dec 2010 16:46:09 +0000 (10 16:46 +0000)
treefa44ee6a8e7e390161f94655fcd11e5b485024ee
parent3b8d13c70cd9f230017017b9fe23eeca3c551f46
qed: Table, L2 cache, and cluster functions

This patch adds code to look up data cluster offsets in the image via
the L1/L2 tables.  The L2 tables are writethrough cached in memory for
performance (each read/write requires a lookup so it is essential to
cache the tables).

With cluster lookup code in place it is possible to implement
bdrv_is_allocated() to query the number of contiguous
allocated/unallocated clusters.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Makefile.objs
block/qed-cluster.c [new file with mode: 0644]
block/qed-gencb.c [new file with mode: 0644]
block/qed-l2-cache.c [new file with mode: 0644]
block/qed-table.c [new file with mode: 0644]
block/qed.c
block/qed.h
trace-events