Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-27 Thread Xuquan (Quan Xu)
On February 23, 2017 4:38 PM, Chao Gao wrote: >On Thu, Feb 23, 2017 at 11:55:15AM +, Xuquan (Quan Xu) wrote: >>On February 23, 2017 7:01 PM, Jan Beulich wrote: >> On 23.02.17 at 11:53, wrote: On February 23, 2017 5:59 PM, Jan Beulich wrote: On 23.02.17 at 10:28, wrote: >

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-24 Thread Jan Beulich
>>> On 24.02.17 at 09:02, wrote: > Another question, it 'd be the _main_gap_.. > If the pCPU runs __vmx_deliver_posted_interrupt() here, in a > hyperver-context, > _iiuc_, all of vCPUs , waiting in the run queue, are scheduled out.. So the > 'current' is NULL, as there is no running vCPU.. Exc

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-24 Thread Xuquan (Quan Xu)
On February 23, 2017 8:27 PM, Jan Beulich wrote: On 23.02.17 at 12:55, wrote: >> On February 23, 2017 7:01 PM, Jan Beulich wrote: >> On 23.02.17 at 11:53, wrote: IOW, which vcpu does the 'current' refer to? which cpu does the ' smp_processor_id()' refer to? >>> >>>curren

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Chao Gao
On Thu, Feb 23, 2017 at 11:55:15AM +, Xuquan (Quan Xu) wrote: >On February 23, 2017 7:01 PM, Jan Beulich wrote: > On 23.02.17 at 11:53, wrote: >>> On February 23, 2017 5:59 PM, Jan Beulich wrote: >>> On 23.02.17 at 10:28, wrote: > On February 18, 2017 12:33 AM, Jan Beulich wrote:

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Jan Beulich
>>> On 23.02.17 at 12:55, wrote: > On February 23, 2017 7:01 PM, Jan Beulich wrote: > On 23.02.17 at 11:53, wrote: >>> IOW, >>> which vcpu does the 'current' refer to? >>> which cpu does the ' smp_processor_id()' refer to? >> >>current: currently running vCPU > > in a SMP machine, are ther

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Xuquan (Quan Xu)
On February 23, 2017 7:01 PM, Jan Beulich wrote: On 23.02.17 at 11:53, wrote: >> On February 23, 2017 5:59 PM, Jan Beulich wrote: >> On 23.02.17 at 10:28, wrote: On February 18, 2017 12:33 AM, Jan Beulich wrote: On 17.02.17 at 09:49, wrote: >>>diff --git a/xen/arch/x86

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Jan Beulich
>>> On 23.02.17 at 11:53, wrote: > On February 23, 2017 5:59 PM, Jan Beulich wrote: > On 23.02.17 at 10:28, wrote: >>> On February 18, 2017 12:33 AM, Jan Beulich wrote: >>> On 17.02.17 at 09:49, wrote: > On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: >>From a58

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Xuquan (Quan Xu)
On February 23, 2017 5:59 PM, Jan Beulich wrote: On 23.02.17 at 10:28, wrote: >> On February 18, 2017 12:33 AM, Jan Beulich wrote: >> On 17.02.17 at 09:49, wrote: On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: >From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Jan Beulich
>>> On 23.02.17 at 10:28, wrote: > On February 18, 2017 12:33 AM, Jan Beulich wrote: > On 17.02.17 at 09:49, wrote: >>> On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 >>00:00:00 2001 From: Quan Xu Date: S

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Xuquan (Quan Xu)
On February 18, 2017 12:33 AM, Jan Beulich wrote: On 17.02.17 at 09:49, wrote: >> On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: >>>From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 >00:00:00 2001 >>>From: Quan Xu >>>Date: Sat, 18 Feb 2017 09:27:37 +0800 >>>Subject:

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-21 Thread Tian, Kevin
> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] > Sent: Tuesday, February 21, 2017 12:12 PM > > On February 21, 2017 11:07 AM, Tian, Kevin wrote: > >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] > >> Sent: Tuesday, February 21, 2017 10:49 AM > >> > >> On February 20, 2017 4:24 PM, Chao

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-21 Thread Jan Beulich
>>> On 21.02.17 at 07:19, wrote: > On February 21, 2017 5:55 AM, Chao Gao wrote: >>On Tue, Feb 21, 2017 at 04:11:53AM +, Xuquan (Quan Xu) wrote: >>>The posted_intr_vector handler is not always pi_notification_interrupt. >>>If the vt-d PI is not enabled, the handler is event_check_interrupt.. >

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Xuquan (Quan Xu)
On February 21, 2017 5:55 AM, Chao Gao wrote: >On Tue, Feb 21, 2017 at 04:11:53AM +, Xuquan (Quan Xu) wrote: >>On February 21, 2017 11:07 AM, Tian, Kevin wrote: From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] Sent: Tuesday, February 21, 2017 10:49 AM >>Chao, __iiuc__, your que

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Chao Gao
On Tue, Feb 21, 2017 at 04:11:53AM +, Xuquan (Quan Xu) wrote: >On February 21, 2017 11:07 AM, Tian, Kevin wrote: >>> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >>> Sent: Tuesday, February 21, 2017 10:49 AM >>> >>Chao, __iiuc__, your question may be from the comments of >>> >xen/arch/x86

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Xuquan (Quan Xu)
On February 21, 2017 11:07 AM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Tuesday, February 21, 2017 10:49 AM >> >> On February 20, 2017 4:24 PM, Chao Gao wrote: >> >On Mon, Feb 20, 2017 at 11:25:29AM +, Xuquan (Quan Xu) wrote: >> >>On February 18, 2017 12

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Tian, Kevin
> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] > Sent: Tuesday, February 21, 2017 10:49 AM > > On February 20, 2017 4:24 PM, Chao Gao wrote: > >On Mon, Feb 20, 2017 at 11:25:29AM +, Xuquan (Quan Xu) wrote: > >>On February 18, 2017 12:33 AM, Jan Beulich wrote: > >> On 17.02.17 at 09:4

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Xuquan (Quan Xu)
On February 20, 2017 4:24 PM, Chao Gao wrote: >On Mon, Feb 20, 2017 at 11:25:29AM +, Xuquan (Quan Xu) wrote: >>On February 18, 2017 12:33 AM, Jan Beulich wrote: >> On 17.02.17 at 09:49, wrote: On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: >From a589074281cc22a3

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Chao Gao
On Mon, Feb 20, 2017 at 11:25:29AM +, Xuquan (Quan Xu) wrote: >On February 18, 2017 12:33 AM, Jan Beulich wrote: > On 17.02.17 at 09:49, wrote: >>> On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 >>00:00:00 2001

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Xuquan (Quan Xu)
On February 18, 2017 12:33 AM, Jan Beulich wrote: On 17.02.17 at 09:49, wrote: >> On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: >>>From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 >00:00:00 2001 >>>From: Quan Xu >>>Date: Sat, 18 Feb 2017 09:27:37 +0800 >>>Subject:

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-17 Thread Jan Beulich
>>> On 17.02.17 at 09:49, wrote: > On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: >>From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 00:00:00 2001 >>From: Quan Xu >>Date: Sat, 18 Feb 2017 09:27:37 +0800 >>Subject: [PATCH] x86/apicv: enhance posted-interrupt processing >

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-17 Thread Chao Gao
On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: >From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 00:00:00 2001 >From: Quan Xu >Date: Sat, 18 Feb 2017 09:27:37 +0800 >Subject: [PATCH] x86/apicv: enhance posted-interrupt processing > >If guest is already in non-root mode,

[Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-17 Thread Xuquan (Quan Xu)
>From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Sat, 18 Feb 2017 09:27:37 +0800 Subject: [PATCH] x86/apicv: enhance posted-interrupt processing If guest is already in non-root mode, an posted interrupt will be directly delivered to guest (leaving softir