From 6dd2845c64d9d15c6691a0656505445c2e736fac Mon Sep 17 00:00:00 2001 From: Boris Ostrovsky Date: Wed, 11 Oct 2017 14:49:55 +0200 Subject: [PATCH] x86/vmx: remove unnecessary is_hvm_domain() test in construct_vmcs() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It's a leftover from PVHv1 days. Signed-off-by: Boris Ostrovsky Reviewed-by: Roger Pau Monné Acked-by: Jan Beulich --- xen/arch/x86/hvm/vmx/vmcs.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c index f62fe7e217..b5100b5021 100644 --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -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; } -- 2.30.2