[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/7] x86: Introduce x86_merge_dr6()
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 25 Sep 2023 09:30:22 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RBVKuUVHS4u7ZXAms0tHxKQ76ktRUAQhfdkRfTHi56k=; b=QwMJLahtsmNcwm/q/P4A1bsWnnnj1HBWKeWAsLbPU1FljOVqsAuoiNS3WCZMhP/2X/KVYaHzM0Mb6Ouw+fOhT/q7YHPM/Otp3L84xVWVtZT4aXOMi/qz4JSkyq7rlXVerod3VKXfigC3exJ9DYRrS+ddJw243apiYnEyl7frESKl/sMquUdunlOR4KMuDM6zXoC9KDTkt/Agjl4M9YW9Z8fUlZ1EVtERHfV0EVMy9mxAXMHjXVZDA2LQhBMyiyh0EmV+9cg0RDLMhu9Hp4B4vboRxUWYZf5aWEpg7xFbHIjWme7gBN4Bfah7ya3yOwJRk60uBj9Diq3JpANNb/2NUQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ACYRChPgfQ3k+NmDYM/Ez1OChO1wSyVFWzBA06VJ6L4Qc2ljbolFn4B6O3uaz7s7b56RxZz4rekTWEGDBM0FXE7rFBWOpo1btfjjs4kD74GZ4OY0+EuZbAOJ1D6mNIezt8xsMKTs7fIeSl2KnqK06KX6Ke4DgbxvJV5/ZAI9RvHjSli2JF2DLzR1mJmVLnnHBPn5Lw6lV/FJPnt3Y93pPmJPf8RM/FqQZn6oPFXkHaRQR6h+Tm34FYiIyZWeJXmJErRp+rvyW+NvtncuIyf9tiEXHCkz76h8kKkO94JcAiRhkCJrAZq15PKgDNFCJ2Gc+oEwJ7rxOpSWfJ73zhsxAQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Jinoh Kang <jinoh.kang.kr@xxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Mon, 25 Sep 2023 07:30:40 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 22.09.2023 18:11, Andrew Cooper wrote:
> On 18/09/2023 12:37 pm, Jan Beulich wrote:
>> On 15.09.2023 22:36, Andrew Cooper wrote:
>>> The current logic used to update %dr6 when injecting #DB is buggy.
>>>
>>> The SDM/APM documention on %dr6 updates is far from ideal, but does at least
>>> make clear that it's non-trivial. The actual behaviour is to overwrite
>>> B{0..3} and accumulate all other bits.
>> As mentioned before, I'm okay to ack this patch provided it is explicitly
>> said
>> where the information is coming from.
>
> The information *is* coming from the relevant paragraph of the relevant
> chapters of the relevant manuals.
>
> I don't need to teach programmers how to suck eggs. Nor am I going to
> quote buggy manuals (corrections are pending for both) as a
> justification for restating several paragraphs of information as a oneliner.
Earlier on you said this to my original request:
'SDM Vol3 18.2.3 Debug Status Register (DR6) says
"Certain debug exceptions may clear bits 0-3. The remaining contents of
the DR6 register are never cleared by the processor."'
"Certain" and "may" do not describe the behavior that your change implements.
Hence imo there's still a need to clarify where the extra information is
coming from. Pending corrections are of course appreciated; in case you have
been told the new wording already, perhaps you could quote that?
Jan
|