All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: Xen 4.18.5 PV dbregs fail
Date: Mon, 26 May 2025 20:41:16 +0200	[thread overview]
Message-ID: <aDS1zFVsbHTgEZ50@antioche.eu.org> (raw)
In-Reply-To: <d019f9f9-6d45-43fe-b184-fc55f79d411f@citrix.com>

On Mon, May 26, 2025 at 07:06:04PM +0100, Andrew Cooper wrote:
> On 26/05/2025 6:59 pm, Manuel Bouyer wrote:
> > Hello,
> > since I updated to Xen 4.18.5 (from 4.18.4), NetBSD's dbregs-related tests
> > are failing. Only for PV; PVH and HVM guests are fine. They are
> > failing for both 32bits and 64bits guests.
> >
> > I tracked it down to dr6 being 0xffff0ff0 after the trace trap, when at
> > last one of the lower bits should be 1 (I think it's bit 0, from the code).
> >
> > I looked at the commit log between 4.18.4 and 4.18.5 but didn't see
> > anything obvious.
> >
> > Any idea ?
> >
> 
> Have you got a link to the test in question?

For example, dbregs_dr0_trap_code in 
https://cvsweb.netbsd.org/bsdweb.cgi/src/tests/lib/libc/sys/t_ptrace_x86_wait.h?rev=1.33;content-type=text%2Fplain

What's failing is
	ATF_REQUIRE_EQ(info.psi_siginfo.si_code, TRAP_DBREG);

I added printfs in the kernel to show the debug registers when
the process traps, this is where the 0xffff0ff0 value comes from.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--


  parent reply	other threads:[~2025-05-26 18:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-26 17:59 Xen 4.18.5 PV dbregs fail Manuel Bouyer
2025-05-26 18:06 ` Andrew Cooper
2025-05-26 18:17   ` Andrew Cooper
2025-05-26 18:46     ` Manuel Bouyer
2025-05-26 18:50       ` Andrew Cooper
2025-05-26 20:13         ` Manuel Bouyer
2025-05-26 20:30           ` Andrew Cooper
2025-05-26 20:56             ` Manuel Bouyer
2025-05-26 21:10               ` Manuel Bouyer
2025-05-26 21:17                 ` Andrew Cooper
2025-05-26 21:30                   ` Manuel Bouyer
2025-05-26 18:41   ` Manuel Bouyer [this message]
2025-05-26 20:53 ` [PATCH] x86/pv: Fix breakpoint reporting Andrew Cooper
2025-05-27 10:59   ` Roger Pau Monné

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aDS1zFVsbHTgEZ50@antioche.eu.org \
    --to=bouyer@antioche.eu.org \
    --cc=andrew.cooper3@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.