xen: put cpupool's member 'n_dom' after 'cpupool_id'
PATCH 1/1 xen: put cpupool's member 'n_dom' after 'cpupool_id'
Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.
--- xen/include/xen/sched-if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/xen/sched-if.h +1 -1
@@ -213,9 +213,9 @@ static inline void sched_free_domdata(const struct scheduler *s,struct cpupool {int cpupool_id; +unsigned int n_dom;cpumask_var_t cpu_valid;/* all cpus assigned to pool */ struct cpupool *next; -unsigned int n_dom;struct scheduler *sched;atomic_t refcnt; };
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Hi,
Quoted 1 line · Baodong Chen
Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.
I am happy with the change, although AFAIK cpupool is not instantiated that often. Are you planning to have more instantiation of it?
Cheers,
Quoted 22 lines
Signed-off-by Baodong Chen <[email protected]>--- xen/include/xen/sched-if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/include/xen/sched-if.h +1
-1@@ -213,9 +213,9 @@ static inline void sched_free_domdata(const struct scheduler *s,struct cpupool {int cpupool_id; +unsigned int n_dom;cpumask_var_t cpu_valid;/* all cpus assigned to pool */ struct cpupool *next; -unsigned int n_dom;struct scheduler *sched;atomic_t refcnt; };
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Julien Grall
Hi,
Quoted 1 line · Baodong Chen
Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.
I am happy with the change, although AFAIK cpupool is not instantiated that often. Are you planning to have more instantiation of it?
Cheers,
No, I'm not planning to create lots of cpupool instance.
I'm studying xen for a few weeks and my plan is:
run xen for embeded automotive use case with dom0less, null scheduler, small code base for safety certified maybe a plus(not sure whether can do this).
Quoted 15 lines
Quoted 15 lines
Signed-off-by Baodong Chen <[email protected]>---
xen/include/xen/sched-if.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)xen/include/xen/sched-if.h +0
-0@@ -213,9 +213,9 @@ static inline void sched_free_domdata(const struct scheduler *s,struct cpupool
{
intcpupool_id;
Quoted 9 lines
Quoted 8 lines
+ unsigned int
n_dom;
cpumask_var_t cpu_valid; /* all cpus assigned to pool */ struct cpupool *next;
- unsigned intn_dom;
struct scheduler *sched;
atomic_t refcnt;
};
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Hi,
Quoted 9 lines · chenbaodong
Quoted 7 lines · Julien Grall
Hi,
Quoted 1 line · Baodong Chen
Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.
I am happy with the change, although AFAIK cpupool is not instantiated that often. Are you planning to have more instantiation of it?
Quoted 7 lines
Quoted 2 lines
Cheers,
No, I'm not planning to create lots of cpupool instance.
I'm studying xen for a few weeks and my plan is:
run xen for embeded automotive use case with dom0less, null scheduler, small code base for safety certified maybe a plus(not sure whether can do this).
FWIW, there are discussion to get Xen safety certified. They are captured on [1].
Cheers,
[1] https://wiki.xenproject.org/wiki/Category:Safety_Certification/FuSa_SIG
Quoted 26 lines
Quoted 26 lines
Quoted 25 lines
Signed-off-by Baodong Chen <[email protected]>---
xen/include/xen/sched-if.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)xen/include/xen/sched-if.h +0
-0@@ -213,9 +213,9 @@ static inline void sched_free_domdata(const struct scheduler *s,struct cpupool
{
intcpupool_id;
+ unsigned intn_dom;
cpumask_var_t cpu_valid; /* all cpus assigned to pool */ struct cpupool *next;
- unsigned intn_dom;
struct scheduler *sched;
atomic_t refcnt;
};
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 18 lines · Julien Grall
Hi,
Quoted 15 lines · chenbaodong
Quoted 9 lines · Julien Grall
Hi,
Quoted 1 line · Baodong Chen
Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.
I am happy with the change, although AFAIK cpupool is not instantiated that often. Are you planning to have more instantiation of it?
Cheers,
No, I'm not planning to create lots of cpupool instance.
I'm studying xen for a few weeks and my plan is:
Quoted 7 lines
Quoted 1 line
run xen for embeded automotive use case with dom0less, null scheduler, small code base for safety certified maybe a plus(not sure whether can do this).
FWIW, there are discussion to get Xen safety certified. They are captured on [1].
Cheers,
[1] https://wiki.xenproject.org/wiki/Category:Safety_Certification/FuSa_SIG
Hello Julien, Thanks for your info.
I will follow the wiki link and see what i can do about safety certification.
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Signed-off-by Baodong Chen <[email protected]>---
xen/include/xen/sched-if.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)xen/include/xen/sched-if.h +0
-0@@ -213,9 +213,9 @@ static inline void sched_free_domdata(const struct scheduler *s,struct cpupool
{
intcpupool_id;
+ unsigned intn_dom;
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
cpumask_var_t cpu_valid; /* all cpus assigned to pool */ struct cpupool *next;
- unsigned intn_dom;
struct scheduler *sched;
atomic_t refcnt;
};
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 31.05.19 at 05:18, <[email protected]> wrote:
Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.
Signed-off-by Baodong Chen <[email protected]>--- xen/include/xen/sched-if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
I've just noticed that this file isn't part of the SCHEDULING maintainer group. Therefore
I'm wondering though whether maintainership of the file shouldn't be adjusted, preferably by moving this (supposedly private) header into xen/common/. I realize there may be some further cleanup needed for this to actually be possible. If there was general consensus about such a step, I could see about actually carrying it out.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 11 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 31.05.19 at 05:18, <[email protected]> wrote:
Thus, sizeof(struct cpupool) will save 8 bytes for 64-bit system.
Signed-off-by Baodong Chen <[email protected]>--- xen/include/xen/sched-if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)I've just noticed that this file isn't part of the SCHEDULING maintainer group. Therefore
Quoted 7 lines
Acked-by Jan Beulich <[email protected]>I'm wondering though whether maintainership of the file shouldn't be adjusted, preferably by moving this (supposedly private) header into xen/common/. I realize there may be some further cleanup needed for this to actually be possible. If there was general consensus about such a step, I could see about actually carrying it out.
I am planning a big scheduling cleanup series after my core scheduling series has been processed. sched-if.h is part of that work.
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel