public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM handling external interrupts
@ 2012-06-07  0:12 sheng qiu
  2012-06-07  7:51 ` Abel Gordon
  0 siblings, 1 reply; 31+ messages in thread
From: sheng qiu @ 2012-06-07  0:12 UTC (permalink / raw)
  To: kvm

Hi all,

i have been doing the KVM stuff and have a couple of questions that
can not figure out.

1> as we know, normally the external interrupt will cause VMexit and
the hypervisor will inject a virtual interrupt if it is for guest.
Then which irq will be injected (i mean the interrupt vector for
indexing the guest IDT)? How does the KVM get to know about this
(associate a host IRQ with a guest virtual IRQ)?

2> if for assigned device to the guest, the hypervisor will deliver
that IRQ to the guest. by tracing the code, i found the host IRQ is
different with the guest's (i mean the interrupt vector). how the KVM
configure which interrupt vector the guest should use?

3> if we configure not exit on external interrupt by setting some
field in VMCS, what will happen during the physical interrupts? will
the CPU use the guest IDT for response interrupt? If so, can KVM
redirect the CPU to use another IDT for guest (assuming modifying the
IDTR)?

4> where is the guest IDT located? it this configured by the qemu
while initializing the vcpu and registers (include the IDTR)?

I really hope someone can reply to my questions. I will be very appreciated.

Thanks

-- 
Sheng Qiu
Texas A & M University
Room 332B Wisenbaker
email: herbert1984106@gmail.com
College Station, TX 77843-3259

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

end of thread, other threads:[~2012-06-10 13:30 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-07  0:12 KVM handling external interrupts sheng qiu
2012-06-07  7:51 ` Abel Gordon
2012-06-07  8:13   ` Jan Kiszka
2012-06-07  9:02     ` Jan Kiszka
2012-06-07 10:47       ` Abel Gordon
2012-06-07 10:51         ` Jan Kiszka
2012-06-07 11:05           ` Abel Gordon
2012-06-07 11:13             ` Jan Kiszka
2012-06-07 11:51               ` Abel Gordon
2012-06-07 11:54                 ` Jan Kiszka
2012-06-07 12:02                   ` Abel Gordon
2012-06-07 11:10           ` Jan Kiszka
2012-06-07 11:49             ` Abel Gordon
2012-06-07 12:11               ` Jan Kiszka
2012-06-07 12:25                 ` Abel Gordon
2012-06-07 15:05                   ` Jan Kiszka
2012-06-10  8:41                     ` Abel Gordon
2012-06-10 10:16                       ` Jan Kiszka
2012-06-10 10:43                         ` Abel Gordon
2012-06-10 12:16                           ` Jan Kiszka
2012-06-10 13:30                             ` Abel Gordon
2012-06-07  9:55     ` Abel Gordon
2012-06-07 10:23       ` Jan Kiszka
2012-06-07 10:34         ` Nadav Har'El
2012-06-07 10:48           ` Jan Kiszka
2012-06-07 11:40       ` Jan Kiszka
2012-06-07 12:17         ` Abel Gordon
2012-06-07 12:19           ` Jan Kiszka
2012-06-07 12:32             ` Abel Gordon
2012-06-07 15:07               ` Jan Kiszka
2012-06-10 10:12                 ` Abel Gordon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox