All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Dor Laor <dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: debug and breakpoint interrupts handling?
Date: Mon, 25 Jun 2007 06:50:05 -0400	[thread overview]
Message-ID: <467F9DDD.1050108@qumranet.com> (raw)
In-Reply-To: <64F9B87B6B770947A9F8391472E032160C654AE8-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>

Dor Laor wrote:
>>>> Are you sure? the kvm_vmx_exit_handlers function pointer arrays has
>>>> the index named EXIT_REASON_EXCEPTION_NMI, so it must be handled as
>>>> NMI to me.
>>>>         
>>> This exit reason is either NMI, or software interrupt or exception.
>>>
>>> Refer update_exception_bitmap for the setting of VM Exit for which
>>> exception (int n).
>>>
>>> In normal situation, I think guest int 1/3 directly get handled in
>>> guest.
>>>       
>> So you mean interrupts 1/3 do not cause VMExit??
>>     
>
> Int 1 is updated in the update_exception_bitmap, so it does causes
> vmexit.
>   

This only happens if guest debugging is enabled (i.e. the host is 
debugging the guest).  However, if the guest is debugging itself, then 
these exceptions shouldn't be trapped.  Note that guest debugging and 
guest self debugging cannot be supported simultaneously using hardware 
debug support.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

  parent reply	other threads:[~2007-06-25 10:50 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25  8:24 debug and breakpoint interrupts handling? Jun Koi
     [not found] ` <fdaac4d50706250124u42bbcf69oc6934b1a52f9542d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-25  8:49   ` Dong, Eddie
     [not found]     ` <10EA09EFD8728347A513008B6B0DA77A01AA497A-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-25  8:56       ` Jun Koi
2007-06-25  8:51   ` Dor Laor
     [not found]     ` <64F9B87B6B770947A9F8391472E032160C654ABB-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-06-25  9:08       ` Jun Koi
     [not found]         ` <fdaac4d50706250208h20d62b04h44b53495ba3e6447-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-25  9:45           ` Dong, Eddie
     [not found]             ` <10EA09EFD8728347A513008B6B0DA77A01AA49C8-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-25 10:09               ` Jun Koi
     [not found]                 ` <fdaac4d50706250309y79a854c7xa0ca392c30e144a3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-25 10:42                   ` Dor Laor
     [not found]                     ` <64F9B87B6B770947A9F8391472E032160C654AE8-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-06-25 10:50                       ` Avi Kivity [this message]
2007-06-25 11:00                       ` Jun Koi
     [not found]                         ` <fdaac4d50706250400p5c8cbeeie7aba44a8cccbfc7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-25 13:23                           ` Dong, Eddie
     [not found]                             ` <10EA09EFD8728347A513008B6B0DA77A01AA4A03-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-27  3:51                               ` Jun Koi
     [not found]                                 ` <fdaac4d50706262051y1042a56haf0d397f82d74b61-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-27  7:20                                   ` Dor Laor
     [not found]                                     ` <64F9B87B6B770947A9F8391472E032160C730963-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-06-27 16:39                                       ` Jun Koi
     [not found]                                         ` <fdaac4d50706270939n2b703d1crf1ebe00847f06cfb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-27 21:26                                           ` Dor Laor
     [not found]                                             ` <64F9B87B6B770947A9F8391472E032160C730E48-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-06-28  3:26                                               ` Jun Koi
     [not found]                                                 ` <fdaac4d50706272026r33a09fe5gf96d1e2827e3fa30-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-29  6:12                                                   ` Compile error Dong, Eddie
     [not found]                                                     ` <10EA09EFD8728347A513008B6B0DA77A01AE9AD9-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-07-01  9:35                                                       ` Dor Laor
2007-06-27  6:06               ` debug and breakpoint interrupts handling? Jun Koi
     [not found]                 ` <fdaac4d50706262306y5bbec95fkae98ca848f59b85b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-27  6:48                   ` Dong, Eddie
     [not found]                     ` <10EA09EFD8728347A513008B6B0DA77A01AE9099-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-27  6:57                       ` Jun Koi
  -- strict thread matches above, loose matches on Subject: below --
2007-06-27  3:59 Gregory Haskins
     [not found] ` <4681A87B0200005A00026765-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
2007-06-27  4:33   ` Jun Koi
2007-06-27  4:36 Gregory Haskins
     [not found] ` <4681B11E0200005A0002676C-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
2007-06-27  5:15   ` Jun Koi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=467F9DDD.1050108@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.