x86/vmx: remove unnecessary is_hvm_domain() test in construct_vmcs()
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 11 Oct 2017 12:49:55 +0000 (14:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Oct 2017 12:49:55 +0000 (14:49 +0200)
It's a leftover from PVHv1 days.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/vmcs.c

index f62fe7e21725eefc7987f6d6468348e1a828ee4e..b5100b50215a6c7bc0d745d4a797b34a8695524c 100644 (file)
@@ -1271,14 +1271,10 @@ static int construct_vmcs(struct vcpu *v)
 
     vmx_vmcs_exit(v);
 
-    /* PVH: paging mode is updated by arch_set_info_guest(). */
-    if ( is_hvm_domain(d) )
-    {
-        /* will update HOST & GUEST_CR3 as reqd */
-        paging_update_paging_modes(v);
+    /* will update HOST & GUEST_CR3 as reqd */
+    paging_update_paging_modes(v);
 
-        vmx_vlapic_msr_changed(v);
-    }
+    vmx_vlapic_msr_changed(v);
 
     return 0;
 }