• Tiejun Chen's avatar
    xen/passthrough: extend hypercall to support rdm reservation policy · ab13e3dc
    Tiejun Chen authored
    This patch extends the existing hypercall to support rdm reservation policy.
    We return error or just throw out a warning message depending on whether
    the policy is "strict" or "relaxed" when reserving RDM regions in pfn space.
    Note in some special cases, e.g. add a device to hwdomain, and remove a
    device from user domain, 'relaxed' is fine enough since this is always safe
    to hwdomain.
    CC: Tim Deegan <tim@xen.org>
    CC: Keir Fraser <keir@xen.org>
    CC: Jan Beulich <jbeulich@suse.com>
    CC: Andrew Cooper <andrew.cooper3@citrix.com>
    CC: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
    CC: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
    CC: Ian Campbell <ian.campbell@citrix.com>
    CC: Stefano Stabellini <stefano.stabellini@citrix.com>
    CC: Yang Zhang <yang.z.zhang@intel.com>
    CC: Kevin Tian <kevin.tian@intel.com>
    Signed-off-by: default avatarTiejun Chen <tiejun.chen@intel.com>
    Reviewed-by: default avatarGeorge Dunlap <george.dunlap@eu.citrix.com>
    Acked-by: default avatarJan Beulich <jbeulich@suse.com>
    v13a: Fix build on ARM by passing 0 for flags to arm_smmu_assign_dev.
iommu.c 71.4 KB