From: Avi Kivity Date: Tue, 21 Aug 2012 14:07:09 +0000 (+0300) Subject: KVM: VMX: Save all segment data in real mode X-Git-Tag: firefly_0821_release~3680^2~1917^2~28 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ce5668034752e52e995c8dc625337380099a088a;p=firefly-linux-kernel-4.4.55.git KVM: VMX: Save all segment data in real mode Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6e6421aeca03..62b2d0cf2a7f 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3216,6 +3216,7 @@ static void vmx_set_segment(struct kvm_vcpu *vcpu, vmcs_write32(sf->limit, var->limit); vmcs_write16(sf->selector, var->selector); if (vmx->rmode.vm86_active && var->s) { + vmx->rmode.segs[seg] = *var; /* * Hack real-mode segments into vm86 compatibility. */