Skip to content

Introduce generic headers

Oleksii Kurochko xen-devel 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest7 patches 15 repliesIn review
  2. v87 patches 17 repliesSuperseded
  3. v77 patches 6 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v69 patches31 repliesSuperseded
v57 patches13 repliesSuperseded
v414 patches42 repliesSuperseded
v314 patches28 repliesSuperseded
v215 patches31 repliesSuperseded
v129 patches82 repliesSuperseded

Changes in v9 from the cover letter

- Drop the patch "[PATCH v8 1/7] automation: ensure values in EXTRA_FIXED_RANDCONFIG are separated by new line" as better solution was suggested.
- introduce new follow-up patch for "xen/asm-generic: introduce generic device.h" ( it can be merged with patches 4,5 of this patch series ).
- All other changes please find in revision log to a patch.
---

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7automation: introduce fixed randconfig for RISC-Vautomation/gitlab-ci/build.yaml+10 -43 replies
2/7xen/asm-generic: introduce stub header monitor.hxen/arch/arm/include/asm/monitor.h xen/arch/ppc/include/asm/monitor.h xen/arch/ppc/stubs.c +1 more+67 -582 replies
3/7xen/asm-generic: ifdef inclusion of <asm/mem_access.h>xen/arch/arm/p2m.c xen/arch/arm/traps.c xen/arch/ppc/configs/ppc64_defconfig +3 more+6 -51 reply
4/7xen/asm-generic: introduce generic device.hxen/include/asm-generic/device.h+145 -01 reply
5/7xen/arm: switch Arm to use asm-generic/device.hxen/arch/arm/device.c xen/arch/arm/domain_build.c xen/arch/arm/gic-v2.c +5 more+16 -1320 replies
6/7xen/ppc: switch PPC to use asm-generic/device.hxen/arch/ppc/include/asm/Makefile xen/arch/ppc/include/asm/device.h+1 -532 replies
7/7xen/asm-generic: fold struct devarch into struct devxen/drivers/passthrough/arm/smmu.c xen/include/asm-generic/device.h+7 -136 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchTamas K LengyelJulien GrallJan BeulichMichal OrzelShawn AnastasioStefano Stabellini
1/7R-b A-b
2/7A-b A-b A-b A-b
3/7A-b A-b A-b
4/7A-b A-b
5/7R-b
6/7A-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v9 thread

Cover letter [PATCH v9 0/7] Introduce generic headers

Some headers are common between several architectures, so the current patch series provide them.

Another one reason to have them as generic is a simplification of adding support necessary to make a complete Xen build as it was/is being done in the patch series [1] and [2].

Also, instead of providing generic/stub headers, it was used "#ifdef CONFIG_* #include <asm/*.h> #endif" instead of providing empty headers.

This patch series is a pre-requisite for "Enable build of full Xen for RISC-V" [3].

