diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6e6421aeca03cd76c66172eb279b1ac1969fbc18..62b2d0cf2a7fca533366bd2d9f8b251021f4d387 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. */