Skip to contentSkip to conversation

x86/hvm: Remove unnecessary is_hvm_domain() test in construct_vmcs()

PATCH In review Boris Ostrovsky 3 participants 3 messages Sep 20, 2017 – Oct 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/hvm: Remove unnecessary is_hvm_domain() test in construct_vmcs()

It's a leftover from PVHv1 days.

---
 xen/arch/x86/hvm/vmx/vmcs.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
xen/arch/x86/hvm/vmx/vmcs.c +3 -7
index f62fe7e..b5100b5 100644
@@ -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;
 }
Signature · 7 lines
1.8.3.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw
In reply to Boris Ostrovsky
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 20.09.17 at 21:50, <[email protected]> wrote:

It's a leftover from PVHv1 days.

I've applied this despite the still missing VMX maintainer ack, for it being simple enough. But in general it should be you to chase missing acks.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel