[PATCH v2 06/10] qemu: Fix matching for read/write firmware