[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 2/6] x86/gdbsx: Rename debug.c to gdbsx.c


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 25 Apr 2022 15:40:16 +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=QnDgujrzOyfv1pJFIwtkjskpKyMN9g/CFoxbb1Ik1a0=; b=M45mMG7IJ1s4iXoZS+Tmu1eTql7xmellqSwlUrg3oaWCDjCLW+aR9nL56gAUq+7Pef84MjY5hB4VVeHZHuU5mIzHL3I1E6xkW8/rmDe5RbJ9kiHxhUt+GPz/TcViuGgv4vjiXIBKw406qI1E1Ic8PPxmaCPCAWmCgk+Fm/J9LWjadRCciVIt0LWEZ67E5nBJw1JFI5wMvAURC5NGQlSMJFleRcU644HEtklEQeYTsQDQlVu3388FPg3p9XzoGJrl03Fb3EQQfaThBkeURTdt9gQXxhHsjAGpM9AiOf1l0ujQKhOuJWFT6ro/ULGq0e9dkGWpXtcaJa5J3bgqlh2HGg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l3alwh2IHvYTowJvtRTeAgoVDfcGHFCMHfDpCXnYt5OlBEAzn8bNrpFGKLGblbrIGnp5bjweWp++c0CGZQiAIYbEohj00g2tAwKRom7Imj3KmnKZ9AoFeS9rtMXLYVWgLPMe4GfrGjdM9A4i4DG4sCwhdk8DG0NpL3RS13Vj3moAw8jwzNKC0M0eqSLmr3xLcYpSgCX+h3bwVbkGJHjAANf/Zod8k4V0LE+/mVwoNOyXYxX12JwowmJe0p9iEqphom1XHmbwVYyCdjBrABdLGfvCNmGmlK62rMXcwt6krpCdvZiqSP5Nq8wg3zg6CWmdF7V/kJMcaBCs2yvGdBrzhQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Bobby Eshleman <bobby.eshleman@xxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 25 Apr 2022 13:40:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.04.2022 16:13, Andrew Cooper wrote:
> From: Bobby Eshleman <bobby.eshleman@xxxxxxxxx>
> 
> debug.c contains only dbg_rw_mem().  Rename it to gdbsx.c.
> 
> Move gdbsx_guest_mem_io(), and the prior setup of iop->remain, from domctl.c
> to gdbsx.c, merging it with dbg_rw_mem().
> 
> Signed-off-by: Bobby Eshleman <bobby.eshleman@xxxxxxxxx>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> ---
> CC: Jan Beulich <JBeulich@xxxxxxxx>
> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> CC: Wei Liu <wl@xxxxxxx>
> 
> v5:
>  * Consolidate hunks from multiple v4 patches
>  * Rewrite commit message
> 
> The semantics are rather broken.  XEN_DOMCTL_gdbsx_guestmemio only sets
> copyback when there's nothing to copy back, and skips copying back in the
> -EFAULT case when the iop->remain field is relevant.  Furthermore, it can be
> asked to move up to 4GB in one go, with no continuability whatsoever.
> ---
>  xen/arch/x86/Makefile               |  2 +-
>  xen/arch/x86/domctl.c               | 14 ++------------
>  xen/arch/x86/{debug.c => gdbsx.c}   | 23 ++++++++++-------------
>  xen/arch/x86/include/asm/debugger.h |  6 ------
>  xen/arch/x86/include/asm/gdbsx.h    | 13 +++++++++++++
>  5 files changed, 26 insertions(+), 32 deletions(-)
>  rename xen/arch/x86/{debug.c => gdbsx.c} (89%)
>  create mode 100644 xen/arch/x86/include/asm/gdbsx.h

As I've realized only while reviewing your newer gdbsx patch, this
should have come with an update to ./MAINTAINERS. Quite possibly one
simply deleting the entire entry there.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.