All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vmx: correct EIP value of task-state segment
@ 2009-07-31  1:19 Kouya Shimura
  2009-07-31  7:36 ` Keir Fraser
  2009-08-20 12:40 ` Keir Fraser
  0 siblings, 2 replies; 8+ messages in thread
From: Kouya Shimura @ 2009-07-31  1:19 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 144 bytes --]

Major OSes(Linux, windows, ...) don't seem to use task switching. 
So this bug is missed.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>


[-- Attachment #2: tss.patch --]
[-- Type: text/x-patch, Size: 674 bytes --]

diff -r e6c966b3a4d8 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c	Thu Jul 30 17:56:23 2009 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c	Fri Jul 31 09:15:16 2009 +0900
@@ -2490,6 +2490,8 @@ asmlinkage void vmx_vmexit_handler(struc
         if ( (idtv_info & INTR_INFO_VALID_MASK) &&
              (idtv_info & INTR_INFO_DELIVER_CODE_MASK) )
             errcode = __vmread(IDT_VECTORING_ERROR_CODE);
+        inst_len = __get_instruction_length(); /* Safe: See SDM 3B 23.2.4 */
+        regs->eip += inst_len;
         hvm_task_switch((uint16_t)exit_qualification,
                         reasons[(exit_qualification >> 30) & 3],
                         errcode);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-08-24  2:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-31  1:19 [PATCH] vmx: correct EIP value of task-state segment Kouya Shimura
2009-07-31  7:36 ` Keir Fraser
2009-07-31  9:34   ` Kouya Shimura
2009-07-31 10:17     ` Keir Fraser
2009-07-31 12:18       ` Juergen Gross
2009-07-31 12:39         ` Keir Fraser
2009-08-20 12:40 ` Keir Fraser
2009-08-24  2:28   ` Kouya Shimura

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.