From: Stefano Stabellini <sstabellini@kernel.org>
To: xen-devel@lists.xenproject.org
Cc: Stefano Stabellini <stefanos@xilinx.com>,
julien.grall@arm.com, sstabellini@kernel.org,
Tamas K Lengyel <tamas@tklengyel.com>,
rcojocaru@bitdefender.com
Subject: [PATCH v2 2/4] xen/arm: initialize access
Date: Wed, 17 Oct 2018 22:31:14 +0800 [thread overview]
Message-ID: <1539786676-8797-2-git-send-email-sstabellini@kernel.org> (raw)
In-Reply-To: <alpine.DEB.2.10.1810172229070.3835@sstabellini-ThinkPad-X260>
Initialize variable *access before returning it back to the caller.
It makes the code a bit nicer and it is a safety certification
requirement.
Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
CC: rcojocaru@bitdefender.com
CC: Tamas K Lengyel <tamas@tklengyel.com>
---
Changes in v2:
- improve comment
- use p2m->default_access
---
xen/arch/arm/mem_access.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/arch/arm/mem_access.c b/xen/arch/arm/mem_access.c
index ba4ec78..86f0882 100644
--- a/xen/arch/arm/mem_access.c
+++ b/xen/arch/arm/mem_access.c
@@ -47,6 +47,7 @@ static int __p2m_get_mem_access(struct domain *d, gfn_t gfn,
};
ASSERT(p2m_is_locked(p2m));
+ *access = p2m->default_access;
/* If no setting was ever set, just return rwx. */
if ( !p2m->mem_access_enabled )
--
1.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-10-17 14:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 14:30 [PATCH v2 0/4] misc safety certification fixes Stefano Stabellini
2018-10-17 14:31 ` [PATCH v2 1/4] xen/arm: initialize target Stefano Stabellini
2018-10-17 14:40 ` Julien Grall
2018-10-17 14:31 ` Stefano Stabellini [this message]
2018-10-17 14:33 ` [PATCH v2 2/4] xen/arm: initialize access Razvan Cojocaru
2018-10-17 14:40 ` Julien Grall
2018-10-17 14:31 ` [PATCH v2 3/4] xen: introduce __symbol Stefano Stabellini
2018-10-17 14:48 ` Julien Grall
2018-10-17 14:31 ` [PATCH v2 4/4] xen: use __symbol everywhere Stefano Stabellini
2018-10-17 14:59 ` Julien Grall
2018-11-06 22:01 ` 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=1539786676-8797-2-git-send-email-sstabellini@kernel.org \
--to=sstabellini@kernel.org \
--cc=julien.grall@arm.com \
--cc=rcojocaru@bitdefender.com \
--cc=stefanos@xilinx.com \
--cc=tamas@tklengyel.com \
--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.