x86/mm: don't needlessly veto migration
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 10 Oct 2019 15:45:15 +0000 (17:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Oct 2019 15:45:15 +0000 (17:45 +0200)
commit9ef9f69466beb35c04f9d1a3f7f8f05a5c3f2bc0
tree1e4a26bff1efda2353d9407feda543c44ec1b0b5
parent521a1445510a30873aec471194045e7f4b5e8d75
x86/mm: don't needlessly veto migration

Now that xl.cfg has an option to explicitly enable IOMMU mappings for a
domain, migration may be needlessly vetoed due to the check of
is_iommu_enabled() in paging_log_dirty_enable().
There is actually no need to prevent logdirty from being enabled unless
devices are assigned to a domain.

NOTE: While in the neighbourhood, the bool_t parameter type in
      paging_log_dirty_enable() is replaced with a bool and the format
      of the comment in assign_device() is fixed.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/paging.c
xen/include/asm-x86/paging.h