[1] https://lore.kernel.org/xen-devel/[email protected]/
[2] https://lore.kernel.org/xen-devel/[email protected]/
[3] https://lore.kernel.org/xen-devel/[email protected]/
---
Changes in V9:
- Drop the patch "[PATCH v8 1/7] automation: ensure values in EXTRA_FIXED_RANDCONFIG are separated by new line" as better solution was suggested.
- introduce new follow-up patch for "xen/asm-generic: introduce generic device.h" ( it can be merged with patches 4,5 of this patch series ).
- All other changes please find in revision log to a patch.
---
Changes in V8:
- Add Acked-by Acked-by: Tamas K Lengyel <[email protected]> for patches:
[PATCH v7 4/7] xen/asm-generic: ifdef inclusion of <asm/mem_access.h> [PATCH v7 3/7] xen/asm-generic: introduce stub header monitor.h
- Update the commit messages for patches:
[PATCH v7 5/7] xen/asm-generic: introduce generic device.h
[PATCH v7 6/7] xen/arm: switch Arm to use asm-generic/device.h
- Drop #ifdef HAS_PCI in asm-generic/device.h to be consistent with other pci-related things in the header.
- Code styles fixes.
---
Changes in V7:
- The following patches were dropped because of rebasing as they were merged to staging:
- [PATCH v6 3/9] xen/asm-generic: introduce generic div64.h header
- [PATCH v6 6/9] xen/asm-generic: introduce stub header softirq.h
- [PATCH v6 7/9] xen: ifdef inclusion of <asm/grant_table.h> in <xen/grant_table.h>
- [PATCH v6 8/9] xen/asm-generic: ifdef inclusion of <asm/mem_access.h>
- [PATCH v6 5/9] xen/asm-generic: introduce stub header numa.h was dropped becaus of the patch: "[PATCH v2] NUMA: no need for asm/numa.h when !NUMA"
- Drop definition of arch_monitor_domctl_event for PPC.
- define arch_monitor_domctl_event in asm-generic/monitor.h.
- Add "define HAS_ARCH_MONITOR_DOMCTL_EVENT" in arm/.../monitor.h as it has arch specific implementation.
- keeping DEVICE_PCI_HOSTBRIDGE available for every build based on the reply:

    https://lore.kernel.org/xen-devel/[email protected]/

