x86/paging: vCPU host mode is always set

... thanks to paging_vcpu_init() being part of vCPU creation. Further
if paging is enabled on a domain, it's also guaranteed to be either HAP
or shadow. Drop respective unnecessary (parts of) conditionals.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
This commit is contained in:
Jan Beulich committed 2024-04-25 09:53:55 +02:00
1 parent 8c01d0e336
commit 9a73b4e210
1 file changed
+4 -11
+4 -11
View File
@@ -937,19 +937,12 @@ void paging_dump_vcpu_info(struct vcpu *v)
{
printk(" paging assistance: ");
if ( paging_mode_shadow(v->domain) )
{
if ( paging_get_hostmode(v) )
printk("shadowed %u-on-%u\n",
paging_get_hostmode(v)->guest_levels,
paging_get_hostmode(v)->shadow.shadow_levels);
else
printk("not shadowed\n");
}
else if ( paging_mode_hap(v->domain) && paging_get_hostmode(v) )
printk("shadowed %u-on-%u\n",
paging_get_hostmode(v)->guest_levels,
paging_get_hostmode(v)->shadow.shadow_levels);
else
printk("hap, %u levels\n",
paging_get_hostmode(v)->guest_levels);
else
printk("none\n");
}
}
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.