Re: Commit f06e4ec breaks vmware

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Chua <jeff.chua.linux@...>
Cc: Jan Engelhardt <jengelh@...>, Thomas Gleixner <tglx@...>, Linux Kernel Mailing List <linux-kernel@...>, <petr@...>, Glauber de Oliveira Costa <gcosta@...>
Date: Monday, February 4, 2008 - 11:36 am

* Jeff Chua <jeff.chua.linux@gmail.com> wrote:


great! I've added:

   Tested-by: Jeff Chua <jeff.chua.linux@gmail.com>

to the commit message as well, if you dont mind. Full patch is below.


you did all the hard work by bisecting it down so fast - fixing it was 
easy :)

	Ingo

----------------------->
Subject: x86: VMI fix
From: Ingo Molnar <mingo@elte.hu>

Jeff Chua bisected down a vmware guest boot breakage (hang) to
this paravirt change:

  commit 8d947344c47a40626730bb80d136d8daac9f2060
  Author: Glauber de Oliveira Costa <gcosta@redhat.com>
  Date:   Wed Jan 30 13:31:12 2008 +0100

    x86: change write_idt_entry signature

fix the off-by-one indexing bug ...

Bisected-by: Jeff Chua <jeff.chua.linux@gmail.com>
Tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/kernel/vmi_32.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-x86.q/arch/x86/kernel/vmi_32.c
===================================================================
--- linux-x86.q.orig/arch/x86/kernel/vmi_32.c
+++ linux-x86.q/arch/x86/kernel/vmi_32.c
@@ -220,21 +220,21 @@ static void vmi_set_tr(void)
 static void vmi_write_idt_entry(gate_desc *dt, int entry, const gate_desc *g)
 {
 	u32 *idt_entry = (u32 *)g;
-	vmi_ops.write_idt_entry(dt, entry, idt_entry[0], idt_entry[2]);
+	vmi_ops.write_idt_entry(dt, entry, idt_entry[0], idt_entry[1]);
 }
 
 static void vmi_write_gdt_entry(struct desc_struct *dt, int entry,
 				const void *desc, int type)
 {
 	u32 *gdt_entry = (u32 *)desc;
-	vmi_ops.write_gdt_entry(dt, entry, gdt_entry[0], gdt_entry[2]);
+	vmi_ops.write_gdt_entry(dt, entry, gdt_entry[0], gdt_entry[1]);
 }
 
 static void vmi_write_ldt_entry(struct desc_struct *dt, int entry,
 				const void *desc)
 {
 	u32 *ldt_entry = (u32 *)desc;
-	vmi_ops.write_idt_entry(dt, entry, ldt_entry[0], ldt_entry[2]);
+	vmi_ops.write_idt_entry(dt, entry, ldt_entry[0], ldt_entry[1]);
 }
 
 static void vmi_load_sp0(struct tss_struct *tss,
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Commit f06e4ec breaks vmware, Jan Engelhardt, (Sun Feb 3, 10:11 am)
Re: Commit f06e4ec breaks vmware, Ingo Molnar, (Mon Feb 4, 7:51 am)
Re: Commit f06e4ec breaks vmware, Jan Engelhardt, (Mon Feb 4, 10:58 am)
Re: Commit f06e4ec breaks vmware, Jeff Chua, (Mon Feb 4, 10:01 am)
Re: Commit f06e4ec breaks vmware, Ingo Molnar, (Mon Feb 4, 10:53 am)
Re: Commit f06e4ec breaks vmware, Jeff Chua, (Mon Feb 4, 11:30 am)
Re: Commit f06e4ec breaks vmware, Ingo Molnar, (Mon Feb 4, 11:36 am)
Re: Commit f06e4ec breaks vmware, Zachary Amsden, (Mon Feb 4, 9:31 pm)
Re: Commit f06e4ec breaks vmware, Jeff Chua, (Mon Feb 4, 11:48 am)
Re: Commit f06e4ec breaks vmware, Ingo Molnar, (Mon Feb 4, 10:48 am)
Re: Commit f06e4ec breaks vmware, Petr Vandrovec, (Mon Feb 4, 12:19 am)