* [PATCH 0/2] xen/arm: Misc for grant-table
@ 2015-01-13 18:17 Julien Grall
2015-01-13 18:17 ` [PATCH 1/2] xen/arm: Remove the define INVALID_GFN from arch-arm/grant_table.h Julien Grall
2015-01-13 18:17 ` [PATCH 2/2] xen/arm: grant-table: Increased the initial number of grant frame to 4 Julien Grall
0 siblings, 2 replies; 5+ messages in thread
From: Julien Grall @ 2015-01-13 18:17 UTC (permalink / raw)
To: xen-devel; +Cc: stefano.stabellini, Julien Grall, tim, ian.campbell
Hi all,
This series contains a couple of change for the grant-table header.
The first one only removed an unused/misplaced define. The second one,
increase the number of grant frame iniatialize when the domain is created.
Regards,
Julien Grall (2):
xen/arm: Remove the define INVALID_GFN from arch-arm/grant_table.h
xen/arm: grant-table: Increased the initial number of grant frame to 4
xen/include/asm-arm/grant_table.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--
2.1.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] xen/arm: Remove the define INVALID_GFN from arch-arm/grant_table.h
2015-01-13 18:17 [PATCH 0/2] xen/arm: Misc for grant-table Julien Grall
@ 2015-01-13 18:17 ` Julien Grall
2015-01-15 15:11 ` Ian Campbell
2015-01-13 18:17 ` [PATCH 2/2] xen/arm: grant-table: Increased the initial number of grant frame to 4 Julien Grall
1 sibling, 1 reply; 5+ messages in thread
From: Julien Grall @ 2015-01-13 18:17 UTC (permalink / raw)
To: xen-devel; +Cc: stefano.stabellini, Julien Grall, tim, ian.campbell
The define INVALID_GFN is misplaced in arch-arm/grant_table.h and is
never used in neither in ARM nor in the common code.
Therefore we can safely remove it.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
xen/include/asm-arm/grant_table.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/xen/include/asm-arm/grant_table.h b/xen/include/asm-arm/grant_table.h
index 0edad67..88ee3c6 100644
--- a/xen/include/asm-arm/grant_table.h
+++ b/xen/include/asm-arm/grant_table.h
@@ -3,7 +3,6 @@
#include <xen/grant_table.h>
-#define INVALID_GFN (-1UL)
#define INITIAL_NR_GRANT_FRAMES 1
void gnttab_clear_flag(unsigned long nr, uint16_t *addr);
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] xen/arm: grant-table: Increased the initial number of grant frame to 4
2015-01-13 18:17 [PATCH 0/2] xen/arm: Misc for grant-table Julien Grall
2015-01-13 18:17 ` [PATCH 1/2] xen/arm: Remove the define INVALID_GFN from arch-arm/grant_table.h Julien Grall
@ 2015-01-13 18:17 ` Julien Grall
2015-01-15 15:13 ` Ian Campbell
1 sibling, 1 reply; 5+ messages in thread
From: Julien Grall @ 2015-01-13 18:17 UTC (permalink / raw)
To: xen-devel; +Cc: stefano.stabellini, Julien Grall, tim, ian.campbell
When a domain is created on ARM, the grant table code initialized one
grant frame. With a basic load (i.e disk usage), Xen is quickly trying
to expand the number of frames:
(XEN) grant_table.c:1305:d2v0 Expanding dom (2) grant table from (1) to (2) frames.
(XEN) grant_table.c:1305:d2v0 Expanding dom (2) grant table from (2) to (3) frames.
(XEN) grant_table.c:311:d0v0 Increased maptrack size to 2 frames
(XEN) grant_table.c:311:d0v0 Increased maptrack size to 3 frames
The x86 code is initialied 4 frames (I didn't find the exact reason). I
think we could use the same default value.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
xen/include/asm-arm/grant_table.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/include/asm-arm/grant_table.h b/xen/include/asm-arm/grant_table.h
index 88ee3c6..5e076cc 100644
--- a/xen/include/asm-arm/grant_table.h
+++ b/xen/include/asm-arm/grant_table.h
@@ -3,7 +3,7 @@
#include <xen/grant_table.h>
-#define INITIAL_NR_GRANT_FRAMES 1
+#define INITIAL_NR_GRANT_FRAMES 4
void gnttab_clear_flag(unsigned long nr, uint16_t *addr);
int create_grant_host_mapping(unsigned long gpaddr,
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] xen/arm: grant-table: Increased the initial number of grant frame to 4
2015-01-13 18:17 ` [PATCH 2/2] xen/arm: grant-table: Increased the initial number of grant frame to 4 Julien Grall
@ 2015-01-15 15:13 ` Ian Campbell
0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2015-01-15 15:13 UTC (permalink / raw)
To: Julien Grall; +Cc: xen-devel, tim, stefano.stabellini
On Tue, 2015-01-13 at 18:17 +0000, Julien Grall wrote:
> When a domain is created on ARM, the grant table code initialized one
> grant frame. With a basic load (i.e disk usage), Xen is quickly trying
> to expand the number of frames:
>
> (XEN) grant_table.c:1305:d2v0 Expanding dom (2) grant table from (1) to (2) frames.
> (XEN) grant_table.c:1305:d2v0 Expanding dom (2) grant table from (2) to (3) frames.
> (XEN) grant_table.c:311:d0v0 Increased maptrack size to 2 frames
> (XEN) grant_table.c:311:d0v0 Increased maptrack size to 3 frames
>
> The x86 code is initialied 4 frames (I didn't find the exact reason). I
> think we could use the same default value.
>
> Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked + applied.
> ---
> xen/include/asm-arm/grant_table.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/include/asm-arm/grant_table.h b/xen/include/asm-arm/grant_table.h
> index 88ee3c6..5e076cc 100644
> --- a/xen/include/asm-arm/grant_table.h
> +++ b/xen/include/asm-arm/grant_table.h
> @@ -3,7 +3,7 @@
>
> #include <xen/grant_table.h>
>
> -#define INITIAL_NR_GRANT_FRAMES 1
> +#define INITIAL_NR_GRANT_FRAMES 4
>
> void gnttab_clear_flag(unsigned long nr, uint16_t *addr);
> int create_grant_host_mapping(unsigned long gpaddr,
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-15 15:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 18:17 [PATCH 0/2] xen/arm: Misc for grant-table Julien Grall
2015-01-13 18:17 ` [PATCH 1/2] xen/arm: Remove the define INVALID_GFN from arch-arm/grant_table.h Julien Grall
2015-01-15 15:11 ` Ian Campbell
2015-01-13 18:17 ` [PATCH 2/2] xen/arm: grant-table: Increased the initial number of grant frame to 4 Julien Grall
2015-01-15 15:13 ` Ian Campbell
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.