[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] dom0less + sched=null => broken in staging


  • To: "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "julien.grall@xxxxxxx" <julien.grall@xxxxxxx>
  • From: Dario Faggioli <dfaggioli@xxxxxxxx>
  • Date: Tue, 13 Aug 2019 17:34:26 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w2aD901L8P8iwz7DRrZ55LwYsa5z01ofeXkyMDCvlv4=; b=mQv+lhLqDsz3oarA/7SW0u5jUlJu8DbYnVh5PB+C6gPy3OrELOtjHPzRIL71TLmESg59KGXbLuB221F8NPaXtWqugTCypeLw0A9fe6u3Hvw867CemyggNaOx3aqJvW7P58+ThxkGwQPWk4YNpzBD4GzFo4SK14j9LrpScHsq7zDYVVvyr48o1JCwe/QnpySiMiLFMaa4jyvKH+Z0tiPpngWo0Nay8M2iwD2+kCwasoqlZQXdGiw7QV8zB5smFGXMIV8GsKso9fqxQFjgO5rVla7vWhcP8EhbugNz/9JLjHRUx3UjNkKWNebSEjmh918YSoAirrRBfV27cPa/e5Mn1w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XtGKKkADSFRJkRuHYzqGIFIh2GxeAgtewaj6Q/3Ds95cJh6yxzGW7M0iNMc9mci36yjS7sPv4s1q1Ypi8kkh6yV7lK1gLmW54O31iSGpXbnX0yg73J4HbfMSUvacPQCuvuWNB2MOQxcx97GMok7Wn3KIv5GQhf2imIMX0YJpWS4aGlYrgWT10aeENJVWBDt5CyU9//HpdS/6bYzCV1ET3dsi/TMEr0mnNiGMp9g5Fa0tD3FwXEYphUUbS5N2oD9RMDLIVE50Ay0rj3q+/t8+41od2QmWtnNYjSvnEO/k/dYkIiJTLvz11oyvOig/2+Wl/ptNFgUKeTAdqmmtJCbkmg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=dfaggioli@xxxxxxxx;
  • Cc: "George.Dunlap@xxxxxxxxxxxxx" <George.Dunlap@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 13 Aug 2019 17:41:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVTU0h+kfyo+Dyy0KGuLer1mUTwabzJpKlgAYWI4CAABfdQYAAC4UA
  • Thread-topic: [Xen-devel] dom0less + sched=null => broken in staging

On Tue, 2019-08-13 at 17:52 +0100, Julien Grall wrote:
> Hi Dario,
> 
Hello!

> On 8/13/19 4:27 PM, Dario Faggioli wrote:
> > On Fri, 2019-08-09 at 11:30 -0700, Stefano Stabellini wrote:
> > > 
> > In my (x86 and "dom0full") testbox, this seems to come from
> > domain_unpause_by_systemcontroller(dom0) called by
> > xen/arch/x86/setup.c:init_done(), at the very end of __start_xen().
> > 
> > I don't know if domain construction in an ARM dom0less system works
> > similarly, though. What we want, is someone calling either
> > vcpu_wake()
> > or vcpu_unpause(), after having cleared _VPF_down from pause_flags.
> 
> Looking at create_domUs() there is a call to 
> domain_unpause_by_controller for each domUs.
> 
Yes, I saw that. And I've seen the one done don dom0, at the end of
xen/arch/arm/setup.c:start_xen(), as well.

Also, both construct_dom0() (still from start_xen()) and
construct_domU() (called from create_domUs()) call construct_domain(),
which does clear_bit(_VPF_down), setting the domain to online.

So, unless the flag gets cleared again, or something else happens that
makes the vCPU(s) fail the vcpu_runnable() check in
domain_unpause()->vcpu_wake(), I don't see why the wakeup that let the
null scheduler start scheduling the vCPU doesn't happen... as it
instead does on x86 or !dom0less ARM (because, as far as I've
understood, it's only dom0less that doesn't work, it this correct?)

Regards
-- 
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.