For this, I believe, working with the mainline is more promising path, at least to reduce the amount of changes needed[1].
[1] https://gitlab.com/qemu-project/qemu/-/work_items/1896