KVM: VMX: Save all segment data in real mode
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
1390a28b27
commit
ce56680347
|
@ -3216,6 +3216,7 @@ static void vmx_set_segment(struct kvm_vcpu *vcpu,
|
||||||
vmcs_write32(sf->limit, var->limit);
|
vmcs_write32(sf->limit, var->limit);
|
||||||
vmcs_write16(sf->selector, var->selector);
|
vmcs_write16(sf->selector, var->selector);
|
||||||
if (vmx->rmode.vm86_active && var->s) {
|
if (vmx->rmode.vm86_active && var->s) {
|
||||||
|
vmx->rmode.segs[seg] = *var;
|
||||||
/*
|
/*
|
||||||
* Hack real-mode segments into vm86 compatibility.
|
* Hack real-mode segments into vm86 compatibility.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue