[PATCH v2 08/10] qemu: move code that depends on backing chain appropriately