[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>
  • From: Dario Faggioli <dfaggioli@xxxxxxxx>
  • Date: Tue, 13 Aug 2019 15:27:48 +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=yZmuQfyZQ8Vdq9yW2uQ0VrMSxVrF8syW/GyPSicaiRw=; b=ktWBhBbDsOpE8Gh0KFgV49fVWBI/Nus7k/ORokvVpIBuT2xXy+0iFgho9TD6LaXl8vfY8j80cYtRbwSYgkvoccfIIct8T4v/ICL7lVxgg4WWwBq7UctePp7xsA6bOo7oG+K8FVFCGmze5y2Yknn1OXDMLa+sWwn9nMkkOw1ch0PHzUWujWkpvWynzxfUGGA++EqK6jYatbmSggov5gQ3nbmtB1lN6KWItxPyNCkRh+thQ3eirlnHscOj60mGZ/mYGK3srVZlxGwvfo2pvasWrI6UL4vwZLewtNMoNSuZ6rzuhlMb8Rk+ONEGg7/i/fvYBwLE8o0lncczgl5OgI99tg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZAevsv1FpPv/O7kJv2Vf97cBPWUsgklMFh4BPUcoRtIkmhnrSEdrIW74f0Wn9uqV5L4H75AmZ5GrLWmUKgdVMSxt5Mun8c0kidx9qBQVpI8XRKwPlIxo+iBFV7S26aA0DA0+yJaydlxwa0QZLETuHpRSDMZLrCjH8eiwjIS+CwoFb5OdQ6KB4upfpQIQWf3R9qP5LbGqMrWqT8Np68bs1drzk4qGI0rerj5HeqOsXd+qQgRBzox3YUOb+DheJQu5+yF+pE0Chg72DlzBu9POfZEAGfjAPNsss9vSBryCH1HPnyuoQPi/wT5t0UEOGRNeriKqB+eIwIVeQeJcJG6IrA==
  • 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 15:42:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVTU0h+kfyo+Dyy0KGuLer1mUTwabzJpKlgAYWI4A=
  • Thread-topic: [Xen-devel] dom0less + sched=null => broken in staging

On Fri, 2019-08-09 at 11:30 -0700, Stefano Stabellini wrote:
> On Fri, 9 Aug 2019, Dario Faggioli wrote:
> > Can you help me with this, e.g., by providing some more info and,
> > if
> > possible, logs?
> 
> I am attaching the logs. 
>
Thanks!

> Interestingly, I get a bunch of:
> 
> (XEN) *** LOADING DOMU cpus=1 memory=40000KB ***
> (XEN) sched_null.c:458: Not inserting d2v0 (not online!)
> 
> Maybe we are missing a call to online the vcpus somewhere in
> xen/arch/arm/domain_build.c:construct_domain?
> 
Actually, those lines are normal, because vCPUs are created offline.
(see the set_bit(_VPF_down) in vcpu_create()).

The problem is why aren't they coming up. Basically, you're missing a
call to vcpu_wake().

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.

I am attaching an updated debug patch, with an additional printk when
we reach the point, within the null scheduler, when the vcpu would wake
up (to check whether the problem is that we never reach that point, or
something else).

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: xen-sched-null-vcpu-onoff-debug-v2.patc
Description: Text Data

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®.