I tried to write my own HOST_PAGE_ALIGN to fix VFIO and found out it is already there but does not work for KVM so here are 2 patches instead of one.
Alexey Kardashevskiy (2): kvm: initialize qemu_host_page_size vfio: fix mapping of MSIX bar hw/misc/vfio.c | 6 +++--- include/exec/exec-all.h | 1 + kvm-all.c | 1 + translate-all.c | 14 ++++++++------ 4 files changed, 13 insertions(+), 9 deletions(-) -- 1.8.4.rc4