x86/hap: Refactor boolean field assignments

No functional change.

Signed-off-by: Petr Beneš <w1benny@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Petr Beneš authored and Jan Beulich committed 2024-04-25 09:55:00 +02:00
1 parent bd5213384b
commit 524eee7ce0
1 file changed
+2 -2
+2 -2
View 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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.