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

Re: netbsd PVH dom0: xen clock event stops


  • To: Manuel Bouyer <bouyer@xxxxxxxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Sun, 15 Nov 2020 19:24:16 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=rfb4s4OQ7p3lwNBnAE6SpE1vfV+c7yeIlJBVPfXOURo=; b=huO/haIr7VzggGY5KM9SbcpSm5vSfFBx/VrAkGxQVNE3XzrBtO6qFq9ciJMoAen1YjUj2u1MDzznpB1DSyJoLOpKjI4GYVoDdWaCaXfTpvhhRWS4KBoFMrFTnkgD8diW+QCu23mqTLxyhR/We877tIdoDtaCKoEZc5E1yLBX5w8ZaTSSpc6IWBBvGS24/YrgrbnW6zBCAInru0F9vz4BO8DTwUzJ3g7BqVw9JLTgfOSnMAxr0wD9QbGVqoFHU19ryfqgaOMin5DK9Vws2FLiGZh8RKBlukkW4OHfaeN3MO9GryEs1WDd8WnrLu5ZxSWi9g5bEUYCxnwCOeGz5HekZA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kuhO3K6q+lYqaKX2of4HCH+xd9MKWa5shNV+eIv07/riv7CuzmlpPFpoFNntZ8775LfPDatUFuWdEiDLs4dS/wVEat/B4fN4OQ5zcbI3JapEFTKMDjMnpBrDm5SZGfMypmKZ3FYD6mGgnXlNxuX45SV52QDQeVXmtgb1Z6jBSKrVFh4VLnOrx58K92Fakscct36E8LvzPxTqaESIUJM6nzpjUdcgOTBeAn9RuupIgPP00c7el+16yB8WDFvVKM8WlTDQ1+7guyaVekL+wa51KQn1Hd0/YFIjo5RS09oVYIrc4GZw7X028nh94nDcX/JQiJU1DFivSI9OhCwYRXjDJA==
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Sun, 15 Nov 2020 18:24:48 +0000
  • Ironport-sdr: wHN3Na1BouZutdlH/fyud1HNrusBFdhIwzQ+RuLLL0ivWv+0I1/AedbmSN/lreGObPEtuxeoNR IHGjw5fc3BfagbcXp36oYXNRenTRzGqstQkUBG7uWvL84+ZYAZ/RcKR6t06Z01ci5JQbfEyRCx U8DyQDxr1l/97uFcqC2dofZIyzhbXpJWcj6UnxW0tOVd0bI//APMpGElcRL7yN1bK8MgRfW977 eb4yxUNDIkrChg3LykJwJGMsnC+8Ee/fb5FT3oLK9fQUFV1Oe3Xj73s08pv0Jy3tQU3pq5H97r JxU=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Sun, Nov 15, 2020 at 06:49:38PM +0100, Manuel Bouyer wrote:
> Hello,
> I spent some more time debugging NetBSD as a PVH dom0 on Xen,
> With Roger's patch to avoid a Xen panic, the NetBSD kernel stalls
> configuring devices. At first I though it was an issue with hardware
> interrupts, but it more likely is an issue with Xen timer events.
> Specifically: virtual CPU 0 stops receiving timer events, while other
> CPUs keep receiving them. I tried to force a timer rearm but this didn't help.
> The event is not masked nor pending on Xen or NetBSD, as confirmed by 'q'.
> Others events (the Xen console, the debug event) are properly received
> by CPU0. I don't know how to debug this more at this point.

You could try to use dom0_vcpus_pin command line option and then dump
the timers using the 'a' debug key, this way you can see if CPU0 has a
timer pending (which would be the vCPU0 timer).

What timer is NetBSD using, is it the PV vCPU single shot timer, the
periodic one, or the emulated local APIC timer?

Depending on the timer you are trying to use I would recommend to add
some printks if needed.

Roger.



 


Rackspace

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