- add comment above enum device_type.h with explanation about DEV_TYPE_MAX.
- drop #ifdef HAS_PCI around "(device_get_class(dev) == DEVICE_PCI_HOSTBRIDGE))" in ARM code.
- separate patch "[PATCH v6 9/9] xen/asm-generic: introduce generic device.h" into 3 patches.
---
Changes in V6:
- Fix the build script to work properly with EXTRA_FIXED_RANDCONFIG.
- Introduce separate randconfig yaml with fixed configs for RISC-V.
- Disable CONFIG_GRANT_TABLE and CONFIG_MEM_ACCESS for PPC and RISC-V.
- Remove change in Kconfig/common for CONFIG_GRANT_TABLE and CONFIG_MEM_ACCESS.
- Rebase on top of the latest staging.
---
Changes in V5:
- Update the patch series message as patch related to delay.h was merged.
- Rebase on top of staging because half of the patches of the patch series were
merged to staging branch.
- Add A-by for some of the patches.
- Add "depends on X86 || Arm" for CONFIG_GRANT_TABLE and CONFIG_MEM_ACCESS to be
sure it won't be turned on by randconfig in CI.
- Partly switch Arm and PPC to asm-generic/monitor.h.
- Some other minor changes
---
Changes in V4:
- Update the cover letter message
- Add Reviewed-by/Acked-by for patches:
[PATCH v3 01/14] xen/asm-generic: introduce stub header paging.h
[PATCH v3 03/14] xen/asm-generic: introduce generic hypercall.h
[PATCH v3 04/14] xen/asm-generic: introduce generic header iocap.h
[PATCH v3 05/14] xen/asm-generic: introduce stub header <asm/random.h>
[PATCH v3 06/14] xen/asm-generic: introduce generic header percpu.h
[PATCH v3 07/14] xen/asm-generic: introduce generalized hardirq.h
[PATCH v3 08/14] xen/asm-generic: introduce generic div64.h header
[PATCH v3 09/14] xen/asm-generic: introduce generic header altp2m.h
[PATCH v3 10/14] xen/asm-generic: introduce stub header monitor.h
[PATCH v3 11/14] xen/asm-generic: introduce stub header numa.h
[PATCH v3 12/14] xen/asm-generic: introduce stub header softirq.h
- Fix some code style and minor issues.
- Use asm-generic version of device.h for Arm and PPC.
---
Changes in V3:
- Update the commit message of the cover letter.
- Drop the following patch as it can be arch-specific enough:
* [PATCH v2 09/15] xen/asm-generic: introduce generic header smp.h
- Drop correspondent arch specific headers and use asm-generic version of
a header.
- Back to the patch series patches:
* xen: ifdef inclusion of <asm/grant_table.h> in <xen/grant_table.h>
* xen/asm-generic: ifdef inclusion of <asm/mem_access.h>
---
Changes in V2:
- Update the commit message of the cover letter.
- Drop the following patches because they are arch-specific or was sent as a separate patch:
- xen/asm-generic: introduce stub header event.h
- xen/asm-generic: introduce stub header spinlock.h
- [PATCH v1 03/29] xen/asm-generic: introduce stub header cpufeature.h
- [PATCH v1 07/29] xen/asm-generic: introduce stub header guest_atomics.h
- [PATCH v1 10/29] xen/asm-generic: introduce stub header iommu.h
- [PATCH v1 12/29] xen/asm-generic: introduce stub header pci.h because separate patch was sent [5]
- [PATCH v1 14/29] xen/asm-generic: introduce stub header setup.h
- [PATCH v1 15/29] xen/asm-generic: introduce stub header xenoprof.h because of [3].
- [PATCH v1 16/29] xen/asm-generic: introduce stub header flushtlb.h
- [PATCH v1 22/29] xen/asm-generic: introduce stub header delay.h because of [3]
- [PATCH v1 23/29] xen/asm-generic: introduce stub header domain.h
- [PATCH v1 24/29] xen/asm-generic: introduce stub header guest_access.h
- [PATCH v1 25/29] xen/asm-generic: introduce stub header irq.h ( probably not so generic as I expected, I'll back to it if it will be necessary in the future )
- [PATCH v1 28/29] xen/asm-generic: introduce stub header p2m.h ( probably not so generic as I expected, I'll back to it if it will be necessary in the future )
- For the rest of the patches please look at changes for each patch separately.
---

Oleksii Kurochko (7):
automation: introduce fixed randconfig for RISC-V xen/asm-generic: introduce stub header monitor.h xen/asm-generic: ifdef inclusion of <asm/mem_access.h> xen/asm-generic: introduce generic device.h xen/arm: switch Arm to use asm-generic/device.h xen/ppc: switch PPC to use asm-generic/device.h xen/asm-generic: fold struct devarch into struct dev

 automation/gitlab-ci/build.yaml               |  14 ++-
 xen/arch/arm/device.c                         |   5 +
 xen/arch/arm/domain_build.c                   |   2 +-
 xen/arch/arm/gic-v2.c                         |   4 +-
 xen/arch/arm/gic-v3.c                         |   6 +-
 xen/arch/arm/gic.c                            |   4 +-
 xen/arch/arm/include/asm/Makefile             |   1 +
 xen/arch/arm/include/asm/monitor.h            |  25 +---
 xen/arch/arm/p2m.c                            |   1 +
 xen/arch/arm/traps.c                          |   1 +
 xen/arch/arm/xen.lds.S                        |   2 +
 xen/arch/ppc/configs/ppc64_defconfig          |   1 +
 xen/arch/ppc/include/asm/Makefile             |   1 +
 xen/arch/ppc/include/asm/device.h             |  53 --------
 xen/arch/ppc/include/asm/mem_access.h         |   5 -
 xen/arch/ppc/include/asm/monitor.h            |  28 +----
 xen/arch/ppc/stubs.c                          |   8 --
 xen/arch/riscv/configs/tiny64_defconfig       |   1 +
 xen/drivers/passthrough/arm/smmu.c            |  12 +-
 .../asm => include/asm-generic}/device.h      | 113 ++++++++++--------
 xen/include/asm-generic/monitor.h             |  64 ++++++++++
 xen/include/xen/mem_access.h                  |   2 +
 22 files changed, 170 insertions(+), 183 deletions(-)
 delete mode 100644 xen/arch/ppc/include/asm/device.h
 delete mode 100644 xen/arch/ppc/include/asm/mem_access.h
 rename xen/{arch/arm/include/asm => include/asm-generic}/device.h (70%)
 create mode 100644 xen/include/asm-generic/monitor.h
Signature · 1 line
2.43.0