]> xenbits.xensource.com Git - xen.git/commitdiff
x86/hap: Refactor boolean field assignments
authorPetr Beneš <w1benny@gmail.com>
Thu, 25 Apr 2024 07:55:00 +0000 (09:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Apr 2024 07:55:00 +0000 (09:55 +0200)
No functional change.

Signed-off-by: Petr Beneš <w1benny@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/hap/hap.c

index 9f964c1d878faec55da292ab7e7dfea08e7279cc..d2011fde2462843ec0d5251b2ff05beeca2884a4 100644 (file)
@@ -522,7 +522,7 @@ int hap_enable(struct domain *d, u32 mode)
                goto out;
         }
 
-        d->arch.altp2m_active = 0;
+        d->arch.altp2m_active = false;
     }
 
     /* Now let other users see the new mode */
@@ -585,7 +585,7 @@ void hap_teardown(struct domain *d, bool *preempted)
             for_each_vcpu ( d, v )
                 altp2m_vcpu_disable_ve(v);
 
-        d->arch.altp2m_active = 0;
+        d->arch.altp2m_active = false;
 
         FREE_XENHEAP_PAGE(d->arch.altp2m_eptp);
         FREE_XENHEAP_PAGE(d->arch.altp2m_visible_eptp);