Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-26 Thread Wu, Feng
> Quoting you patch (v12, because it looks slightly better, but > the difference doesn't matter for this discussion): > > #define arch_vcpu_block(v) ({ \ > if ( (v)->domain->arch.hvm_domain.vmx.vcpu_block ) \ >

Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-26 Thread Jan Beulich
gt;> <feng...@intel.com> >> Cc: Doug Goldstein <car...@cardoe.com>; Andrew Cooper >> <andrew.coop...@citrix.com>; Dario Faggioli <dario.faggi...@citrix.com>; >> GeorgeDunlap <george.dun...@eu.citrix.com>; Tian, Kevin >> <kevin.t...@intel.com>

Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-25 Thread Wu, Feng
> <andrew.coop...@citrix.com>; Dario Faggioli <dario.faggi...@citrix.com>; > GeorgeDunlap <george.dun...@eu.citrix.com>; Tian, Kevin > <kevin.t...@intel.com>; xen-devel@lists.xen.org; Keir Fraser <k...@xen.org> > Subject: Re: [Xen-devel] [PATCH v13 1/2]

Re: [Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-24 Thread Wu, Feng
t;kevin.t...@intel.com>; Keir Fraser <k...@xen.org>; George > Dunlap <george.dun...@eu.citrix.com>; Andrew Cooper > <andrew.coop...@citrix.com>; Dario Faggioli <dario.faggi...@citrix.com>; xen- > de...@lists.xen.org > Subject: Re: [Xen-devel] [PATCH v13 1/2] vmx

[Xen-devel] [PATCH v13 1/2] vmx: VT-d posted-interrupt core logic handling

2016-02-23 Thread Feng Wu
This is the core logic handling for VT-d posted-interrupts. Basically it deals with how and when to update posted-interrupts during the following scenarios: - vCPU is preempted - vCPU is slept - vCPU is blocked When vCPU is preempted/slept, we update the posted-interrupts during scheduling by