Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2022 14:12:28 +0100
From:      Roger Pau =?utf-8?B?TW9ubsOp?= <roger.pau@citrix.com>
To:        Ze Dupsys <zedupsys@gmail.com>
Cc:        <freebsd-xen@freebsd.org>, <buhrow@nfbcal.org>
Subject:   Re: ZFS + FreeBSD XEN dom0 panic
Message-ID:  <YjxuPF80Z8z0V58t@Air-de-Roger>
In-Reply-To: <Yji8NZePmovLFhk2@Air-de-Roger>
References:  <Yiocagc4dTc15/Y1@Air-de-Roger> <feb35237-555b-29dc-d2fd-1659b400d683@gmail.com> <Yi8IvnqWUoWBIsLB@Air-de-Roger> <ca88a8c8-3b4e-fbde-18a7-d4e5f61e8b2c@gmail.com> <YjSkIZmV%2Bt8Q3AEn@Air-de-Roger> <b5fc1a74-6a52-e237-4a69-2b3f8d4974bd@gmail.com> <YjheCAFXykUZz/pz@Air-de-Roger> <d1d8f552-15a3-3d4f-1143-2e1cae7904ee@gmail.com> <YjipQwBQ/JTo4S6G@Air-de-Roger> <Yji8NZePmovLFhk2@Air-de-Roger>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 21, 2022 at 06:56:05PM +0100, Roger Pau Monné wrote:
> On Mon, Mar 21, 2022 at 05:35:15PM +0100, Roger Pau Monné wrote:
> > On Mon, Mar 21, 2022 at 04:07:48PM +0200, Ze Dupsys wrote:
> > > On 2022.03.21. 13:14, Roger Pau Monné wrote:
> > > > I think the problem is not likely with the xenstore implementation
> > > > (ie: xs_talkv) but rather a race with how the FreeBSD kernel detects
> > > > and manages addition and removal of devices that hang off xenbus.
> > > > 
> > > > I'm afraid there's too much data below for me to parse it.
> > > 
> > > Understood. Sounds more tricky than i thought. What could i do to make data
> > > more useful?
> > 
> > I have another patch for you to try. This will make the system a bit
> > chatty, let's see what you get.
> 
> Forgot to mention: when testing the patch attached to the previous
> email there's no need to push the system until you get a panic. Just
> detecting when you have stale xbbd entries in sysctl would be enough,
> or alternatively when you start to see entries in the output of
> `xenstore-ls -fp` like:
> 
> /local/domain/0/backend/vbd/XX/XXXXX = ""   (n0)
> /local/domain/0/backend/vbd/XX/XXXXX/feature-barrier = "1"   (n0)
> /local/domain/0/backend/vbd/XX/XXXXX/feature-flush-cache = "1"   (n0)
> /local/domain/0/backend/vbd/XX/XXXXX/max-ring-page-order = "5"   (n0)
> 
> Note the lack of a '/local/domain/0/backend/vbd/XX/XXXXX/state' node.
> 
> At that point I would request that you attach the output of
> `xenstore-ls -fp` together with the full serial log since the system
> booted.
> 
> You might not need a lot of iterations to trigger that state.

Hello,

Sorry to pester, but do you have any update on this?

I'm quite sure there are races with xenbus device attach/detach, and
the earlier we can get this sorted out the better.

Thanks, Roger.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YjxuPF80Z8z0V58t>