]> git.proxmox.com Git - qemu.git/commit
Fix real mode guest segments dpl value in savevm
authorOrit Wasserman <owasserm@redhat.com>
Mon, 22 Jul 2013 17:29:42 +0000 (20:29 +0300)
committerJuan Quintela <quintela@redhat.com>
Tue, 23 Jul 2013 12:36:10 +0000 (14:36 +0200)
commit3e47c249b93d5cc1e0f9404dbe243682598ba8fb
treeb720e5ce3f612c46228a9c258b8efde271d72c72
parent444ba6797ef6ef331fe9fd34309b1ec59caaede3
Fix real mode guest segments dpl value in savevm

Older KVM version put invalid value in the segments registers dpl field for
real mode guests (0x3).
This breaks migration from those hosts to hosts with unrestricted guest support.
We detect it by checking CS dpl value for real mode guest and fix the dpl values
of all the segment registers.

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
target-i386/machine.c