All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org, tim@xen.org,
	stefano.stabellini@citrix.com
Subject: Re: [PATCH 3/4] xen/arm: Implement a dummy debug monitor for ARM32
Date: Sat, 14 Jun 2014 18:16:33 +0100	[thread overview]
Message-ID: <539C8371.4070506@linaro.org> (raw)
In-Reply-To: <1402660975.19520.6.camel@kazak.uk.xensource.com>

Hi Ian,

On 13/06/14 13:02, Ian Campbell wrote:
> Looking at it with fresh eyes this morning I see what you mean now, the
> essential difference is that with arm32 DBGDIDR is trapped by
> MDCR_EL2.TDA, whereas the the arm64 equivalent (IDAA64DFR*) are not
> (it's trapped as part of the ID register group, which we don't bother
> trapping). The rest of the registers are RAZ/WI which is consistent with
> arm64.

Right, this patch is mostly here to let Linux think there is not debug 
hardware registers.

As you said on another mail, the long term goal is to context switch 
correctly those register to allow perf and debug working in the guest.

> So in the end you've convinced me that this is the right thing to do for
> now and to backport to 4.4.
>
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
> I've committed this and the previous (perfc) one but not the next one
> (useful debug for coproc traps) which had comments.
>
> I did s/DBGCR/DBGBCR/ to match the name used in both the v7 and v8 ARM
> ARMs, I think it was just a typo? Hope that's ok.

Yes, I forgot the B by mistake.

>
> Also DBGOSLAR is supposed to be WO but you've implemented it as RAZ/WI,
> I didn't think that mattered enough to bother with though.

I was lazy to add 2 more lines to handle this register WO.

I'm not sure what is behavior when a guest is trying to read a WO 
register. I guess an undefined instruction.

I can send a follow-up to use this behavior for Xen 4.5.

Regards,

-- 
Julien Grall

  reply	other threads:[~2014-06-14 17:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-24 22:45 [PATCH 0/4] xen/arm32: Follow-up XSA-93 Julien Grall
2014-04-24 22:45 ` [PATCH 1/4] xen/arm: Add missing newline after commit 60f7376 Julien Grall
2014-05-02 12:58   ` Ian Campbell
2014-05-02 12:59     ` Julien Grall
2014-04-24 22:45 ` [PATCH 2/4] xen/arm: Implement a dummy Performance Monitor for ARM32 Julien Grall
2014-05-02 11:01   ` Ian Campbell
2014-05-02 12:41     ` Julien Grall
2014-06-13 12:02       ` Ian Campbell
2014-04-24 22:45 ` [PATCH 3/4] xen/arm: Implement a dummy debug monitor " Julien Grall
2014-05-02 11:09   ` Ian Campbell
2014-05-02 12:53     ` Julien Grall
2014-05-02 13:14       ` Ian Campbell
2014-05-02 13:29         ` Julien Grall
2014-06-13 12:02           ` Ian Campbell
2014-06-14 17:16             ` Julien Grall [this message]
2014-05-02 13:26       ` Ian Campbell
2014-05-02 13:39         ` Julien Grall
2014-05-02 14:18           ` Ian Campbell
2014-05-02 14:22             ` Julien Grall
2014-05-02 15:17               ` Ian Campbell
2014-04-24 22:45 ` [PATCH 4/4] xen/arm: Add some useful debug in coprocessor trapping Julien Grall
2014-05-02 11:12   ` Ian Campbell
2014-05-02 12:58     ` Julien Grall

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=539C8371.4070506@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.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.