Re: [PATCH 2/5] x86/vlapic: introduce an EOI callback mechanism

2020-08-24 Thread Jan Beulich
On 12.08.2020 14:47, Roger Pau Monne wrote: > Add a new vlapic_set_irq_callback helper in order to inject a vector > and set a callback to be executed when the guest performs the end of > interrupt acknowledgment. One thing I don't understand at all for now is how these callbacks are going to be r

Re: [PATCH 2/5] x86/vlapic: introduce an EOI callback mechanism

2020-08-13 Thread Roger Pau Monné
On Thu, Aug 13, 2020 at 03:33:37PM +0100, Andrew Cooper wrote: > On 12/08/2020 13:47, Roger Pau Monne wrote: > > diff --git a/xen/arch/x86/hvm/vlapic.c b/xen/arch/x86/hvm/vlapic.c > > index 7b5c633033..7369be468b 100644 > > --- a/xen/arch/x86/hvm/vlapic.c > > +++ b/xen/arch/x86/hvm/vlapic.c > > @@

Re: [PATCH 2/5] x86/vlapic: introduce an EOI callback mechanism

2020-08-13 Thread Andrew Cooper
On 12/08/2020 13:47, Roger Pau Monne wrote: > diff --git a/xen/arch/x86/hvm/vlapic.c b/xen/arch/x86/hvm/vlapic.c > index 7b5c633033..7369be468b 100644 > --- a/xen/arch/x86/hvm/vlapic.c > +++ b/xen/arch/x86/hvm/vlapic.c > @@ -159,8 +160,26 @@ void vlapic_set_irq(struct vlapic *vlapic, uint8_t vec,

[PATCH 2/5] x86/vlapic: introduce an EOI callback mechanism

2020-08-12 Thread Roger Pau Monne
Add a new vlapic_set_irq_callback helper in order to inject a vector and set a callback to be executed when the guest performs the end of interrupt acknowledgment. Such functionality will be used to migrate the current ad hoc handling done in vlapic_handle_EOI for the vectors that require some log