All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Add posted interrupt supporting
@ 2013-04-17  6:50 Yang Zhang
  2013-04-17  6:50 ` [PATCH v2 1/5] VMX: Detect posted interrupt capability Yang Zhang
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Yang Zhang @ 2013-04-17  6:50 UTC (permalink / raw)
  To: xen-devel; +Cc: jun.nakajima, Yang Zhang, keir.xen, xiantao.zhang, JBeulich

From: Yang Zhang <yang.z.zhang@Intel.com>

The follwoing patches are adding the Posted Interrupt supporting to Xen:
Posted Interrupt allows vAPIC interrupts to inject into guest directly
without any vmexit.

- When delivering a interrupt to guest, if target vcpu is running,
  update Posted-interrupt requests bitmap and send a notification event
  to the vcpu. Then the vcpu will handle this interrupt automatically,
  without any software involvemnt.

- If target vcpu is not running or there already a notification event
  pending in the vcpu, do nothing. The interrupt will be handled by
  next vm entry

Refer to Intel SDM vol3, 29.6  to get more information. 

Changes from v1 to v2:
* Allocate posted interrupt vector dynamically.
* Use vlapic_set_vector() to sync pir to irr.
* Refine vlapic_set_irq() and call it to deliver virtual interrupt.
* Rebase on top of Xen.

Yang Zhang (5):
  VMX: Detect posted interrupt capability
  VMX: Turn on posted interrupt bit in vmcs
  VMX: Add posted interrupt supporting
  Call vlapic_set_irq() to delivery virtual interrupt
  VMX: Use posted interrupt to deliver virutal interrupt

 xen/arch/x86/hvm/vioapic.c                     |    3 +-
 xen/arch/x86/hvm/vlapic.c                      |   38 +++++---------
 xen/arch/x86/hvm/vmsi.c                        |    3 +-
 xen/arch/x86/hvm/vmx/vmcs.c                    |   18 ++++++-
 xen/arch/x86/hvm/vmx/vmx.c                     |   70 ++++++++++++++++++++++++
 xen/include/asm-x86/bitops.h                   |   10 ++++
 xen/include/asm-x86/hvm/hvm.h                  |    2 +
 xen/include/asm-x86/hvm/vlapic.h               |   20 +++++++-
 xen/include/asm-x86/hvm/vmx/vmcs.h             |   13 +++++
 xen/include/asm-x86/hvm/vmx/vmx.h              |   27 +++++++++
 xen/include/asm-x86/mach-default/irq_vectors.h |    3 +-
 11 files changed, 175 insertions(+), 32 deletions(-)

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

end of thread, other threads:[~2013-04-18  8:43 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-17  6:50 [PATCH v2 0/5] Add posted interrupt supporting Yang Zhang
2013-04-17  6:50 ` [PATCH v2 1/5] VMX: Detect posted interrupt capability Yang Zhang
2013-04-17  6:50 ` [PATCH v2 2/5] VMX: Turn on posted interrupt bit in vmcs Yang Zhang
2013-04-17  9:02   ` Jan Beulich
2013-04-17 12:21     ` Zhang, Yang Z
2013-04-17  6:51 ` [PATCH v2 3/5] VMX: Add posted interrupt supporting Yang Zhang
2013-04-17  9:14   ` Jan Beulich
2013-04-17 12:40     ` Zhang, Yang Z
2013-04-17 13:15       ` Jan Beulich
2013-04-17 13:19         ` Zhang, Yang Z
2013-04-17  6:51 ` [PATCH v2 4/5] Call vlapic_set_irq() to delivery virtual interrupt Yang Zhang
2013-04-17  6:51 ` [PATCH v2 5/5] VMX: Use posted interrupt to deliver virutal interrupt Yang Zhang
2013-04-17  9:17   ` Jan Beulich
2013-04-17 12:32     ` Zhang, Yang Z
2013-04-17  7:04 ` [PATCH v2 0/5] Add posted interrupt supporting Keir Fraser
2013-04-17 12:53   ` George Dunlap
2013-04-17 16:54     ` Keir Fraser
2013-04-18  0:19       ` Zhang, Yang Z
2013-04-18  8:43         ` George Dunlap

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.