From: Julien Grall <julien.grall@arm.com>
To: Volodymyr Babchuk <volodymyr_babchuk@epam.com>, xen-devel@lists.xen.org
Cc: "Edgar E . Iglesias" <edgar.iglesias@xilinx.com>,
Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: [PATCH 3/7] arm: traps: check if SMC was conditional before handling it
Date: Wed, 9 Aug 2017 10:56:45 +0100 [thread overview]
Message-ID: <02db138b-85db-2a5a-79fb-fb4677580ee5@arm.com> (raw)
In-Reply-To: <1502222922-25821-4-git-send-email-volodymyr_babchuk@epam.com>
Hi,
On 08/08/17 21:08, Volodymyr Babchuk wrote:
> On certain ARM arhcitectures SMC instruction can be conditional
> (ARM DDI 0487A.k page D7-1949) and we need to check if that
> conditional was meet.
>
> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
> ---
> This patch was separated from the next one
Nowhere in this series you mention the dependencies on your other series
[1]. This patch should not be merged until [1] has been merged.
Cheers,
>
> ---
> xen/arch/arm/traps.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
> index 0171c1c..e14e7c0 100644
> --- a/xen/arch/arm/traps.c
> +++ b/xen/arch/arm/traps.c
> @@ -2773,6 +2773,12 @@ static void do_trap_smc(struct cpu_user_regs *regs, const union hsr hsr)
> {
> int rc = 0;
>
> + if ( !check_conditional_instr(regs, hsr) )
> + {
> + advance_pc(regs, hsr);
> + return;
> + }
> +
> if ( current->domain->arch.monitor.privileged_call_enabled )
> rc = monitor_smc();
>
>
[1]
https://lists.xenproject.org/archives/html/xen-devel/2017-07/msg02988.html
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-08-09 9:56 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-08 20:08 [PATCH v3 0/7] Handle SMCs and HVCs in conformance with SMCCC Volodymyr Babchuk
2017-08-08 20:08 ` [PATCH 1/7] arm: traps: psci: use generic register accessors Volodymyr Babchuk
2017-08-08 20:37 ` Andrew Cooper
2017-08-08 20:46 ` Volodymyr Babchuk
2017-08-09 9:52 ` Julien Grall
2017-08-09 11:12 ` Andrew Cooper
2017-08-09 11:43 ` Julien Grall
2017-08-08 20:08 ` [PATCH 2/7] arm: make processor-specific functions from traps.c globaly visible Volodymyr Babchuk
2017-08-09 9:53 ` Julien Grall
2017-08-09 19:26 ` Volodymyr Babchuk
2017-08-09 20:13 ` Julien Grall
2017-08-08 20:08 ` [PATCH 3/7] arm: traps: check if SMC was conditional before handling it Volodymyr Babchuk
2017-08-09 9:56 ` Julien Grall [this message]
2017-08-08 20:08 ` [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC Volodymyr Babchuk
2017-08-09 10:10 ` Julien Grall
2017-08-09 11:58 ` Jan Beulich
2017-08-09 21:39 ` Volodymyr Babchuk
2017-08-10 7:30 ` Jan Beulich
2017-08-10 10:48 ` Julien Grall
2017-08-16 21:41 ` Volodymyr Babchuk
2017-08-17 7:45 ` Jan Beulich
2017-08-17 12:35 ` Volodymyr Babchuk
2017-08-17 12:52 ` Julien Grall
2017-08-17 12:56 ` Jan Beulich
2017-08-10 15:33 ` Volodymyr Babchuk
2017-08-10 16:11 ` Julien Grall
2017-08-10 17:40 ` Volodymyr Babchuk
2017-08-10 18:18 ` Julien Grall
2017-08-10 20:09 ` Volodymyr Babchuk
2017-08-10 21:09 ` Julien Grall
2017-08-11 10:47 ` Julien Grall
2017-08-11 13:08 ` Volodymyr Babchuk
2017-08-08 20:08 ` [PATCH 5/7] arm: traps: handle PSCI calls inside `smccc.c` Volodymyr Babchuk
2017-08-09 11:02 ` Julien Grall
2017-08-08 20:08 ` [PATCH 6/7] arm: psci: use definitions provided by vsmc.h Volodymyr Babchuk
2017-08-09 11:36 ` Julien Grall
2017-08-08 20:08 ` [PATCH 7/7] arm: vsmc: remove 64 bit mode check in psci handler Volodymyr Babchuk
2017-08-09 11:38 ` 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=02db138b-85db-2a5a-79fb-fb4677580ee5@arm.com \
--to=julien.grall@arm.com \
--cc=edgar.iglesias@xilinx.com \
--cc=sstabellini@kernel.org \
--cc=volodymyr_babchuk@epam.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).