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

Re: [Xen-devel] [PATCH] xen/arm: traps: Remove all zero padding before PRIregister format


  • To: Julien Grall <julien.grall@xxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Wed, 14 Aug 2019 11:18:24 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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-SenderADCheck; bh=CkmLbQghn3Gyi7LBDy/diK15uI5QYDWbp5MZQWgUNIM=; b=IL62nMA9YtEulbi26ll7zXVtMhf0ZGep9E2Wy3Xa/ErQOE3Vsd8mfrhCO34b5h39NhHne9zf/XPaK0l2trcOc0P7+GiGo4+s/MyOWsCcYgbxf4Oakdu0hAJ9kXBZd7T+LImrqlZTD5Bpapk86P6cOvxZ7EYXCbWoJBBPRBGKNQ3YK3jlBceX4Ck/8vrcxlZDW6oiwgqqJu3jCtwptXdbgefH9fS2NmLw6PlnxdF7rLQ1K6AS8w3T0SLE4kGYxBh5y4MgaAIElaQcnWke2m9gstOepqUGzAr9wGqx05P/QnOn+13EL5oO5kKHatqk0waKeRaodsQJ7CCgKUvlcipaJw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z+2eu+CCxve2AbmK5wTbBTQPi8Y8g1Xryodvc1PNIlCPvz0NbkNISsa3e6MWof+WTm2I3P8MU+/H55/Wc3VUJNlWyyVdVojFD/c5EnBxUh9ZSn823LJYV5b10AhMB6RtxUAvyU86Ky6sSZ3gfjSp2daSUAwxzZ6JL3hh//D7whs3OWCo6KEiCEVgqwMNPwjwHFlZpMAfhpoH6jGLeTPcCbUhueYHnPY+hM7ojgq/E7u3To5l0JrQLFqLIKdhk4Se0YJsP3IK24NSN0hgVDkHrMLcnLEWAAfPcY66vX/pg9ji6e6YjAfHXe8Spp6mpd4bJeqTjnU2hU+EKPwFOTKAew==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@xxxxxxxx;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 14 Aug 2019 11:18:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVUoO4Ga3AElWC5UmG7XdiMzD9U6b6fvCA
  • Thread-topic: [PATCH] xen/arm: traps: Remove all zero padding before PRIregister format

Hi Julien,

Julien Grall writes:

> Commit af156ff085 "xen/arm: types: Specify the zero padding in the
> definition of PRIregister" moved the zero padding within the definition
> of PRIregister.
>
> However, some of the users still had zero padding before which result
> to print tens of zero when dumping the CPU state.
>
> To prevent this, remove the last users of zero padding before
> PRIregister.
>
> Signed-off-by: Julien Grall <julien.grall@xxxxxxx>
Reviewed-by: Volodymyr Babchuk <volodymyr.babchuk@xxxxxxxx>

> ---
>  xen/arch/arm/traps.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
> index f062ae6f6a..a3b961bd06 100644
> --- a/xen/arch/arm/traps.c
> +++ b/xen/arch/arm/traps.c
> @@ -938,7 +938,7 @@ static void _show_registers(const struct cpu_user_regs 
> *regs,
>      printk(" TTBR0_EL2: %016"PRIx64"\n", READ_SYSREG64(TTBR0_EL2));
>      printk("\n");
>      printk("   ESR_EL2: %08"PRIx32"\n", regs->hsr);
> -    printk(" HPFAR_EL2: %016"PRIregister"\n", READ_SYSREG(HPFAR_EL2));
> +    printk(" HPFAR_EL2: %"PRIregister"\n", READ_SYSREG(HPFAR_EL2));
>  
>  #ifdef CONFIG_ARM_32
>      printk("     HDFAR: %08"PRIx32"\n", READ_CP32(HDFAR));
> @@ -1759,7 +1759,7 @@ void dump_guest_s1_walk(struct domain *d, vaddr_t addr)
>      mfn = gfn_to_mfn(d, gaddr_to_gfn(ttbr0));
>  
>      printk("dom%d VA 0x%08"PRIvaddr"\n", d->domain_id, addr);
> -    printk("    TTBCR: 0x%08"PRIregister"\n", ttbcr);
> +    printk("    TTBCR: 0x%"PRIregister"\n", ttbcr);
>      printk("    TTBR0: 0x%016"PRIx64" = 0x%"PRIpaddr"\n",
>             ttbr0, mfn_to_maddr(mfn));


-- 
Volodymyr Babchuk at EPAM
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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