[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 3/7] amd-iommu: convert all bool_t to bool



Fix assignments to use 'false' rather than '0'.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
Cc: Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx>
Cc: Brian Woods <brian.woods@xxxxxxx>
---
 xen/drivers/passthrough/amd/iommu_map.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/xen/drivers/passthrough/amd/iommu_map.c 
b/xen/drivers/passthrough/amd/iommu_map.c
index e4f22c9fc6..d7df8b9161 100644
--- a/xen/drivers/passthrough/amd/iommu_map.c
+++ b/xen/drivers/passthrough/amd/iommu_map.c
@@ -45,13 +45,13 @@ void clear_iommu_pte_present(unsigned long l1_mfn, unsigned 
long dfn)
     unmap_domain_page(table);
 }
 
-static bool_t set_iommu_pde_present(uint32_t *pde, unsigned long next_mfn,
-                                    unsigned int next_level,
-                                    bool_t iw, bool_t ir)
+static bool set_iommu_pde_present(uint32_t *pde, unsigned long next_mfn,
+                                  unsigned int next_level,
+                                  bool iw, bool ir)
 {
     uint64_t addr_lo, addr_hi, maddr_old, maddr_next;
     uint32_t entry;
-    bool_t need_flush = 0;
+    bool need_flush = false;
 
     maddr_next = (uint64_t)next_mfn << PAGE_SHIFT;
 
@@ -104,13 +104,13 @@ static bool_t set_iommu_pde_present(uint32_t *pde, 
unsigned long next_mfn,
     return need_flush;
 }
 
-static bool_t set_iommu_pte_present(unsigned long pt_mfn, unsigned long dfn,
-                                    unsigned long next_mfn, int pde_level, 
-                                    bool_t iw, bool_t ir)
+static bool set_iommu_pte_present(unsigned long pt_mfn, unsigned long dfn,
+                                  unsigned long next_mfn, int pde_level,
+                                  bool iw, bool ir)
 {
     uint64_t *table;
     uint32_t *pde;
-    bool_t need_flush = 0;
+    bool need_flush = false;
 
     table = map_domain_page(_mfn(pt_mfn));
 
@@ -339,7 +339,7 @@ static int iommu_update_pde_count(struct domain *d, 
unsigned long pt_mfn,
     uint64_t *table, *pde, *ntable;
     uint64_t ntable_maddr, mask;
     struct domain_iommu *hd = dom_iommu(d);
-    bool_t ok = 0;
+    bool ok = false;
 
     ASSERT( spin_is_locked(&hd->arch.mapping_lock) && pt_mfn );
 
@@ -633,7 +633,7 @@ static int update_paging_mode(struct domain *d, unsigned 
long dfn)
 int amd_iommu_map_page(struct domain *d, dfn_t dfn, mfn_t mfn,
                        unsigned int flags)
 {
-    bool_t need_flush = 0;
+    bool need_flush = false;
     struct domain_iommu *hd = dom_iommu(d);
     int rc;
     unsigned long pt_mfn[7];
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.