Re: Null scheduler and vwfi native problem

2021-02-14 Thread Anders Törnqvist
On 1/30/21 6:59 PM, Dario Faggioli wrote: On Fri, 2021-01-29 at 09:08 +0100, Anders Törnqvist wrote: On 1/26/21 11:31 PM, Dario Faggioli wrote: Thanks again for letting us see these logs. Thanks for the attention to this :-) Any ideas for how to solve it? So, you're up for testing patches,

Re: Null scheduler and vwfi native problem

2021-02-03 Thread Jürgen Groß
On 03.02.21 12:20, Julien Grall wrote: Hi Juergen, On 03/02/2021 11:00, Jürgen Groß wrote: On 03.02.21 10:19, Julien Grall wrote: Hi, On 03/02/2021 07:31, Dario Faggioli wrote: On Tue, 2021-02-02 at 15:23 +, Julien Grall wrote: In reality, it is probably still too early as a pCPU can be

Re: Null scheduler and vwfi native problem

2021-02-03 Thread Julien Grall
Hi Juergen, On 03/02/2021 11:00, Jürgen Groß wrote: On 03.02.21 10:19, Julien Grall wrote: Hi, On 03/02/2021 07:31, Dario Faggioli wrote: On Tue, 2021-02-02 at 15:23 +, Julien Grall wrote: In reality, it is probably still too early as a pCPU can be considered quiesced until a call to rcu

Re: Null scheduler and vwfi native problem

2021-02-03 Thread Jürgen Groß
On 03.02.21 10:19, Julien Grall wrote: Hi, On 03/02/2021 07:31, Dario Faggioli wrote: On Tue, 2021-02-02 at 15:23 +, Julien Grall wrote: In reality, it is probably still too early as a pCPU can be considered quiesced until a call to rcu_lock*() (such rcu_lock_domain()). Well, yes, in the

Re: Null scheduler and vwfi native problem

2021-02-03 Thread Julien Grall
Hi, On 03/02/2021 07:31, Dario Faggioli wrote: On Tue, 2021-02-02 at 15:23 +, Julien Grall wrote: In reality, it is probably still too early as a pCPU can be considered quiesced until a call to rcu_lock*() (such rcu_lock_domain()). Well, yes, in theory, we could track down which is the fi

Re: Null scheduler and vwfi native problem

2021-02-02 Thread Dario Faggioli
Hi again, On Tue, 2021-02-02 at 15:23 +, Julien Grall wrote: > (Adding Andrew, Jan, Juergen for visibility) > Thanks! :-) > On 02/02/2021 15:03, Dario Faggioli wrote: > > On Tue, 2021-02-02 at 07:59 +, Julien Grall wrote: > > > The placement in enter_hypervisor_from_guest() doesn't matt

Re: Null scheduler and vwfi native problem

2021-02-02 Thread Julien Grall
(Adding Andrew, Jan, Juergen for visibility) Hi Dario, On 02/02/2021 15:03, Dario Faggioli wrote: On Tue, 2021-02-02 at 07:59 +, Julien Grall wrote: Hi Dario, I have had a quick look at your place. The RCU call in leave_hypervisor_to_guest() needs to be placed just after the last call to

Re: Null scheduler and vwfi native problem

2021-02-02 Thread Dario Faggioli
On Tue, 2021-02-02 at 07:59 +, Julien Grall wrote: > Hi Dario, > Hi! > I have had a quick look at your place. The RCU call in > leave_hypervisor_to_guest() needs to be placed just after the last > call > to check_for_pcpu_work(). > > Otherwise, you may be preempted and keep the RCU quiet.

Re: Null scheduler and vwfi native problem

2021-02-01 Thread Julien Grall
Hi Dario, On 30/01/2021 17:59, Dario Faggioli wrote: On Fri, 2021-01-29 at 09:08 +0100, Anders Törnqvist wrote: On 1/26/21 11:31 PM, Dario Faggioli wrote: Thanks again for letting us see these logs. Thanks for the attention to this :-) Any ideas for how to solve it? So, you're up for test

Re: Null scheduler and vwfi native problem

2021-01-31 Thread Anders Törnqvist
On 1/30/21 6:59 PM, Dario Faggioli wrote: On Fri, 2021-01-29 at 09:08 +0100, Anders Törnqvist wrote: On 1/26/21 11:31 PM, Dario Faggioli wrote: Thanks again for letting us see these logs. Thanks for the attention to this :-) Any ideas for how to solve it? So, you're up for testing patches,

Re: Null scheduler and vwfi native problem

