[PATCH v3 6/9] qemu: Fix matching for read/write firmware