]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86/shadow: Switch shadow_domain.has_fast_mmio_entries to bool
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Jul 2018 14:06:28 +0000 (15:06 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Aug 2018 17:42:17 +0000 (18:42 +0100)
Remove an unecessary if().

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/include/asm-x86/domain.h

index c54a0f2e099f59889eced2080e89f8dd8274d423..e70c18699fbe44d1bba9533b37036da9ca293b12 100644 (file)
@@ -3169,7 +3169,7 @@ shadow_write_p2m_entry(struct domain *d, unsigned long gfn,
     if ( d->arch.paging.shadow.has_fast_mmio_entries )
     {
         shadow_blow_tables(d);
-        d->arch.paging.shadow.has_fast_mmio_entries = 0;
+        d->arch.paging.shadow.has_fast_mmio_entries = false;
     }
 #endif
 
index 787595d034fc446b19ed088ec0dfc7953e06b0ab..f979dca2d308be24efdeeb6141a6cf835d269777 100644 (file)
@@ -563,8 +563,7 @@ _sh_propagate(struct vcpu *v,
     {
         /* Guest l1e maps emulated MMIO space */
         *sp = sh_l1e_mmio(target_gfn, gflags);
-        if ( !d->arch.paging.shadow.has_fast_mmio_entries )
-            d->arch.paging.shadow.has_fast_mmio_entries = 1;
+        d->arch.paging.shadow.has_fast_mmio_entries = true;
         goto done;
     }
 
index 09f6b3d2f8d0dd7e49a5031641d1ffa936a2a5d0..3da2c680730c7eecadb0ea1fcbe612309ecb5c3c 100644 (file)
@@ -113,7 +113,7 @@ struct shadow_domain {
     bool_t hash_walking;  /* Some function is walking the hash table */
 
     /* Fast MMIO path heuristic */
-    bool_t has_fast_mmio_entries;
+    bool has_fast_mmio_entries;
 
     /* OOS */
     bool_t oos_active;