Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-12-15 Thread Joel Fernandes
Hi Marc, Quentin, On Fri, Dec 11, 2020 at 4:34 AM Quentin Perret wrote: > > On Thursday 10 Dec 2020 at 08:45:22 (+), Marc Zyngier wrote: > > On 2020-12-10 01:39, Joel Fernandes wrote: > > > > [...] > > > > > > Quentin and I have discussed potential ways of improving guest > > > > scheduling

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-12-11 Thread Quentin Perret
On Thursday 10 Dec 2020 at 08:45:22 (+), Marc Zyngier wrote: > On 2020-12-10 01:39, Joel Fernandes wrote: > > [...] > > > > Quentin and I have discussed potential ways of improving guest > > > scheduling > > > on terminally broken systems (otherwise known as big-little), in the > > > form of

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-12-10 Thread Marc Zyngier
On 2020-12-10 01:39, Joel Fernandes wrote: [...] Quentin and I have discussed potential ways of improving guest scheduling on terminally broken systems (otherwise known as big-little), in the form of a capacity request from the guest to the host. I'm not really keen on the host exposing its

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-12-09 Thread Joel Fernandes
Hi Marc, nice to hear from you. On Wed, Dec 9, 2020 at 4:43 AM Marc Zyngier wrote: > > Hi all, > > On 2020-12-08 20:02, Joel Fernandes wrote: > > On Fri, Sep 11, 2020 at 4:58 AM Sergey Senozhatsky > > wrote: > >> > >> My apologies for the slow reply. > >> > >> On (20/08/17 13:25), Marc Zyngier

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-12-09 Thread Marc Zyngier
Hi all, On 2020-12-08 20:02, Joel Fernandes wrote: On Fri, Sep 11, 2020 at 4:58 AM Sergey Senozhatsky wrote: My apologies for the slow reply. On (20/08/17 13:25), Marc Zyngier wrote: > > It really isn't the same thing at all. You are exposing PV spinlocks, > while Sergey exposes preemption

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-12-08 Thread Joel Fernandes
On Fri, Sep 11, 2020 at 4:58 AM Sergey Senozhatsky wrote: > > My apologies for the slow reply. > > On (20/08/17 13:25), Marc Zyngier wrote: > > > > It really isn't the same thing at all. You are exposing PV spinlocks, > > while Sergey exposes preemption to vcpus. > > > > Correct, we see vcpu

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-09-11 Thread Sergey Senozhatsky
My apologies for the slow reply. On (20/08/17 13:25), Marc Zyngier wrote: > > It really isn't the same thing at all. You are exposing PV spinlocks, > while Sergey exposes preemption to vcpus. > Correct, we see vcpu preemption as a "fundamental" feature, with consequences that affect scheduling,

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-09-11 Thread Sergey Senozhatsky
Hi, On (20/08/17 20:03), yezengruan wrote: > Hi Sergey, > > I have a set of patches similar to yours. > > https://lore.kernel.org/lkml/20191226135833.1052-1-yezengr...@huawei.com/ I'm sorry for the belated reply. Right, quite similar, but not exactly, I believe. I deliberately wanted to

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-08-17 Thread yezengruan
On 2020/8/17 20:25, Marc Zyngier wrote: > On 2020-08-17 13:03, yezengruan wrote: >> On 2020/8/17 10:03, Sergey Senozhatsky wrote: >>> On (20/07/21 13:17), Sergey Senozhatsky wrote: Hello, RFC We noticed that in a number of cases when we wake_up_process() on

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-08-17 Thread Marc Zyngier
On 2020-08-17 13:03, yezengruan wrote: On 2020/8/17 10:03, Sergey Senozhatsky wrote: On (20/07/21 13:17), Sergey Senozhatsky wrote: Hello, RFC We noticed that in a number of cases when we wake_up_process() on arm64 guest we end up enqueuing that task on a preempted VCPU. The

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-08-17 Thread yezengruan
On 2020/8/17 10:03, Sergey Senozhatsky wrote: > On (20/07/21 13:17), Sergey Senozhatsky wrote: >> Hello, >> >> RFC >> >> We noticed that in a number of cases when we wake_up_process() >> on arm64 guest we end up enqueuing that task on a preempted VCPU. The culprit >> appears to be the

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-08-16 Thread Sergey Senozhatsky
On (20/07/21 13:17), Sergey Senozhatsky wrote: > Hello, > > RFC > > We noticed that in a number of cases when we wake_up_process() > on arm64 guest we end up enqueuing that task on a preempted VCPU. The culprit > appears to be the fact that arm64 guests are not aware of VCPU

[RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-07-20 Thread Sergey Senozhatsky
Hello, RFC We noticed that in a number of cases when we wake_up_process() on arm64 guest we end up enqueuing that task on a preempted VCPU. The culprit appears to be the fact that arm64 guests are not aware of VCPU preemption as such, so when sched picks up an idle VCPU it always