Commit:     262d5ee27271703a0396d63649430f43f3b5deb3
Parent:     38cb47ba0187c481aa949d3bbf149e014e8cacda
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 4 16:47:54 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Feb 4 16:47:54 2008 +0100

    x86: VMI fix
    Jeff Chua bisected down a vmware guest boot breakage (hang) to
    this paravirt change:
      commit 8d947344c47a40626730bb80d136d8daac9f2060
      Author: Glauber de Oliveira Costa <[EMAIL PROTECTED]>
      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 <[EMAIL PROTECTED]>
    Tested-by: Jeff Chua <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
 arch/x86/kernel/vmi_32.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/vmi_32.c b/arch/x86/kernel/vmi_32.c
index 4525bc2..12affe1 100644
--- a/arch/x86/kernel/vmi_32.c
+++ b/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,
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to