Re: Event delivery and "domain blocking" on PVHv2

2020-06-22 Thread Roger Pau Monné
On Mon, Jun 22, 2020 at 06:20:34PM +0200, Jan Beulich wrote: > On 22.06.2020 18:09, Roger Pau Monné wrote: > > On Mon, Jun 22, 2020 at 05:31:00PM +0200, Martin Lucina wrote: > >> On 2020-06-22 15:58, Roger Pau Monné wrote: > >>> On Mon, Jun 22, 2020 at 12:58:37PM +0200, Martin Lucina wrote: >

Re: Event delivery and "domain blocking" on PVHv2

2020-06-22 Thread Martin Lucina
On 2020-06-22 18:20, Jan Beulich wrote: On 22.06.2020 18:09, Roger Pau Monné wrote: On Mon, Jun 22, 2020 at 05:31:00PM +0200, Martin Lucina wrote: On 2020-06-22 15:58, Roger Pau Monné wrote: On Mon, Jun 22, 2020 at 12:58:37PM +0200, Martin Lucina wrote: Aha! Thank you for pointing this out. I

Re: Event delivery and "domain blocking" on PVHv2

2020-06-22 Thread Jan Beulich
On 22.06.2020 18:09, Roger Pau Monné wrote: > On Mon, Jun 22, 2020 at 05:31:00PM +0200, Martin Lucina wrote: >> On 2020-06-22 15:58, Roger Pau Monné wrote: >>> On Mon, Jun 22, 2020 at 12:58:37PM +0200, Martin Lucina wrote: Aha! Thank you for pointing this out. I think you may be right, but >>>

Re: Event delivery and "domain blocking" on PVHv2

2020-06-22 Thread Roger Pau Monné
On Mon, Jun 22, 2020 at 05:31:00PM +0200, Martin Lucina wrote: > On 2020-06-22 15:58, Roger Pau Monné wrote: > > On Mon, Jun 22, 2020 at 12:58:37PM +0200, Martin Lucina wrote: > > > Aha! Thank you for pointing this out. I think you may be right, but > > > this > > > should be possible without doing

Re: Event delivery and "domain blocking" on PVHv2

2020-06-22 Thread Jan Beulich
On 22.06.2020 17:31, Martin Lucina wrote: > On 2020-06-22 15:58, Roger Pau Monné wrote: >> On Mon, Jun 22, 2020 at 12:58:37PM +0200, Martin Lucina wrote: >>> How about this arrangement, which appears to work for me; no hangs I >>> can see >>> so far and domU survives ping -f fine with no packet lo

Re: Event delivery and "domain blocking" on PVHv2

2020-06-22 Thread Martin Lucina
On 2020-06-22 15:58, Roger Pau Monné wrote: On Mon, Jun 22, 2020 at 12:58:37PM +0200, Martin Lucina wrote: Aha! Thank you for pointing this out. I think you may be right, but this should be possible without doing the demuxing in interrupt context. If you don't do the demuxing in the interrupt

Re: Event delivery and "domain blocking" on PVHv2

2020-06-22 Thread Roger Pau Monné
On Mon, Jun 22, 2020 at 12:58:37PM +0200, Martin Lucina wrote: > On 2020-06-19 19:42, Roger Pau Monné wrote: > > On Fri, Jun 19, 2020 at 06:54:26PM +0200, Roger Pau Monné wrote: > > > On Fri, Jun 19, 2020 at 06:41:21PM +0200, Martin Lucina wrote: > > > > On 2020-06-19 13:21, Roger Pau Monné wrote:

Re: Event delivery and "domain blocking" on PVHv2

2020-06-22 Thread Martin Lucina
On 2020-06-19 19:42, Roger Pau Monné wrote: On Fri, Jun 19, 2020 at 06:54:26PM +0200, Roger Pau Monné wrote: On Fri, Jun 19, 2020 at 06:41:21PM +0200, Martin Lucina wrote: > On 2020-06-19 13:21, Roger Pau Monné wrote: > > On Fri, Jun 19, 2020 at 12:28:50PM +0200, Martin Lucina wrote: > > > On 20

Re: Event delivery and "domain blocking" on PVHv2

2020-06-19 Thread Roger Pau Monné
On Fri, Jun 19, 2020 at 06:54:26PM +0200, Roger Pau Monné wrote: > On Fri, Jun 19, 2020 at 06:41:21PM +0200, Martin Lucina wrote: > > On 2020-06-19 13:21, Roger Pau Monné wrote: > > > On Fri, Jun 19, 2020 at 12:28:50PM +0200, Martin Lucina wrote: > > > > On 2020-06-18 13:46, Roger Pau Monné wrote:

Re: Event delivery and "domain blocking" on PVHv2

2020-06-19 Thread Roger Pau Monné
On Fri, Jun 19, 2020 at 06:41:21PM +0200, Martin Lucina wrote: > On 2020-06-19 13:21, Roger Pau Monné wrote: > > On Fri, Jun 19, 2020 at 12:28:50PM +0200, Martin Lucina wrote: > > > On 2020-06-18 13:46, Roger Pau Monné wrote: > > > > On Thu, Jun 18, 2020 at 12:13:30PM +0200, Martin Lucina wrote: >

Re: Event delivery and "domain blocking" on PVHv2

2020-06-19 Thread Martin Lucina
On 2020-06-19 13:21, Andrew Cooper wrote: On 19/06/2020 11:28, Martin Lucina wrote: RIP 0x209997 is the 'hlt' instruction in mirage_xen_evtchn_block_domain() so we are indeed blocking waiting for events to show up. I can't find this in the code, but it might be an x86-ism you're falling over

Re: Event delivery and "domain blocking" on PVHv2

