https://bugzilla.kernel.org/show_bug.cgi?id=65561

--- Comment #14 from Jatin Kumar <jatin.iitde...@gmail.com> ---
(In reply to Jidong Xiao from comment #8)
> Hi, Jatin,
> 
> "from inside the OS" means from within the Guest OS right?
> (In reply to Jatin Kumar from comment #5)

Hello Jidong,
Yes it means from within guest OS. Sample code block is like this:

  intr_register_int(1, 3, INTR_OFF, intr_debug_handler_out, "#DB Debug
Exception");
  asm volatile(
    "pushfl \n\t"
    "orl $0x100, (%%esp) \n\t"
    "popfl \n\t"
    "nop \n\t"
    "nop \n\t"
    "outb %b0, %w1 \n\t"
    "nop \n\t"     <------- Not getting Debug Trap before executing this
    "nop \n\t"
    "pushfl \n\t"
    "xorl $0x100, (%%esp) \n\t"
    "popfl \n\t"
    :: "a"(2), "Nd" (80)
  );

Debug handler simply prints the EIP from interrupt frame and I don't see the
EIP of marked instruction.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to