]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/gdbstub.c
target-i386: fix segment flags for SMM and VM86 mode
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 May 2014 14:07:04 +0000 (16:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 May 2014 16:02:08 +0000 (18:02 +0200)
commitb98dbc90950cd4e43ab9b4f8300dbeae6cf8c8cb
tree5ccd530f79ccd636d971e6e0336e090ad0afdfa6
parent87446327ccb2e944fe7abc848bab798a0864eb03
target-i386: fix segment flags for SMM and VM86 mode

With the next patch, these need to be correct or VM86 tasks
have the wrong CPL.  The flags are basically what the Intel VMX
documentation say is mandatory for entry into a VM86 guest.

For consistency, SMM ought to have the same flags except with
CPL=0.

Tested-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bsd-user/main.c
linux-user/main.c
target-i386/gdbstub.c
target-i386/seg_helper.c
target-i386/smm_helper.c