From: Sander Eikelenboom Subject: Re: No shutdown of domU: xenbus_dev_shutdown: device/console/0: Initialising != Connected, skipping Date: Wed, 17 Nov 2010 21:22:27 +0100 Message-ID: <1945713192.20101117212227@eikelenboom.it> References: <1341501057.20101117132828@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Ian Campbell , Jeremy Fitzhardinge , "Xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org Ah yes, 2.6.18 does contain the following line in xenbus_probe.c and 2.6.3= 7-rc2 not: - if (!strcmp(type, "console")) - return 0; It seems to be changed, There seems to have been a patch http://lists.xensource.com/archives/html/x= en-devel/2009-11/msg01072.html but it seems it's not applied to xenbus in l= inux upstream. -- Sander Wednesday, November 17, 2010, 4:36:11 PM, you wrote: > Our 2.6.18 tree explicitly ignores console devices in > drivers/xen/xenbus/xenbus_probe.c:xenbus_probe_frontend(). More modern > kernels should be doing similar -- I think it's a bug for guest's xenbus > driver to attempt to manage console devices. One of our kernel guys will = be > able to say more, no doubt. > K. > On 17/11/2010 12:28, "Sander Eikelenboom" wrote: >> Ahh the difference between console on the other devices seems to be "XEN= BUS: >> Device with no driver: device/console/0" >> That makes it states "initializing" for ever ... >> It then probably goes wrong with the "out:" path in xenbus_dev_shutdown() >> doing the put_device ? >>=20 >> I only fail to see why it seems to cause a problem with multiple vpcu's >> assigned and not with just one. >>=20 >> -- >> Sander >>=20 >>=20 >> Wednesday, November 17, 2010, 1:06:04 PM, you wrote: >>=20 >>> Consoles do not have a connection handshake. If there is a state field = in >>> xenstore, it is only unused detritus written by the toolstack >>> (xend/libxl/whatever). >>=20 >>> -- Keir >>=20 >>> On 17/11/2010 11:58, "Sander Eikelenboom" wrote: >>=20 >>>> Hmm .. i haven't received any response, is there anyone who could poin= t me >>>> to >>>> the functions involved in communicating the state of the console from >>>> "initializing" to "connected" ? >>>> That way i could at some additional printk's to find out why the state= of >>>> domU >>>> consoles stays "1" instead of "4" in xenstore. >>>>=20 >>>> -- >>>> Sander >>>>=20 >>>> Friday, November 12, 2010, 6:30:10 PM, you wrote: >>>>=20 >>>>> I'm encountering the following problem: >>>>=20 >>>>> When trying to shutdown a PV domU with more than 1 vpcu, the shutdown >>>>> fails. >>>>> The domain keeps running with 100% cpu, and it's still possible to ge= t the >>>>> console of this domU with xm console. >>>>> When only 1 vcpu is assigned the domain does shutdown. >>>>=20 >>>>> Last lines of the PV domU console: >>>>=20 >>>>> Debian GNU/Linux 5.0 tv hvc0 >>>>=20 >>>>> INIT: Switching to runlevel: 0 >>>>> INIT: Sending processes the TERM signal >>>>> Stopping web server: apache2 ... waiting . >>>>> Stopping MythTV server: mythbackend No /usr/bin/mythbackend found run= ning; >>>>> none killed. >>>>> . >>>>> Stopping MTA: exim4_listener. >>>>> Stopping rsync daemon: rsync. >>>>> Stopping MySQL database server: mysqld. >>>>> Saving the system clock. >>>>> Cannot access the Hardware Clock via any known method. >>>>> Use the --debug option to see the details of our search for an access >>>>> method. >>>>> Stopping enhanced syslogd: rsyslogd. >>>>> Asking all remaining processes to terminate...done. >>>>> All processes ended within 2 seconds....done. >>>>> Deconfiguring network interfaces...done. >>>>> Cleaning up ifupdown.... >>>>> Deactivating swap...done. >>>>> Unmounting local filesystems...done. >>>>> Will now halt. >>>>> [ 4336.046876] md: stopping all md devices. >>>>> [ 4337.047171] xenbus_dev_shutdown: trying shutdown of device/consol= e/0: >>>>> Initialising >>>>> [ 4337.047194] xenbus_dev_shutdown: device/console/0: Initialising != =3D >>>>> Connected, skipping >>>>> [ 4337.047200] xenbus_dev_shutdown: result of shutdown of device/cons= ole/0: >>>>> Initialising >>>>> [ 4337.047205] xenbus_dev_shutdown: trying shutdown of device/vif/0: >>>>> Connected >>>>> [ 4337.110869] xenbus_dev_shutdown: result of shutdown of device/vif/= 0: >>>>> Closed >>>>> [ 4337.110883] xenbus_dev_shutdown: trying shutdown of device/vbd/51= 714: >>>>> Connected >>>>> [ 4337.161975] xenbus_dev_shutdown: result of shutdown of device/vbd/= 51714: >>>>> Closed >>>>> [ 4337.161989] xenbus_dev_shutdown: trying shutdown of device/vbd/51= 713: >>>>> Connected >>>>> [ 4337.217136] xenbus_dev_shutdown: result of shutdown of device/vbd/= 51713: >>>>> Closed >>>>> [ 4337.217167] System halted. >>>>=20 >>>>=20 >>>>> But when using xenstore-ls .. i see that for every domain (but 1 and >>>>> multiple >>>>> vcpu's): >>>>> - All devices have state=3D4 >>>>> - Except all backend =3D "/local/domain/0/backend/console/*/0" en= tries, >>>>> those have state=3D1 >>>>> - Although xenstore is saying the state is initializing .. xm con= sole >>>>> works perfectly for all domains. >>>>> - Perhaps this also explains the high event/0 load in dom0, relat= ed to >>>>> tty and xenconsoled ? >>>>=20 >>>>> DomU kernels vary from debian 2.6.26-xen kernels, to 2.6.37-rc1 mainl= ine. >>>>> Xen-unstable-tip and xen-next-2.6.32 dom0 >>>>=20 >>>>=20 >>>>> -- >>>>> Sander >>>>=20 >>>>=20 >>=20 >>=20 >>=20 >>=20 --=20 Best regards, Sander mailto:linux@eikelenboom.it