commit | 512d5649e8dc3ed36f2ebf0818da64a4d4c2544a | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Sun May 13 19:53:23 2012 +0300 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Wed May 16 16:03:19 2012 -0300 |
tree | 75fa25fcf4c7e7fc8f9fc8ab4c2aa01227ab9983 | |
parent | d54e4237bcbb400fda11c902fd538aa0b4805720 [diff] |
KVM: VMX: Fix %ds/%es clobber The vmx exit code unconditionally restores %ds and %es to __USER_DS. This can override the user's values, since %ds and %es are not saved and restored in x86_64 syscalls. In practice, this isn't dangerous since nobody uses segment registers in long mode, least of all programs that use KVM. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>