[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/3] x86: Fix calculation of %dr6/dr7 reserved bits
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 29 Aug 2023 17:47:03 +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=XFm8YOtUgzVpkRHcCKfoWxBg/w3Q8QcU/v7hyGc4fZ4=; b=MCHQBD+R8RsvZu0bVjF02Uq/bUs2B1lXvgJBYhVmc1YGiRasbecHM14BnqKTOqmJ+KdCudtOJYX/kdCPspiCbC1B6ahI81w9ZGVlYiJvMG66xe0EShNCXTPxcJs1CdSLOU60Fk8SjbqZGorXtifmRAFozSRytCeaBwpf6LoRdGlGDGMxfuZAi1LNQJMKKeSEVneRhJpjtwPL/Cw2CLI61VBl4Q5EZlS6Uwa0Eoak5adjiL+OB5Wca+L602XufTeBLlGaesLzUCXxpwldm5Kc+9C+8H73IS3o1kwbimXcrevkwaxzZmKKCXtfgU9kUL0DyDWwW1NTakI06GyDLPMcrQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O3MEj+imnICNk5t6jTvhOZTpzYQlFdoJMAy//RSRbTOyXPJNUrmw5PyjYx+iuaR7UhuAj3UO+X7eTRTLQKlnURUwFVZLSVdstwY2pJlkxKSsm7XeP9B19PXyLbOJWZDXi8Q5MS5aX3xQg6ZFtxNuG1hY/bGmdn8s/n8rn+u/NPqcw5f6FMB/yETXmyIM6CZo30+dQGM3oCQ2tFSv471pXQODST9khGCM0mNy9I2xl4wcq+ciXHHGq+IOAJLcvuI1ZDm8/qtDmv9Xz9Bun1+aOWFGhzhnjstk2s4WYKDDzw4qaiSIjjeSz01G8kdqyHYLOzWR1nz0TmeBf9NXLP6RrA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Jinoh Kang <jinoh.kang.kr@xxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Tue, 29 Aug 2023 15:47:12 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 29.08.2023 16:29, Andrew Cooper wrote:
> On 29/08/2023 3:21 pm, Jan Beulich wrote:
>> On 29.08.2023 15:43, Andrew Cooper wrote:
>>> --- a/xen/arch/x86/include/asm/x86-defns.h
>>> +++ b/xen/arch/x86/include/asm/x86-defns.h
>>> @@ -102,13 +102,30 @@
>>>
>>> /*
>>> * Debug status flags in DR6.
>>> + *
>>> + * For backwards compatibility, status flags which overlap with
>>> + * X86_DR6_DEFAULT have inverted polarity.
>>> */
>>> -#define X86_DR6_DEFAULT 0xffff0ff0 /* Default %dr6 value. */
>>> +#define X86_DR6_B0 (_AC(1, UL) << 0) /* Breakpoint 0
>>> */
>>> +#define X86_DR6_B1 (_AC(1, UL) << 1) /* Breakpoint 1
>>> */
>>> +#define X86_DR6_B2 (_AC(1, UL) << 2) /* Breakpoint 2
>>> */
>>> +#define X86_DR6_B3 (_AC(1, UL) << 3) /* Breakpoint 3
>>> */
>>> +#define X86_DR6_BLD (_AC(1, UL) << 11) /* BusLock detect
>>> (INV) */
>>> +#define X86_DR6_BD (_AC(1, UL) << 13) /* %dr access
>>> */
>>> +#define X86_DR6_BS (_AC(1, UL) << 14) /* Single step
>>> */
>>> +#define X86_DR6_BT (_AC(1, UL) << 15) /* Task switch
>>> */
>>> +#define X86_DR6_RTM (_AC(1, UL) << 16) /* #DB/#BP in RTM
>>> region (INV) */
>>> +
>>> +#define X86_DR6_ZEROS _AC(0x00010000, UL) /* %dr6 bits forced
>>> to 0 */
>> 0x00001000?
>
> Bah yes - serves me right for a last minute refactor.
With the adjustment
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
Jan
|