All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shanker Donthineni <shankerd@codeaurora.org>
To: Julien Grall <julien.grall@arm.com>, xen-devel@lists.xen.org
Cc: sstabellini@kernel.org, shankerd@qti.qualcomm.com
Subject: Re: [PATCH for-4.9] xen/arm: acpi: Map MMIO on fault in stage-2 page table for the hardware domain
Date: Thu, 30 Mar 2017 08:15:23 -0500	[thread overview]
Message-ID: <8b3ac82e-728e-4b32-15d2-1ceaf81db294@codeaurora.org> (raw)
In-Reply-To: <2d2baadb-7c58-82fd-b5f0-353aeab699af@arm.com>

Hi Julien,


On 03/30/2017 07:58 AM, Julien Grall wrote:
>
> On 30/03/17 13:52, Shanker Donthineni wrote:
>> Hi Julien,
> Hi Shanker,
>
>> On 03/30/2017 07:43 AM, Julien Grall wrote:
>>>     Shanker: You mentioned offline that you tested the patch. May I add
>>>     your tested-by?
>> Sure add my tested-by. If you want I can test one more time this mailing list patch.
> The code is the same, but it would not hurt to have another go at it :).
>
> FWIW, I did some testing on Juno with a small patch to turn the mapping
> hypercall into a nop and adding a debug message when mapping:
>

Tested-by: Shanker Donthineni <shankerd@codeaurora.org>

This patch has been tested on Qualcomm Datacenter Technologies QDF2400 server platform with ACPI based XEN/DOM0.

> diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c
> index 626376090d..dd1b0bd2b2 100644
> --- a/xen/arch/arm/p2m.c
> +++ b/xen/arch/arm/p2m.c
> @@ -1116,6 +1116,8 @@ int map_dev_mmio_region(struct domain *d,
>  {
>      int res;
>  
> +    return 0;
> +
>      if ( !(nr && iomem_access_permitted(d, mfn_x(mfn), mfn_x(mfn) + nr - 1)) )
>          return 0;
>  
> diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
> index ebf915bb3b..9e6d2dafc8 100644
> --- a/xen/arch/arm/traps.c
> +++ b/xen/arch/arm/traps.c
> @@ -2643,7 +2643,11 @@ static void do_trap_data_abort_guest(struct cpu_user_regs *regs,
>              return;
>  
>          if ( try_map_mmio(_gfn(paddr_to_pfn(info.gpa))) )
> +        {
> +            gdprintk(XENLOG_DEBUG, "Map %#"PRIpaddr" - %#"PRIpaddr"\n",
> +                     info.gpa, info.gpa + PAGE_SIZE - 1);
>              return;
> +        }
>  
>          break;
>      default:
>
> Cheers,
>

-- 
Shanker Donthineni
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-03-30 13:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30 12:43 [PATCH for-4.9] xen/arm: acpi: Map MMIO on fault in stage-2 page table for the hardware domain Julien Grall
2017-03-30 12:52 ` Shanker Donthineni
2017-03-30 12:58   ` Julien Grall
2017-03-30 13:15     ` Shanker Donthineni [this message]
2017-03-30 18:37 ` Stefano Stabellini
2017-03-30 18:45   ` Julien Grall
2017-03-30 18:55     ` Stefano Stabellini
2017-03-30 19:54       ` Julien Grall
2017-03-31 14:50         ` Julien Grall
2017-03-31 18:01           ` Stefano Stabellini
2017-03-31 18:47             ` Julien Grall
2017-03-31 18:50               ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b3ac82e-728e-4b32-15d2-1ceaf81db294@codeaurora.org \
    --to=shankerd@codeaurora.org \
    --cc=julien.grall@arm.com \
    --cc=shankerd@qti.qualcomm.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.