vfio/spapr: Introduce spapr backend and target interface
commit9b7d38bf5a2c1054bfe6de08806954cdc45d8d98
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 2 Nov 2023 07:12:42 +0000 (2 15:12 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 18:03:38 +0000 (19 19:03 +0100)
treef1c739252b0d27279c54143ca25511761185e95b
parent1eb31f13b24c49884d8256f96a6664df2dd0824d
vfio/spapr: Introduce spapr backend and target interface

Introduce an empty spapr backend which will hold spapr specific
content, currently only prereg_listener and hostwin_list.

Also introduce two spapr specific callbacks add/del_window into
VFIOIOMMUOps. Instantiate a spapr ops with a helper setup_spapr_ops
and assign it to bcontainer->ops.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/spapr.c
include/hw/vfio/vfio-container-base.h