From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>
This follows up on the virtio-pci discussion and adds a per-domain
option to select the behaviour of accesses to unmapped address ranges.
The new option is trap_unmapped_accesses, it's general but for now
only implemented for ARM.
I'm happy with any name, so if you have better ideas please suggest them!
I've included regenerated golang bindings as a separate patch.
Thanks,
Edgar
ChangeLog:
v4 -> v5:
* Reorder RB and AB tags to chronological order
* Rebase with master
v3 -> v4:
* Reject in x86 arch_sanitise_domain_config
* Add LIBXL_HAVE_TRAP_UNMAPPED_ACCESSES
* Remove "..is only implemented for ARM" from Arm specific documentation
* ARM -> Arm
v2 -> v3:
* Reword descriptions to clarify reads of all bits as ones
* Use GENMASK as GENMASK_ULL not needed
* Style fix in if/else
* Regenerate golang bindings
* Update ocaml bindings
v1 -> v2:
* Rename trap_unmapped_mmio to trap_unmapped_accesses
* Generalize to allow other archs to later support this option
* Change dom0less DT binding from boolean to integer
* Remove changes to autogenerated go bindings
Edgar E. Iglesias (5):
xen/arm: Add way to disable traps on accesses to unmapped addresses
xen/arm: dom0less: Add trap-unmapped-accesses
tools/arm: Add the trap_unmapped_accesses xl config option
tools/ocaml: Update bindings for CDF_TRAP_UNMAPPED_ACCESSES
tools/golang: Regenerate bindings for trap_unmapped_accesses
docs/man/xl.cfg.5.pod.in | 9 +++++++
docs/misc/arm/device-tree/booting.txt | 10 ++++++++
tools/golang/xenlight/helpers.gen.go | 6 +++++
tools/golang/xenlight/types.gen.go | 1 +
tools/include/libxl.h | 7 +++++
tools/libs/light/libxl_arm.c | 3 +++
tools/libs/light/libxl_create.c | 3 +++
tools/libs/light/libxl_types.idl | 1 +
tools/libs/light/libxl_x86.c | 6 +++++
tools/ocaml/libs/xc/xenctrl.ml | 1 +
tools/ocaml/libs/xc/xenctrl.mli | 1 +
tools/xl/xl_parse.c | 3 +++
xen/arch/arm/dom0less-build.c | 10 ++++++++
xen/arch/arm/domain.c | 3 ++-
xen/arch/arm/domain_build.c | 3 ++-
xen/arch/arm/io.c | 37 +++++++++++++++++++++++++--
xen/arch/x86/domain.c | 7 +++++
xen/common/domain.c | 3 ++-
xen/include/public/domctl.h | 4 ++-
19 files changed, 112 insertions(+), 6 deletions(-)
--
2.43.0