On Thu, Sep 28, 2017 at 02:36:57PM -0700, Jacob Pan wrote:
> just to confirm, we have two separate APIs for bind_pasid_table_ptr and
> bind_page_table. For the former, we need to passdown the following info
> from qemu/vfio. For now
> struct pasid_table_config {
>       __u32 version;
> #define PASID_TABLE_CONFIG_VERSION_1 (1)
>       __u32 bytes;
>       __u64 base_ptr;
>       __u8 pasid_bits;
>       enum pasid_table_model model;
>       union {
>               struct {
>                       /* Intel specific fields */
>               } intel;
> 
>               struct {
>                       /* ARM specific fields */
>               } arm;
> 
>               struct {
>                       /* AMD specific fields */
>               } amd;
> 
>               /* ... */
>       };
> };

Yes, this looks good to me.


Regards,

        Joerg

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to