From 95a86b2a0582b59ce9e736d45f9191b79d655cbf Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Wed, 23 May 2018 16:53:17 +0000 Subject: [PATCH] x86/vmx: Drop VMX signal for full real-mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Acked-by: Kevin Tian Reviewed-by: Roger Pau Monné --- 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; } -- 2.30.2