Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-20 Thread Stefano Stabellini
On Tue, 18 Aug 2020, Julien Grall wrote: > On 11/08/2020 23:48, Stefano Stabellini wrote: > > On Tue, 11 Aug 2020, Julien Grall wrote: > > > > I vaguely > > > > recall a bug 10+ years ago about this with QEMU on x86 and a line that > > > > could be both active-high and active-low. So QEMU would

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-18 Thread Julien Grall
Hi Stefano, On 11/08/2020 23:48, Stefano Stabellini wrote: On Tue, 11 Aug 2020, Julien Grall wrote: I vaguely recall a bug 10+ years ago about this with QEMU on x86 and a line that could be both active-high and active-low. So QEMU would raise the interrupt but Xen would actually think that

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-18 Thread Jan Beulich
On 18.08.2020 00:56, Stefano Stabellini wrote: > On Mon, 17 Aug 2020, Jan Beulich wrote: >> On 07.08.2020 23:50, Stefano Stabellini wrote: >>> On Fri, 7 Aug 2020, Jan Beulich wrote: On 07.08.2020 01:49, Stefano Stabellini wrote: > On Thu, 6 Aug 2020, Julien Grall wrote: >> On

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-17 Thread Stefano Stabellini
On Mon, 17 Aug 2020, Jan Beulich wrote: > On 07.08.2020 23:50, Stefano Stabellini wrote: > > On Fri, 7 Aug 2020, Jan Beulich wrote: > >> On 07.08.2020 01:49, Stefano Stabellini wrote: > >>> On Thu, 6 Aug 2020, Julien Grall wrote: > On 06/08/2020 01:37, Stefano Stabellini wrote: > > On

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-17 Thread Jan Beulich
On 07.08.2020 23:50, Stefano Stabellini wrote: > On Fri, 7 Aug 2020, Jan Beulich wrote: >> On 07.08.2020 01:49, Stefano Stabellini wrote: >>> On Thu, 6 Aug 2020, Julien Grall wrote: On 06/08/2020 01:37, Stefano Stabellini wrote: > On Wed, 5 Aug 2020, Julien Grall wrote: >> On

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-11 Thread Stefano Stabellini
On Tue, 11 Aug 2020, Julien Grall wrote: > On 11/08/2020 00:34, Stefano Stabellini wrote: > > On Sat, 8 Aug 2020, Julien Grall wrote: > > > On Fri, 7 Aug 2020 at 22:51, Stefano Stabellini > > > wrote: > > > > > > > > On Fri, 7 Aug 2020, Jan Beulich wrote: > > > > > On 07.08.2020 01:49, Stefano

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-11 Thread Julien Grall
Hi Stefano, On 11/08/2020 00:34, Stefano Stabellini wrote: On Sat, 8 Aug 2020, Julien Grall wrote: On Fri, 7 Aug 2020 at 22:51, Stefano Stabellini wrote: On Fri, 7 Aug 2020, Jan Beulich wrote: On 07.08.2020 01:49, Stefano Stabellini wrote: On Thu, 6 Aug 2020, Julien Grall wrote: On

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-10 Thread Stefano Stabellini
On Sat, 8 Aug 2020, Julien Grall wrote: > On Fri, 7 Aug 2020 at 22:51, Stefano Stabellini > wrote: > > > > On Fri, 7 Aug 2020, Jan Beulich wrote: > > > On 07.08.2020 01:49, Stefano Stabellini wrote: > > > > On Thu, 6 Aug 2020, Julien Grall wrote: > > > >> On 06/08/2020 01:37, Stefano Stabellini

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-08 Thread Julien Grall
On Sat, 8 Aug 2020 at 10:27, Julien Grall wrote: > > On Fri, 7 Aug 2020 at 22:51, Stefano Stabellini > wrote: > > > > On Fri, 7 Aug 2020, Jan Beulich wrote: > > > On 07.08.2020 01:49, Stefano Stabellini wrote: > > > > On Thu, 6 Aug 2020, Julien Grall wrote: > > > >> On 06/08/2020 01:37, Stefano

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-08 Thread Julien Grall
On Fri, 7 Aug 2020 at 22:51, Stefano Stabellini wrote: > > On Fri, 7 Aug 2020, Jan Beulich wrote: > > On 07.08.2020 01:49, Stefano Stabellini wrote: > > > On Thu, 6 Aug 2020, Julien Grall wrote: > > >> On 06/08/2020 01:37, Stefano Stabellini wrote: > > >>> On Wed, 5 Aug 2020, Julien Grall wrote:

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-07 Thread Stefano Stabellini
On Fri, 7 Aug 2020, Jan Beulich wrote: > On 07.08.2020 01:49, Stefano Stabellini wrote: > > On Thu, 6 Aug 2020, Julien Grall wrote: > >> On 06/08/2020 01:37, Stefano Stabellini wrote: > >>> On Wed, 5 Aug 2020, Julien Grall wrote: > On 05/08/2020 00:22, Stefano Stabellini wrote: > > On

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-07 Thread Jan Beulich
On 07.08.2020 01:49, Stefano Stabellini wrote: > On Thu, 6 Aug 2020, Julien Grall wrote: >> On 06/08/2020 01:37, Stefano Stabellini wrote: >>> On Wed, 5 Aug 2020, Julien Grall wrote: On 05/08/2020 00:22, Stefano Stabellini wrote: > On Mon, 3 Aug 2020, Oleksandr Tyshchenko wrote: >>

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-06 Thread Stefano Stabellini
On Thu, 6 Aug 2020, Julien Grall wrote: > On 06/08/2020 01:37, Stefano Stabellini wrote: > > On Wed, 5 Aug 2020, Julien Grall wrote: > > > On 05/08/2020 00:22, Stefano Stabellini wrote: > > > > On Mon, 3 Aug 2020, Oleksandr Tyshchenko wrote: > > > > > From: Oleksandr Tyshchenko > > > > > > > > >

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-06 Thread Julien Grall
Hi Stefano, On 06/08/2020 01:37, Stefano Stabellini wrote: On Wed, 5 Aug 2020, Julien Grall wrote: On 05/08/2020 00:22, Stefano Stabellini wrote: On Mon, 3 Aug 2020, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko This patch adds ability to the device emulator to notify otherend

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-05 Thread Stefano Stabellini
On Wed, 5 Aug 2020, Julien Grall wrote: > On 05/08/2020 00:22, Stefano Stabellini wrote: > > On Mon, 3 Aug 2020, Oleksandr Tyshchenko wrote: > > > From: Oleksandr Tyshchenko > > > > > > This patch adds ability to the device emulator to notify otherend > > > (some entity running in the guest)

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-05 Thread Oleksandr
On 05.08.20 19:15, Jan Beulich wrote: Hi, Jan On 03.08.2020 20:21, Oleksandr Tyshchenko wrote: --- a/xen/include/public/hvm/dm_op.h +++ b/xen/include/public/hvm/dm_op.h @@ -417,6 +417,20 @@ struct xen_dm_op_pin_memory_cacheattr { uint32_t pad; }; +/* + * XEN_DMOP_set_irq_level:

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-05 Thread Jan Beulich
On 03.08.2020 20:21, Oleksandr Tyshchenko wrote: > --- a/xen/include/public/hvm/dm_op.h > +++ b/xen/include/public/hvm/dm_op.h > @@ -417,6 +417,20 @@ struct xen_dm_op_pin_memory_cacheattr { > uint32_t pad; > }; > > +/* > + * XEN_DMOP_set_irq_level: Set the logical level of a one of a

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-05 Thread Julien Grall
Hi, On 05/08/2020 00:22, Stefano Stabellini wrote: On Mon, 3 Aug 2020, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko This patch adds ability to the device emulator to notify otherend (some entity running in the guest) using a SPI and implements Arm specific bits for it. Proposed

Re: [RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-04 Thread Stefano Stabellini
On Mon, 3 Aug 2020, Oleksandr Tyshchenko wrote: > From: Oleksandr Tyshchenko > > This patch adds ability to the device emulator to notify otherend > (some entity running in the guest) using a SPI and implements Arm > specific bits for it. Proposed interface allows emulator to set > the logical

[RFC PATCH V1 05/12] hvm/dm: Introduce xendevicemodel_set_irq_level DM op

2020-08-03 Thread Oleksandr Tyshchenko
From: Oleksandr Tyshchenko This patch adds ability to the device emulator to notify otherend (some entity running in the guest) using a SPI and implements Arm specific bits for it. Proposed interface allows emulator to set the logical level of a one of a domain's IRQ lines. Please note, this is