x86/PV: conditionalize arch_set_info_guest()'s call to update_cr3()

sh_update_paging_modes() as its last action already invokes
sh_update_cr3(). Therefore there is no reason to invoke update_cr3()
another time immediately after calling paging_update_paging_modes(),
especially as sh_update_cr3() does not short-circuit the "nothing
changed" case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2023-03-24 11:11:48 +01:00
1 parent 189e4dd36a
commit 1bbfdc1636
1 file changed
+2 -2
+2 -2
View File
@@ -1445,8 +1445,8 @@ int arch_set_info_guest(
if ( paging_mode_enabled(d) )
paging_update_paging_modes(v);
update_cr3(v);
else
update_cr3(v);
#endif /* CONFIG_PV */
out:
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.