[xen master] x86/vmx: Drop VMX signal for full real-mode

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] x86/vmx: Drop VMX signal for full real-mode

patchbot
commit 95a86b2a0582b59ce9e736d45f9191b79d655cbf
Author:     Andrew Cooper <[hidden email]>
AuthorDate: Wed May 23 16:53:17 2018 +0000
Commit:     Andrew Cooper <[hidden email]>
CommitDate: Thu Jun 28 11:31:26 2018 +0100

    x86/vmx: Drop VMX signal for full real-mode
   
    The hvmloader code which used this signal was deleted 10 years ago (c/s
    50b12df83 "x86 vmx: Remove vmxassist").  Furthermore, the value gets discarded
    anyway because the HVM domain builder unconditionally sets %rax to 0 in the
    same action it uses to set %rip to the appropriate entrypoint.
   
    Signed-off-by: Andrew Cooper <[hidden email]>
    Acked-by: Kevin Tian <[hidden email]>
    Reviewed-by: Roger Pau Monné <[hidden email]>
---
 xen/arch/x86/hvm/vmx/vmx.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
index 610c8d6eb9..20a8a69fbe 100644
--- a/xen/arch/x86/hvm/vmx/vmx.c
+++ b/xen/arch/x86/hvm/vmx/vmx.c
@@ -462,10 +462,6 @@ static int vmx_vcpu_initialise(struct vcpu *v)
 
     vmx_install_vlapic_mapping(v);
 
-    /* %eax == 1 signals full real-mode support to the guest loader. */
-    if ( v->vcpu_id == 0 )
-        v->arch.user_regs.rax = 1;
-
     return 0;
 }
 
--
generated by git-patchbot for /home/xen/git/xen.git#master


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog