x86-64: drop updating of UREGS_rip when converting sysenter to #GP
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Jul 2012 08:00:12 +0000 (10:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Jul 2012 08:00:12 +0000 (10:00 +0200)
commit8b0ea8ec8c8d6f5a55939707625c0231a29110bf
tree1902c409e9a82dab90fa5fe6ff1caebb1f7658ef
parent2621048598e9c71a44811add31d8d7530d1ed056
x86-64: drop updating of UREGS_rip when converting sysenter to #GP

This was set to zero immediately before the #GP injection code, since
SYSENTER doesn't really have a return address.

Reported-by: Ian Campbell <Ian.Campbell@citrix.com>
Furthermore, UREGS_cs and UREGS_rip don't need to be written a second
time, as the PUSHes above already can/do take care of putting in place
the intended values.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/x86_64/entry.S