2021-01-31 Thread Anders Törnqvist
On 1/29/21 11:16 AM, Dario Faggioli wrote: On Fri, 2021-01-29 at 09:18 +0100, Jürgen Groß wrote: On 29.01.21 09:08, Anders Törnqvist wrote: So it using it has only downsides (and that's true in general, if you ask me, but particularly so if using NULL). Thanks for the feedback. I removed dom0_

Re: Null scheduler and vwfi native problem

2021-01-30 Thread Dario Faggioli
On Fri, 2021-01-29 at 09:08 +0100, Anders Törnqvist wrote: > On 1/26/21 11:31 PM, Dario Faggioli wrote: > > Thanks again for letting us see these logs. > > Thanks for the attention to this :-) > > Any ideas for how to solve it? > So, you're up for testing patches, right? How about applying thes

Re: Null scheduler and vwfi native problem

2021-01-29 Thread Dario Faggioli
On Fri, 2021-01-29 at 09:18 +0100, Jürgen Groß wrote: > On 29.01.21 09:08, Anders Törnqvist wrote: > > > > > > So it using it has only downsides (and that's true in general, if > > > you > > > ask me, but particularly so if using NULL). > > Thanks for the feedback. > > I removed dom0_vcpus_pin. An

Re: Null scheduler and vwfi native problem

2021-01-29 Thread Jürgen Groß
On 29.01.21 09:08, Anders Törnqvist wrote: On 1/26/21 11:31 PM, Dario Faggioli wrote: On Tue, 2021-01-26 at 18:03 +0100, Anders Törnqvist wrote: On 1/25/21 5:11 PM, Dario Faggioli wrote: On Fri, 2021-01-22 at 14:26 +, Julien Grall wrote: Hi Anders, On 22/01/2021 08:06, Anders Törnqvist w

Re: Null scheduler and vwfi native problem

2021-01-29 Thread Anders Törnqvist
On 1/26/21 11:31 PM, Dario Faggioli wrote: On Tue, 2021-01-26 at 18:03 +0100, Anders Törnqvist wrote: On 1/25/21 5:11 PM, Dario Faggioli wrote: On Fri, 2021-01-22 at 14:26 +, Julien Grall wrote: Hi Anders, On 22/01/2021 08:06, Anders Törnqvist wrote: On 1/22/21 12:35 AM, Dario Faggioli w

Re: Null scheduler and vwfi native problem

2021-01-26 Thread Dario Faggioli
On Tue, 2021-01-26 at 18:03 +0100, Anders Törnqvist wrote: > On 1/25/21 5:11 PM, Dario Faggioli wrote: > > On Fri, 2021-01-22 at 14:26 +, Julien Grall wrote: > > > Hi Anders, > > > > > > On 22/01/2021 08:06, Anders Törnqvist wrote: > > > > On 1/22/21 12:35 AM, Dario Faggioli wrote: > > > > > O

Re: Null scheduler and vwfi native problem

2021-01-26 Thread Anders Törnqvist
On 1/25/21 5:11 PM, Dario Faggioli wrote: On Fri, 2021-01-22 at 14:26 +, Julien Grall wrote: Hi Anders, On 22/01/2021 08:06, Anders Törnqvist wrote: On 1/22/21 12:35 AM, Dario Faggioli wrote: On Thu, 2021-01-21 at 19:40 +, Julien Grall wrote: - booting with "sched=null vwfi=native" b

Re: Null scheduler and vwfi native problem

2021-01-25 Thread Dario Faggioli
On Fri, 2021-01-22 at 14:26 +, Julien Grall wrote: > Hi Anders, > > On 22/01/2021 08:06, Anders Törnqvist wrote: > > On 1/22/21 12:35 AM, Dario Faggioli wrote: > > > On Thu, 2021-01-21 at 19:40 +, Julien Grall wrote: > > - booting with "sched=null vwfi=native" but not doing the IRQ > > pa

Re: Null scheduler and vwfi native problem

2021-01-25 Thread Dario Faggioli
On Fri, 2021-01-22 at 18:44 +0100, Anders Törnqvist wrote: > Listing vcpus looks like this when the domain is running: > > xl vcpu-list > Name    ID  VCPU   CPU State   Time(s) > Affinity (Hard / Soft) > Domain-0 0 0    0   r-- 101.7

Re: Null scheduler and vwfi native problem

2021-01-22 Thread Anders Törnqvist
On 1/22/21 3:26 PM, Julien Grall wrote: Hi Anders, On 22/01/2021 08:06, Anders Törnqvist wrote: On 1/22/21 12:35 AM, Dario Faggioli wrote: On Thu, 2021-01-21 at 19:40 +, Julien Grall wrote: - booting with "sched=null vwfi=native" but not doing the IRQ passthrough that you mentioned above

Re: Null scheduler and vwfi native problem

2021-01-22 Thread Anders Törnqvist
On 1/22/21 3:02 PM, Julien Grall wrote: Hi Dario, On 21/01/2021 23:35, Dario Faggioli wrote: On Thu, 2021-01-21 at 19:40 +, Julien Grall wrote: Hi Dario, Hi! On 21/01/2021 18:32, Dario Faggioli wrote: On Thu, 2021-01-21 at 11:54 +0100, Anders Törnqvist wrote: https://lists.xenproject

Re: Null scheduler and vwfi native problem

2021-01-22 Thread Julien Grall
Hi Anders, On 22/01/2021 08:06, Anders Törnqvist wrote: On 1/22/21 12:35 AM, Dario Faggioli wrote: On Thu, 2021-01-21 at 19:40 +, Julien Grall wrote: - booting with "sched=null vwfi=native" but not doing the IRQ passthrough that you mentioned above "xl destroy" gives (XEN) End of domain_d

Re: Null scheduler and vwfi native problem

2021-01-22 Thread Julien Grall
Hi Dario, On 21/01/2021 23:35, Dario Faggioli wrote: On Thu, 2021-01-21 at 19:40 +, Julien Grall wrote: Hi Dario, Hi! On 21/01/2021 18:32, Dario Faggioli wrote: On Thu, 2021-01-21 at 11:54 +0100, Anders Törnqvist wrote: https://lists.xenproject.org/archives/html/xen-devel/2018-09/m

Re: Null scheduler and vwfi native problem

2021-01-22 Thread Dario Faggioli
On Fri, 2021-01-22 at 09:06 +0100, Anders Törnqvist wrote: > On 1/22/21 12:35 AM, Dario Faggioli wrote: > > > - booting with "sched=null" but not with "vwfi=native" > Without "vwfi=native" it works fine to destroy and to re-create the > domain. > Both printouts comes after a destroy: > (XEN) End

Re: Null scheduler and vwfi native problem

2021-01-22 Thread Anders Törnqvist
On 1/21/21 7:32 PM, Dario Faggioli wrote: On Thu, 2021-01-21 at 11:54 +0100, Anders Törnqvist wrote: Hi, Hello, I see a problem with destroy and restart of a domain. Interrupts are not available when trying to restart a domain. The situation seems very similar to the thread "null scheduler

Re: Null scheduler and vwfi native problem

2021-01-22 Thread Anders Törnqvist
Thanks for the responses. On 1/22/21 12:35 AM, Dario Faggioli wrote: On Thu, 2021-01-21 at 19:40 +, Julien Grall wrote: Hi Dario, Hi! On 21/01/2021 18:32, Dario Faggioli wrote: On Thu, 2021-01-21 at 11:54 +0100, Anders Törnqvist wrote: https://lists.xenproject.org/archives/html/xen

Re: Null scheduler and vwfi native problem

2021-01-21 Thread Dario Faggioli
On Thu, 2021-01-21 at 19:40 +, Julien Grall wrote: > Hi Dario, > Hi! > On 21/01/2021 18:32, Dario Faggioli wrote: > > On Thu, 2021-01-21 at 11:54 +0100, Anders Törnqvist wrote: > > >   > > > https://lists.xenproject.org/archives/html/xen-devel/2018-09/msg01213.html > > > . > > > > > Right.

Re: Null scheduler and vwfi native problem

2021-01-21 Thread Julien Grall
Hi Dario, On 21/01/2021 18:32, Dario Faggioli wrote: On Thu, 2021-01-21 at 11:54 +0100, Anders Törnqvist wrote: Hi, I see a problem with destroy and restart of a domain. Interrupts are not available when trying to restart a domain. The situation seems very similar to the thread "null scheduler

Re: Null scheduler and vwfi native problem

2021-01-21 Thread Julien Grall
On 21/01/2021 10:54, Anders Törnqvist wrote: Hi, Hi Anders, Thank you for reporting the bug. I am adding Stefano and Dario as IIRC they were going to work on a solution. Cheers, I see a problem with destroy and restart of a domain. Interrupts are not available when trying to restart a

Re: Null scheduler and vwfi native problem

2021-01-21 Thread Dario Faggioli
On Thu, 2021-01-21 at 11:54 +0100, Anders Törnqvist wrote: > Hi, > Hello, > I see a problem with destroy and restart of a domain. Interrupts are > not > available when trying to restart a domain. > > The situation seems very similar to the thread "null scheduler bug" > > https://lists.xenpro