Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2034411pxb; Fri, 29 Jan 2021 11:12:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyt2X0PQvffxV0ROcmV5sf0/Nc4cNIx46E1Xe0qQXXz3UPiB/hvSAQeAQwAKpwG02FseVWS X-Received: by 2002:a17:906:2747:: with SMTP id a7mr6350208ejd.250.1611947532181; Fri, 29 Jan 2021 11:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611947532; cv=none; d=google.com; s=arc-20160816; b=c1Cko3x1bq2G3pLnH2qESp3nE7+XditeMIEmlFJ3WoeHD+L3VYPRhQPGRd0Lh11th5 5OuiKjuEhem7gXeSPj8bFIbDsB1HD79pXCm8O0dCIDCksfvt65r1Nyqj0vcuZY2fILfU KQ8Mfa1EvELYLq2lhHhInByDIscppCYFU9wVHRbqmNQDY7PV1zgeitZz8W0knnvM13GN ELsEeKaJRj4Hgd2rSpI9hZ9SADKJEl7vayhaflYBuPXAzeO8nv2WwZqbfgweK1xfHs/4 XfKK1SBBfqKONW7Cakx6QkNX9hU5DspVCT1twO8dQV3pkGy1g/mSkN8lubZKloO/4inS WdoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=HZhkU5olhXDMdsTExJoQWYa6ZP+3wv/B5D9kN/lZ4eU=; b=oy8MKZqI/5/0AutR2Jr8CY3FWfYYtp02G4Vi+DUcFL4hn97zNvNrvcWSTIT7ptE//B pHzeQAO23yIj6dXV7iSqujn8SxLZyTdG2XYL5mLkKTTsmlGHI9fwUqnUOgAL4f056eF6 pg8VF+KXiEO1yoNaEmy0i5RqXzHy90oOHx/EwuHNwJGy5gGxUqh9MHPqhBHG4GOQVdse 5F4ro6rABD1HQ6VEBl//sBK3tX/rIim+tvEbLBniA7KsNqVfTxoParZVdl8c5LD/hPKB oodcoqnfaaoo8Q8oFBofYWqh+mXH5PrqQ7p/v2UUVITzcWTVJplJAS+YthIGFJVYdy+v DlZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y81MIc+O; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Pfj5FRQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si6239608edc.349.2021.01.29.11.11.47; Fri, 29 Jan 2021 11:12:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y81MIc+O; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Pfj5FRQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232835AbhA2TLS (ORCPT + 99 others); Fri, 29 Jan 2021 14:11:18 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:43308 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232864AbhA2TKe (ORCPT ); Fri, 29 Jan 2021 14:10:34 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1611947387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HZhkU5olhXDMdsTExJoQWYa6ZP+3wv/B5D9kN/lZ4eU=; b=Y81MIc+Os0XeR08IrFkUgpOKs38SxEH4LBJhDWBZ/3IiiTbeI3kUXvX4W3uM2CYwtNKRqp mSB2h0t/N1xu6uZY4Zbat7NjU8WCWHA1i2TeL1xDBFWDUfWg5eMytMm9HAGurer2L+rw5s rD9F7Q+vuF2y6lk7SIFImvK4fN2Fycz1oBzy0PbmxcAzaFr9VEyFZBykRX3OGAp8pziFk8 CuLVjuI1iayHMqwJr3YfTlvQyHft3Un57vstdy2NO1hEVzwpPPu2kdo4klNGLmf74A3C1v xrhKJgsoDFrRHTzpFAekAmFTxBXMKoWS5iK3EsK8QnlJHf/PeIAbbQ9YnjBEtQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1611947387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HZhkU5olhXDMdsTExJoQWYa6ZP+3wv/B5D9kN/lZ4eU=; b=Pfj5FRQdoyUQW7MIzXdku+QUqeXqU7wBQNHm1fOUaZUcSvgUzYJQX2Ne8cKLbVWjuQodJc U9ftdXnk2VenVfBQ== To: Peter Zijlstra Cc: x86@kernel.org, tdevries@suse.de, linux-kernel@vger.kernel.org, andrew.cooper3@citrix.com, Frederic Weisbecker Subject: Re: [PATCH] selftests: breakpoints: Add "WINE" test for x86 In-Reply-To: References: <20210128211627.GB4348@worktop.programming.kicks-ass.net> <87eei4d4k6.fsf@nanos.tec.linutronix.de> Date: Fri, 29 Jan 2021 20:09:47 +0100 Message-ID: <875z3fd0g4.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29 2021 at 10:08, Peter Zijlstra wrote: > On Fri, Jan 29, 2021 at 12:28:41AM +0100, Thomas Gleixner wrote: > >> Add a test case which covers this scenario. This is modeled after the >> WINE testcase, but changes the expect in step #2 to: >> >> - Expect DR6::BS == 1 and DR6::BR0 == 1 and IP == second instruction >> >> to ensure that the GDB expectations are met as well. > >> + /* >> + * Expect: DR6::BS == 1 DR6::BR0 == 1 IP == instr[1] >> + * Wine does not care about BR0 here but GDB does ... >> + */ >> + wine_test_step(1, addr, 1, 1, buf); > > > So my v2 patch will fail this, while it will pass the actual gdb > testcase. > > The thing it does is process _data_ breakpoints along with TF, but it > will exclude instruction breakpoints and TF. > > Since the above test is using instruction breakpoints, it will report > 0x4000 and 0x0001 respectively for two consequtive exceptions. Yes, I'm a moron....