|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2 0/4] Move alloc/free_vcpu_struct() to common code
As it was suggested in [1] it would be better to allocate one page for struct
vcpu for all arch-es. To do that it is needed to align Arm code to allocate
one page (as there is a case(when CONFIG_NEW_VGIC=y) when Arm64 will require
to allocate two pages). As a result, the following patches for Arm have been
introduced:
- [PATCH v2 1/4] xen/arm: optimize the size of struct vcpu
- [PATCH v2 2/4] xen/arm: drop MAX_PAGES_PER_VCPU
This patches are dependency for:
- [PATCH v2 3/4] xen: move alloc/free_vcpu_struct() to common code
Also, as a part of this patch series another clean up is done which makes
{alloc,free}_domain_struct() static.
[1]
https://lore.kernel.org/xen-devel/f8a9be3a-a0c6-496a-806f-40760dca5aee@xxxxxxxx/T/#m275dfcbdccef0461fa9a8acef072403f18091768
---
Changes in v2:
- Introduce new patches for Arm:
- [PATCH v2 1/4] xen/arm: optimize the size of struct vcpu
- [PATCH v2 2/4] xen/arm: drop MAX_PAGES_PER_VCPU
to allocate one page for struct vcpu in common code for all the arch-es.
- Introduce patch to clean up xen/domain.h a little bit:
- [PATCH v2 4/4] xen/common: make {alloc,free}_domain_struct() static
- Address the comments from v1:
- [PATCH v2 3/4] xen: move alloc/free_vcpu_struct() to common code
---
Oleksii Kurochko (4):
xen/arm: optimize the size of struct vcpu
xen/arm: drop MAX_PAGES_PER_VCPU
xen: move alloc/free_vcpu_struct() to common code
xen/common: make {alloc,free}_domain_struct() static
xen/arch/arm/domain.c | 32 --------------
xen/arch/arm/gic-vgic.c | 48 ++++++++++-----------
xen/arch/arm/include/asm/domain.h | 2 +-
xen/arch/arm/vgic-v3.c | 34 +++++++--------
xen/arch/arm/vgic.c | 72 +++++++++++++++++--------------
xen/arch/arm/vgic/vgic-init.c | 10 ++++-
xen/arch/arm/vgic/vgic-v2.c | 4 +-
xen/arch/arm/vgic/vgic.c | 50 ++++++++++-----------
xen/arch/ppc/stubs.c | 10 -----
xen/arch/riscv/stubs.c | 10 -----
xen/arch/x86/domain.c | 17 +-------
xen/arch/x86/include/asm/domain.h | 3 ++
xen/common/domain.c | 26 ++++++++++-
xen/include/xen/domain.h | 8 ----
14 files changed, 145 insertions(+), 181 deletions(-)
--
2.52.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |