]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commitdiff
x86/p2m-ept: adjust some types in ept_set_entry()
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Sep 2015 08:26:05 +0000 (10:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Sep 2015 08:26:05 +0000 (10:26 +0200)
Use unsigned and bool_t as appropriate.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-ept.c

index d1a8c1b90c5e80fdba204ad02b4da095d29ea88e..ed4c4930bbd3df41af715a3a65ec01f3c6c9e585 100644 (file)
@@ -662,12 +662,12 @@ ept_set_entry(struct p2m_domain *p2m, unsigned long gfn, mfn_t mfn,
 {
     ept_entry_t *table, *ept_entry = NULL;
     unsigned long gfn_remainder = gfn;
-    int i, target = order / EPT_TABLE_ORDER;
+    unsigned int i, target = order / EPT_TABLE_ORDER;
     int ret, rc = 0;
     bool_t direct_mmio = (p2mt == p2m_mmio_direct);
     uint8_t ipat = 0;
-    int need_modify_vtd_table = 1;
-    int vtd_pte_present = 0;
+    bool_t need_modify_vtd_table = 1;
+    bool_t vtd_pte_present = 0;
     unsigned int iommu_flags = p2m_get_iommu_flags(p2mt);
     enum { sync_off, sync_on, sync_check } needs_sync = sync_check;
     ept_entry_t old_entry = { .epte = 0 };