mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
8c01d0e336
commit
9a73b4e210
1 file changed
+4
-11
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||