hw/vfio/pci.h | 1 + include/hw/pci/pcie.h | 1 + include/hw/vfio/vfio-common.h | 5 +- include/standard-headers/drm/drm_fourcc.h | 43 ++++++++ include/standard-headers/linux/const.h | 2 +- include/standard-headers/linux/pci_regs.h | 1 + include/standard-headers/linux/vhost_types.h | 16 +++ include/standard-headers/linux/virtio_blk.h | 18 ++-- include/standard-headers/linux/virtio_config.h | 6 ++ include/standard-headers/linux/virtio_net.h | 1 + linux-headers/asm-arm64/bitsperlong.h | 23 ----- linux-headers/asm-arm64/kvm.h | 33 ++++++ linux-headers/asm-generic/bitsperlong.h | 13 ++- linux-headers/asm-generic/unistd.h | 134 +++++++------------------ linux-headers/asm-mips/unistd_n32.h | 1 + linux-headers/asm-mips/unistd_n64.h | 1 + linux-headers/asm-mips/unistd_o32.h | 1 + linux-headers/asm-powerpc/unistd_32.h | 1 + linux-headers/asm-powerpc/unistd_64.h | 1 + linux-headers/asm-riscv/bitsperlong.h | 13 --- linux-headers/asm-riscv/kvm.h | 134 ++++++++++++++++++++++++- linux-headers/asm-riscv/unistd.h | 9 ++ linux-headers/asm-s390/unistd_32.h | 2 + linux-headers/asm-s390/unistd_64.h | 2 + linux-headers/asm-x86/kvm.h | 3 + linux-headers/asm-x86/unistd_32.h | 1 + linux-headers/asm-x86/unistd_64.h | 1 + linux-headers/asm-x86/unistd_x32.h | 1 + linux-headers/linux/const.h | 2 +- linux-headers/linux/kvm.h | 18 +++- linux-headers/linux/mman.h | 14 +++ linux-headers/linux/psp-sev.h | 7 ++ linux-headers/linux/userfaultfd.h | 17 +++- linux-headers/linux/vfio.h | 27 +++++ linux-headers/linux/vhost.h | 31 ++++++ hw/pci/pcie.c | 7 ++ hw/vfio/ap.c | 113 +++++++++++++++++++++ hw/vfio/common.c | 51 +--------- hw/vfio/migration.c | 51 +++++++--- hw/vfio/pci-quirks.c | 10 +- hw/vfio/pci.c | 91 ++++++++++++++++- 41 files changed, 678 insertions(+), 229 deletions(-)