From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Zhang, Yang Z" <yang.z.zhang@intel.com>
Cc: "keir.xen@gmail.com" <keir.xen@gmail.com>,
"Zhang, Xiantao" <xiantao.zhang@intel.com>,
"JBeulich@suse.com" <JBeulich@suse.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 0/4] Add posted interrupt supporting
Date: Wed, 10 Apr 2013 09:22:08 -0400 [thread overview]
Message-ID: <20130410132208.GF4865@phenom.dumpdata.com> (raw)
In-Reply-To: <A9667DDFB95DB7438FA9D7D576C3D87E09A05C53@SHSMSX101.ccr.corp.intel.com>
On Wed, Apr 10, 2013 at 02:51:41AM +0000, Zhang, Yang Z wrote:
> Konrad Rzeszutek Wilk wrote on 2013-04-10:
> > On Tue, Apr 09, 2013 at 02:01:27PM +0800, Yang Zhang wrote:
> >> 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.
> >
> > Is there a mechanism for the guest to figure out whether this is exported?
> Expose it to guest? No.
>
> >
> > Right now the Linux PVHVM guests will use the event channel mechanism
> > (via the 0xf3 callback vector). This means that if we want to do
> > IPIs (RESCHEDULE_VECTOR or CALL_FUNCTION_*) we end up doing a vmexit -
> > but with this we should be able to do these inside the guest right?
> I am not familiar with PV staffs. Will event channel mechanism touch vAPIC? If no, perhaps the answer is not.
No it won't. But any any inter-OS vectors (such as IPIs) would benefit
from vAPIC right? As in posting those vectors (assuming the destination
VCPU is running) would not cause an VMEXIT?
>
> >
> > If so, is there a mechanism inside the guest to detect this and
> > use the HVM mechanisms for IPI?
> Why guest should aware of this? Current implementation already covers the vIPI.
Not sure I understand you. What current implementation?
>
> >
> > It is mostly just the matter of not calling 'xen_hvm_smp_init' in the
> > Linux kernel.
> >
> >>
> >> - 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.
> >>
> >> Yang Zhang (4):
> >> VMX: Detect posted interrupt capability
> >> VMX: Turn on posted interrupt bit in vmcs
> >> VMX: Add posted interrupt supporting
> >> VMX: Use posted interrupt to deliver virutal interrupt
> >> xen/arch/x86/hvm/vioapic.c | 4 +-
> >> xen/arch/x86/hvm/vlapic.c | 19 +++++-
> >> xen/arch/x86/hvm/vmsi.c | 5 +-
> >> xen/arch/x86/hvm/vmx/vmcs.c | 18 +++++-
> >> xen/arch/x86/hvm/vmx/vmx.c | 81
> >> ++++++++++++++++++++++++ xen/arch/x86/hvm/vmx/vpmu_core2.c
> >> | 5 +- xen/arch/x86/hvm/vpt.c | 10 ++-
> >> xen/include/asm-x86/hvm/hvm.h | 2 +
> >> xen/include/asm-x86/hvm/vlapic.h | 1 +
> >> xen/include/asm-x86/hvm/vmx/vmcs.h | 13 ++++
> >> xen/include/asm-x86/hvm/vmx/vmx.h | 22 +++++++
> >> xen/include/asm-x86/mach-default/irq_vectors.h | 3 +- 12 files
> >> changed, 172 insertions(+), 11 deletions(-)
> >>
> >> _______________________________________________
> >> Xen-devel mailing list
> >> Xen-devel@lists.xen.org
> >> http://lists.xen.org/xen-devel
> >>
>
>
> Best regards,
> Yang
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
next prev parent reply other threads:[~2013-04-10 13:22 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 6:01 [PATCH 0/4] Add posted interrupt supporting Yang Zhang
2013-04-09 6:01 ` [PATCH 1/4] VMX: Detect posted interrupt capability Yang Zhang
2013-04-09 6:01 ` [PATCH 2/4] VMX: Turn on posted interrupt bit in vmcs Yang Zhang
2013-04-09 8:04 ` Jan Beulich
2013-04-09 8:30 ` Zhang, Yang Z
2013-04-09 8:55 ` Jan Beulich
2013-04-09 9:53 ` Zhang, Yang Z
2013-04-09 8:23 ` Jan Beulich
2013-04-09 8:38 ` Keir Fraser
2013-04-09 8:48 ` Zhang, Yang Z
2013-04-09 6:01 ` [PATCH 3/4] VMX: Add posted interrupt supporting Yang Zhang
2013-04-09 7:39 ` Keir Fraser
2013-04-09 7:58 ` Zhang, Yang Z
2013-04-09 8:14 ` Keir Fraser
2013-04-09 8:23 ` Zhang, Yang Z
2013-04-09 8:40 ` Keir Fraser
2013-04-09 8:17 ` Jan Beulich
2013-04-09 8:40 ` Zhang, Yang Z
2013-04-09 8:59 ` Keir Fraser
2013-04-09 8:53 ` Zhang, Yang Z
2013-04-09 9:00 ` Jan Beulich
2013-04-09 9:18 ` Keir Fraser
2013-04-09 6:01 ` [PATCH 4/4] VMX: Use posted interrupt to deliver virutal interrupt Yang Zhang
2013-04-09 7:40 ` Keir Fraser
2013-04-09 8:25 ` Zhang, Yang Z
2013-04-09 20:26 ` [PATCH 0/4] Add posted interrupt supporting Konrad Rzeszutek Wilk
2013-04-10 2:51 ` Zhang, Yang Z
2013-04-10 13:22 ` Konrad Rzeszutek Wilk [this message]
2013-04-10 13:32 ` Zhang, Yang Z
2013-04-10 13:42 ` Konrad Rzeszutek Wilk
2013-04-19 11:49 ` Stefano Stabellini
2013-04-19 13:10 ` Jan Beulich
2013-04-19 14:16 ` Stefano Stabellini
2013-04-19 14:23 ` Jan Beulich
2013-04-20 7:26 ` Zhang, Yang Z
2013-04-20 13:33 ` Stefano Stabellini
2013-04-10 13:58 ` Zhang, Yang Z
2013-04-10 14:34 ` Jan Beulich
2013-04-10 16:18 ` Keir Fraser
2013-04-11 1:04 ` Zhang, Yang Z
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=20130410132208.GF4865@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=keir.xen@gmail.com \
--cc=xen-devel@lists.xen.org \
--cc=xiantao.zhang@intel.com \
--cc=yang.z.zhang@intel.com \
/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.