2020-06-19 Thread Martin Lucina
On 2020-06-19 13:21, Roger Pau Monné wrote: On Fri, Jun 19, 2020 at 12:28:50PM +0200, Martin Lucina wrote: On 2020-06-18 13:46, Roger Pau Monné wrote: > On Thu, Jun 18, 2020 at 12:13:30PM +0200, Martin Lucina wrote: > > At this point I don't really have a clear idea of how to progress, > > compa

Re: Event delivery and "domain blocking" on PVHv2

2020-06-19 Thread Roger Pau Monné
On Fri, Jun 19, 2020 at 12:28:50PM +0200, Martin Lucina wrote: > On 2020-06-18 13:46, Roger Pau Monné wrote: > > On Thu, Jun 18, 2020 at 12:13:30PM +0200, Martin Lucina wrote: > > > At this point I don't really have a clear idea of how to progress, > > > comparing my implementation side-by-side wit

Re: Event delivery and "domain blocking" on PVHv2

2020-06-19 Thread Andrew Cooper
On 19/06/2020 11:28, Martin Lucina wrote: > On 2020-06-18 13:46, Roger Pau Monné wrote: >> On Thu, Jun 18, 2020 at 12:13:30PM +0200, Martin Lucina wrote: >>> At this point I don't really have a clear idea of how to progress, >>> comparing my implementation side-by-side with the original PV >>> Mini

Re: Event delivery and "domain blocking" on PVHv2

2020-06-19 Thread Martin Lucina
On 2020-06-18 13:46, Roger Pau Monné wrote: On Thu, Jun 18, 2020 at 12:13:30PM +0200, Martin Lucina wrote: At this point I don't really have a clear idea of how to progress, comparing my implementation side-by-side with the original PV Mini-OS-based implementation doesn't show up any differenc

Re: Event delivery and "domain blocking" on PVHv2

2020-06-19 Thread Martin Lucina
On 2020-06-19 01:43, Andrew Cooper wrote: On 18/06/2020 11:13, Martin Lucina wrote: On Monday, 15.06.2020 at 17:58, Andrew Cooper wrote: On 15/06/2020 15:25, Martin Lucina wrote: Hi, puzzle time: In my continuing explorations of the PVHv2 ABIs for the new MirageOS Xen stack, I've run into som

Re: Event delivery and "domain blocking" on PVHv2

2020-06-18 Thread Andrew Cooper
On 18/06/2020 11:13, Martin Lucina wrote: > On Monday, 15.06.2020 at 17:58, Andrew Cooper wrote: >> On 15/06/2020 15:25, Martin Lucina wrote: >>> Hi, >>> >>> puzzle time: In my continuing explorations of the PVHv2 ABIs for the >>> new MirageOS Xen stack, I've run into some issues with what looks li

Re: Event delivery and "domain blocking" on PVHv2

2020-06-18 Thread Roger Pau Monné
On Thu, Jun 18, 2020 at 12:13:30PM +0200, Martin Lucina wrote: > On Monday, 15.06.2020 at 17:58, Andrew Cooper wrote: > > On 15/06/2020 15:25, Martin Lucina wrote: > > > Hi, > > > > > > puzzle time: In my continuing explorations of the PVHv2 ABIs for the > > > new MirageOS Xen stack, I've run into

Re: Event delivery and "domain blocking" on PVHv2

2020-06-18 Thread Martin Lucina
On Monday, 15.06.2020 at 17:58, Andrew Cooper wrote: > On 15/06/2020 15:25, Martin Lucina wrote: > > Hi, > > > > puzzle time: In my continuing explorations of the PVHv2 ABIs for the > > new MirageOS Xen stack, I've run into some issues with what looks like > > missed deliveries of events on event c

Re: Event delivery and "domain blocking" on PVHv2

2020-06-15 Thread Andrew Cooper
On 15/06/2020 15:25, Martin Lucina wrote: > Hi, > > puzzle time: In my continuing explorations of the PVHv2 ABIs for the > new MirageOS Xen stack, I've run into some issues with what looks like > missed deliveries of events on event channels. > > While a simple unikernel that only uses the Xen cons

Re: Event delivery and "domain blocking" on PVHv2

2020-06-15 Thread Roger Pau Monné
On Mon, Jun 15, 2020 at 05:51:51PM +0200, Martin Lucina wrote: > On 2020-06-15 17:03, Roger Pau Monné wrote: > > This way of event channel injection is slitgly hackish, and I would > > recommend using HVMOP_set_evtchn_upcall_vector, that way vectors will > > be properly routed using the lapic. > >

Re: Event delivery and "domain blocking" on PVHv2

2020-06-15 Thread Martin Lucina
On 2020-06-15 17:03, Roger Pau Monné wrote: This way of event channel injection is slitgly hackish, and I would recommend using HVMOP_set_evtchn_upcall_vector, that way vectors will be properly routed using the lapic. Using HVM_PARAM_CALLBACK_TYPE_VECTOR vectors are injected without setting the

Re: Event delivery and "domain blocking" on PVHv2

2020-06-15 Thread Roger Pau Monné
On Mon, Jun 15, 2020 at 04:25:57PM +0200, Martin Lucina wrote: > Hi, > > puzzle time: In my continuing explorations of the PVHv2 ABIs for the new > MirageOS Xen stack, I've run into some issues with what looks like missed > deliveries of events on event channels. That would be weird, as other OSe

Event delivery and "domain blocking" on PVHv2

2020-06-15 Thread Martin Lucina
Hi, puzzle time: In my continuing explorations of the PVHv2 ABIs for the new MirageOS Xen stack, I've run into some issues with what looks like missed deliveries of events on event channels. While a simple unikernel that only uses the Xen console and effectively does for (1..5) { printf("foo