History log of /kvm-unit-tests/lib/arm/asm/ (Results 1 – 25 of 133)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
0cc3a35122-Feb-2025 Sean Christopherson <seanjc@google.com>

lib: Use __ASSEMBLER__ instead of __ASSEMBLY__

Convert all non-x86 #ifdefs from __ASSEMBLY__ to __ASSEMBLER__, and remove
all manual __ASSEMBLY__ #defines. __ASSEMBLY_ was inherited blindly from
th

lib: Use __ASSEMBLER__ instead of __ASSEMBLY__

Convert all non-x86 #ifdefs from __ASSEMBLY__ to __ASSEMBLER__, and remove
all manual __ASSEMBLY__ #defines. __ASSEMBLY_ was inherited blindly from
the Linux kernel, and must be manually defined, e.g. through build rules
or with the aforementioned explicit #defines in assembly code.

__ASSEMBLER__ on the other hand is automatically defined by the compiler
when preprocessing assembly, i.e. doesn't require manually #defines for
the code to function correctly.

Ignore x86, as x86 doesn't actually rely on __ASSEMBLY__ at the moment,
and is undergoing a parallel cleanup.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Andrew Jones <andrew.jones@linux.dev>
Message-ID: <20250222014526.2302653-1-seanjc@google.com>
[thuth: Fix three more occurances in libfdt.h and sbi-tests.h]
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...


/kvm-unit-tests/.editorconfig
/kvm-unit-tests/.gitlab-ci.yml
/kvm-unit-tests/Makefile
/kvm-unit-tests/README.md
/kvm-unit-tests/arm/Makefile.arm64
/kvm-unit-tests/arm/cstart.S
/kvm-unit-tests/arm/cstart64.S
/kvm-unit-tests/arm/fpu.c
/kvm-unit-tests/arm/pmu.c
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/configure
arch_gicv3.h
assembler.h
gic-v2.h
gic-v3.h
gic.h
page.h
ptrace.h
sysreg.h
thread_info.h
timer.h
/kvm-unit-tests/lib/arm64/asm/arch_gicv3.h
/kvm-unit-tests/lib/arm64/asm/assembler.h
/kvm-unit-tests/lib/arm64/asm/esr.h
/kvm-unit-tests/lib/arm64/asm/page.h
/kvm-unit-tests/lib/arm64/asm/processor.h
/kvm-unit-tests/lib/arm64/asm/ptrace.h
/kvm-unit-tests/lib/arm64/asm/sysreg.h
/kvm-unit-tests/lib/arm64/processor.c
/kvm-unit-tests/lib/asm-generic/page.h
/kvm-unit-tests/lib/auxinfo.h
/kvm-unit-tests/lib/cpumask.h
/kvm-unit-tests/lib/libcflat.h
/kvm-unit-tests/lib/libfdt/fdt.h
/kvm-unit-tests/lib/limits.h
/kvm-unit-tests/lib/linux/compiler.h
/kvm-unit-tests/lib/linux/const.h
/kvm-unit-tests/lib/memregions.h
/kvm-unit-tests/lib/on-cpus.c
/kvm-unit-tests/lib/on-cpus.h
/kvm-unit-tests/lib/powerpc/asm/hcall.h
/kvm-unit-tests/lib/powerpc/asm/processor.h
/kvm-unit-tests/lib/powerpc/asm/rtas.h
/kvm-unit-tests/lib/ppc64/asm/page.h
/kvm-unit-tests/lib/ppc64/asm/ptrace.h
/kvm-unit-tests/lib/ppc64/asm/vpa.h
/kvm-unit-tests/lib/rand.c
/kvm-unit-tests/lib/rand.h
/kvm-unit-tests/lib/report.c
/kvm-unit-tests/lib/riscv/asm-offsets.c
/kvm-unit-tests/lib/riscv/asm/asm.h
/kvm-unit-tests/lib/riscv/asm/bug.h
/kvm-unit-tests/lib/riscv/asm/csr.h
/kvm-unit-tests/lib/riscv/asm/delay.h
/kvm-unit-tests/lib/riscv/asm/io.h
/kvm-unit-tests/lib/riscv/asm/mmu.h
/kvm-unit-tests/lib/riscv/asm/page.h
/kvm-unit-tests/lib/riscv/asm/processor.h
/kvm-unit-tests/lib/riscv/asm/sbi.h
/kvm-unit-tests/lib/riscv/asm/setup.h
/kvm-unit-tests/lib/riscv/asm/stack.h
/kvm-unit-tests/lib/riscv/asm/timer.h
/kvm-unit-tests/lib/riscv/delay.c
/kvm-unit-tests/lib/riscv/mmu.c
/kvm-unit-tests/lib/riscv/processor.c
/kvm-unit-tests/lib/riscv/sbi.c
/kvm-unit-tests/lib/riscv/setjmp.S
/kvm-unit-tests/lib/riscv/setup.c
/kvm-unit-tests/lib/riscv/smp.c
/kvm-unit-tests/lib/riscv/stack.c
/kvm-unit-tests/lib/riscv/timer.c
/kvm-unit-tests/lib/s390x/asm/arch_def.h
/kvm-unit-tests/lib/s390x/asm/cpacf.h
/kvm-unit-tests/lib/s390x/asm/facility.h
/kvm-unit-tests/lib/s390x/asm/sie-arch.h
/kvm-unit-tests/lib/s390x/sie-icpt.c
/kvm-unit-tests/lib/s390x/sie-icpt.h
/kvm-unit-tests/lib/s390x/sie.c
/kvm-unit-tests/lib/s390x/sie.h
/kvm-unit-tests/lib/s390x/snippet-exit.h
/kvm-unit-tests/lib/setjmp.h
/kvm-unit-tests/lib/stack.c
/kvm-unit-tests/lib/stack.h
/kvm-unit-tests/lib/x86/apic-defs.h
/kvm-unit-tests/lib/x86/apic.h
/kvm-unit-tests/lib/x86/asm/page.h
/kvm-unit-tests/lib/x86/atomic.h
/kvm-unit-tests/lib/x86/desc.c
/kvm-unit-tests/lib/x86/desc.h
/kvm-unit-tests/lib/x86/msr.h
/kvm-unit-tests/lib/x86/pmu.c
/kvm-unit-tests/lib/x86/processor.h
/kvm-unit-tests/lib/x86/setup.c
/kvm-unit-tests/lib/x86/smp.c
/kvm-unit-tests/lib/x86/smp.h
/kvm-unit-tests/powerpc/cstart64.S
/kvm-unit-tests/riscv/Makefile
/kvm-unit-tests/riscv/cstart.S
/kvm-unit-tests/riscv/run
/kvm-unit-tests/riscv/sbi-asm.S
/kvm-unit-tests/riscv/sbi-fwft.c
/kvm-unit-tests/riscv/sbi-tests.h
/kvm-unit-tests/riscv/sbi.c
/kvm-unit-tests/riscv/unittests.cfg
/kvm-unit-tests/s390x/Makefile
/kvm-unit-tests/s390x/cpu-sie.S
/kvm-unit-tests/s390x/cpu.S
/kvm-unit-tests/s390x/diag258.c
/kvm-unit-tests/s390x/edat.c
/kvm-unit-tests/s390x/pv-diags.c
/kvm-unit-tests/s390x/pv-icptcode.c
/kvm-unit-tests/s390x/pv-ipl.c
/kvm-unit-tests/s390x/sie-dat.c
/kvm-unit-tests/s390x/snippets/Makefile
/kvm-unit-tests/s390x/snippets/c/sie-dat.c
/kvm-unit-tests/s390x/snippets/c/stfle.c
/kvm-unit-tests/s390x/snippets/lib/snippet-exit.h
/kvm-unit-tests/s390x/stfle-sie.c
/kvm-unit-tests/s390x/unittests.cfg
/kvm-unit-tests/scripts/check-patch.py
/kvm-unit-tests/scripts/checkpatch.pl
/kvm-unit-tests/x86/Makefile.common
/kvm-unit-tests/x86/Makefile.i386
/kvm-unit-tests/x86/Makefile.x86_64
/kvm-unit-tests/x86/asyncpf.c
/kvm-unit-tests/x86/cstart.S
/kvm-unit-tests/x86/cstart64.S
/kvm-unit-tests/x86/debug.c
/kvm-unit-tests/x86/efi/efistart64.S
/kvm-unit-tests/x86/la57.c
/kvm-unit-tests/x86/lam.c
/kvm-unit-tests/x86/pcid.c
/kvm-unit-tests/x86/pmu.c
/kvm-unit-tests/x86/pmu_lbr.c
/kvm-unit-tests/x86/pmu_pebs.c
/kvm-unit-tests/x86/trampolines.S
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmx_tests.c
cddb18bc12-Apr-2024 Alexandru Elisei <alexandru.elisei@arm.com>

arm64: Expand SMCCC arguments and return values

PSCI uses the SMC Calling Convention (SMCCC) to communicate with the higher
level software. PSCI uses at most 4 arguments and expend only one return
v

arm64: Expand SMCCC arguments and return values

PSCI uses the SMC Calling Convention (SMCCC) to communicate with the higher
level software. PSCI uses at most 4 arguments and expend only one return
value. However, SMCCC has provisions for more arguments (upto 17 depending
on the SMCCC version) and upto 10 distinct return values.

We are going to be adding tests that make use of it, so add support for the
extended number of arguments and return values.

Also rename the SMCCC functions to generic, non-PSCI names, so they
can be used for Realm services.

Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Co-developed-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
[Fixed EFI compile error.]
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>

show more ...

e521b10712-Apr-2024 Suzuki K Poulose <suzuki.poulose@arm.com>

arm: Add necessary header files in asm/pgtable.h

We use memalign() and other symbols defined elsewhere without explicitly including
them, which could cause build failures. Add the necessary header f

arm: Add necessary header files in asm/pgtable.h

We use memalign() and other symbols defined elsewhere without explicitly including
them, which could cause build failures. Add the necessary header files.

Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>

show more ...


/kvm-unit-tests/.gitlab-ci.yml
/kvm-unit-tests/.shellcheckrc
/kvm-unit-tests/.travis.yml
/kvm-unit-tests/MAINTAINERS
/kvm-unit-tests/Makefile
/kvm-unit-tests/README.md
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/efi/crt0-efi-aarch64.S
/kvm-unit-tests/arm/efi/elf_aarch64_efi.lds
/kvm-unit-tests/arm/efi/run
/kvm-unit-tests/arm/gic.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/sieve.c
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/common/memory-verify.c
/kvm-unit-tests/common/selftest-migration.c
/kvm-unit-tests/common/sieve.c
/kvm-unit-tests/configure
/kvm-unit-tests/docs/unittests.txt
pgtable.h
/kvm-unit-tests/lib/arm/io.c
/kvm-unit-tests/lib/arm/mmu.c
/kvm-unit-tests/lib/arm/setup.c
/kvm-unit-tests/lib/arm/stack.c
/kvm-unit-tests/lib/arm64/asm/processor.h
/kvm-unit-tests/lib/arm64/processor.c
/kvm-unit-tests/lib/arm64/stack.c
/kvm-unit-tests/lib/ctype.h
/kvm-unit-tests/lib/efi.c
/kvm-unit-tests/lib/elf.h
/kvm-unit-tests/lib/libcflat.h
/kvm-unit-tests/lib/linux/efi.h
/kvm-unit-tests/lib/memregions.c
/kvm-unit-tests/lib/memregions.h
/kvm-unit-tests/lib/migrate.c
/kvm-unit-tests/lib/migrate.h
/kvm-unit-tests/lib/powerpc/asm/hcall.h
/kvm-unit-tests/lib/powerpc/asm/ppc_asm.h
/kvm-unit-tests/lib/powerpc/asm/processor.h
/kvm-unit-tests/lib/powerpc/asm/reg.h
/kvm-unit-tests/lib/powerpc/asm/rtas.h
/kvm-unit-tests/lib/powerpc/asm/setup.h
/kvm-unit-tests/lib/powerpc/asm/smp.h
/kvm-unit-tests/lib/powerpc/asm/time.h
/kvm-unit-tests/lib/powerpc/hcall.c
/kvm-unit-tests/lib/powerpc/io.c
/kvm-unit-tests/lib/powerpc/io.h
/kvm-unit-tests/lib/powerpc/processor.c
/kvm-unit-tests/lib/powerpc/rtas.c
/kvm-unit-tests/lib/powerpc/setup.c
/kvm-unit-tests/lib/powerpc/smp.c
/kvm-unit-tests/lib/ppc64/asm-offsets.c
/kvm-unit-tests/lib/ppc64/asm/atomic.h
/kvm-unit-tests/lib/ppc64/asm/barrier.h
/kvm-unit-tests/lib/ppc64/asm/mmu.h
/kvm-unit-tests/lib/ppc64/asm/opal.h
/kvm-unit-tests/lib/ppc64/asm/page.h
/kvm-unit-tests/lib/ppc64/asm/pgtable-hwdef.h
/kvm-unit-tests/lib/ppc64/asm/pgtable.h
/kvm-unit-tests/lib/ppc64/asm/ptrace.h
/kvm-unit-tests/lib/ppc64/asm/reg.h
/kvm-unit-tests/lib/ppc64/asm/stack.h
/kvm-unit-tests/lib/ppc64/asm/time.h
/kvm-unit-tests/lib/ppc64/mmu.c
/kvm-unit-tests/lib/ppc64/opal-calls.S
/kvm-unit-tests/lib/ppc64/opal.c
/kvm-unit-tests/lib/ppc64/stack.c
/kvm-unit-tests/lib/report.c
/kvm-unit-tests/lib/riscv/asm-offsets.c
/kvm-unit-tests/lib/riscv/asm/csr.h
/kvm-unit-tests/lib/riscv/asm/io.h
/kvm-unit-tests/lib/riscv/asm/isa.h
/kvm-unit-tests/lib/riscv/asm/memory_areas.h
/kvm-unit-tests/lib/riscv/asm/mmu.h
/kvm-unit-tests/lib/riscv/asm/page.h
/kvm-unit-tests/lib/riscv/asm/pgtable.h
/kvm-unit-tests/lib/riscv/asm/processor.h
/kvm-unit-tests/lib/riscv/asm/setup.h
/kvm-unit-tests/lib/riscv/asm/smp.h
/kvm-unit-tests/lib/riscv/isa.c
/kvm-unit-tests/lib/riscv/mmu.c
/kvm-unit-tests/lib/riscv/processor.c
/kvm-unit-tests/lib/riscv/setup.c
/kvm-unit-tests/lib/riscv/smp.c
/kvm-unit-tests/lib/riscv/stack.c
/kvm-unit-tests/lib/s390x/asm/sigp.h
/kvm-unit-tests/lib/s390x/asm/uv.h
/kvm-unit-tests/lib/s390x/css.h
/kvm-unit-tests/lib/s390x/io.c
/kvm-unit-tests/lib/s390x/stack.c
/kvm-unit-tests/lib/s390x/uv.c
/kvm-unit-tests/lib/s390x/uv.h
/kvm-unit-tests/lib/stack.c
/kvm-unit-tests/lib/stack.h
/kvm-unit-tests/lib/string.c
/kvm-unit-tests/lib/string.h
/kvm-unit-tests/lib/vmalloc.c
/kvm-unit-tests/lib/vmalloc.h
/kvm-unit-tests/lib/x86/apic.h
/kvm-unit-tests/lib/x86/asm/bitops.h
/kvm-unit-tests/lib/x86/desc.h
/kvm-unit-tests/lib/x86/pmu.h
/kvm-unit-tests/lib/x86/processor.h
/kvm-unit-tests/lib/x86/stack.c
/kvm-unit-tests/lib/x86/vm.h
/kvm-unit-tests/powerpc/Makefile.common
/kvm-unit-tests/powerpc/Makefile.ppc64
/kvm-unit-tests/powerpc/atomics.c
/kvm-unit-tests/powerpc/cstart64.S
/kvm-unit-tests/powerpc/emulator.c
/kvm-unit-tests/powerpc/interrupts.c
/kvm-unit-tests/powerpc/memory-verify.c
/kvm-unit-tests/powerpc/mmu.c
/kvm-unit-tests/powerpc/run
/kvm-unit-tests/powerpc/selftest-migration.c
/kvm-unit-tests/powerpc/selftest.c
/kvm-unit-tests/powerpc/sieve.c
/kvm-unit-tests/powerpc/smp.c
/kvm-unit-tests/powerpc/spapr_vpa.c
/kvm-unit-tests/powerpc/sprs.c
/kvm-unit-tests/powerpc/timebase.c
/kvm-unit-tests/powerpc/tm.c
/kvm-unit-tests/powerpc/unittests.cfg
/kvm-unit-tests/riscv/Makefile
/kvm-unit-tests/riscv/cstart.S
/kvm-unit-tests/riscv/efi/crt0-efi-riscv64.S
/kvm-unit-tests/riscv/efi/elf_riscv64_efi.lds
/kvm-unit-tests/riscv/efi/reloc_riscv64.c
/kvm-unit-tests/riscv/efi/run
/kvm-unit-tests/riscv/flat.lds
/kvm-unit-tests/riscv/run
/kvm-unit-tests/riscv/sbi.c
/kvm-unit-tests/riscv/sieve.c
/kvm-unit-tests/riscv/unittests.cfg
/kvm-unit-tests/run_tests.sh
/kvm-unit-tests/s390x/Makefile
/kvm-unit-tests/s390x/cmm.c
/kvm-unit-tests/s390x/emulator.c
/kvm-unit-tests/s390x/memory-verify.c
/kvm-unit-tests/s390x/migration-cmm.c
/kvm-unit-tests/s390x/migration-skey.c
/kvm-unit-tests/s390x/migration.c
/kvm-unit-tests/s390x/mvpg.c
/kvm-unit-tests/s390x/run
/kvm-unit-tests/s390x/sclp.c
/kvm-unit-tests/s390x/selftest-migration.c
/kvm-unit-tests/s390x/selftest.c
/kvm-unit-tests/s390x/sieve.c
/kvm-unit-tests/s390x/snippets/c/flat.lds.S
/kvm-unit-tests/s390x/snippets/c/sie-dat.c
/kvm-unit-tests/s390x/unittests.cfg
/kvm-unit-tests/scripts/arch-run.bash
/kvm-unit-tests/scripts/common.bash
/kvm-unit-tests/scripts/mkstandalone.sh
/kvm-unit-tests/scripts/runtime.bash
/kvm-unit-tests/scripts/s390x/func.bash
/kvm-unit-tests/x86/asyncpf.c
/kvm-unit-tests/x86/debug.c
/kvm-unit-tests/x86/hyperv.h
/kvm-unit-tests/x86/hyperv_clock.c
/kvm-unit-tests/x86/hyperv_connections.c
/kvm-unit-tests/x86/hyperv_stimer.c
/kvm-unit-tests/x86/hyperv_synic.c
/kvm-unit-tests/x86/msr.c
/kvm-unit-tests/x86/pmu.c
/kvm-unit-tests/x86/pmu_lbr.c
/kvm-unit-tests/x86/pmu_pebs.c
/kvm-unit-tests/x86/sieve.c
/kvm-unit-tests/x86/svm.h
/kvm-unit-tests/x86/svm_tests.c
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmexit.c
/kvm-unit-tests/x86/vmware_backdoors.c
/kvm-unit-tests/x86/vmx.c
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
2479ae5019-Jan-2024 Andrew Jones <andrew.jones@linux.dev>

arm/arm64: Share memregions

arm/arm64 (and to a small extent powerpc) have memory regions which
get built from hardware descriptions (DT/ACPI/EFI) and then used to
build page tables. Move memregions

arm/arm64: Share memregions

arm/arm64 (and to a small extent powerpc) have memory regions which
get built from hardware descriptions (DT/ACPI/EFI) and then used to
build page tables. Move memregions to common code, tweaking the API
a bit at the same time, e.g. change 'mem_region' to 'memregions'.
The biggest change is there is now a default number of memory regions
which, if too small, should be overridden at setup time with a new
init function, memregions_init().

Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
Acked-by: Thomas Huth <thuth@redhat.com>

show more ...

b2d5466903-Oct-2023 Andrew Jones <andrew.jones@linux.dev>

arm/arm64: Share on_cpus

Now that the previous patches have cleaned up Arm's on_cpus
implementation we can move it to the common lib where riscv
will share it.

Signed-off-by: Andrew Jones <andrew.j

arm/arm64: Share on_cpus

Now that the previous patches have cleaned up Arm's on_cpus
implementation we can move it to the common lib where riscv
will share it.

Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>

show more ...

0185500403-Oct-2023 Andrew Jones <andrew.jones@linux.dev>

arm/arm64: Remove spinlocks from on_cpu_async

Remove spinlocks from on_cpu_async() by pulling some of their
use into a new function and also by narrowing the locking to a
single on_cpu_info structur

arm/arm64: Remove spinlocks from on_cpu_async

Remove spinlocks from on_cpu_async() by pulling some of their
use into a new function and also by narrowing the locking to a
single on_cpu_info structure by introducing yet another cpumask.

Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>

show more ...

05a7647203-Oct-2023 Andrew Jones <andrew.jones@linux.dev>

arm/arm64: Generalize wfe/sev names in smp.c

Most of Arm's on_cpus() implementation can be shared by any
architecture which has the possible, present, and idle cpumasks,
like riscv does. Rename the

arm/arm64: Generalize wfe/sev names in smp.c

Most of Arm's on_cpus() implementation can be shared by any
architecture which has the possible, present, and idle cpumasks,
like riscv does. Rename the exceptions (wfe/sve) to something
more generic in order to prepare to share the functions.

Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>

show more ...

905b0e6624-Sep-2023 Andrew Jones <andrew.jones@linux.dev>

arm/arm64: Share cpu online, present and idle masks

RISC-V will also use Arm's three cpumasks. These were in smp.h,
but they can be in cpumask.h instead, so move them there, which
is now shared.

Si

arm/arm64: Share cpu online, present and idle masks

RISC-V will also use Arm's three cpumasks. These were in smp.h,
but they can be in cpumask.h instead, so move them there, which
is now shared.

Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>

show more ...

dfc1fec224-Sep-2023 Andrew Jones <andrew.jones@linux.dev>

arm/arm64: Move cpumask.h to common lib

RISC-V will also make use of cpumask.h, so move it to the arch-common
directory.

Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
Reviewed-by: Thomas Hut

arm/arm64: Move cpumask.h to common lib

RISC-V will also make use of cpumask.h, so move it to the arch-common
directory.

Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>

show more ...


/kvm-unit-tests/.gitignore
/kvm-unit-tests/MAINTAINERS
/kvm-unit-tests/Makefile
/kvm-unit-tests/arm/Makefile.arm
/kvm-unit-tests/arm/Makefile.arm64
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/cstart64.S
/kvm-unit-tests/arm/debug.c
/kvm-unit-tests/arm/dummy.c
/kvm-unit-tests/arm/efi/crt0-efi-aarch64.S
/kvm-unit-tests/arm/efi/elf_aarch64_efi.lds
/kvm-unit-tests/arm/efi/reloc_aarch64.c
/kvm-unit-tests/arm/efi/run
/kvm-unit-tests/arm/flat.lds
/kvm-unit-tests/arm/micro-bench.c
/kvm-unit-tests/arm/pmu.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/configure
gic-v2.h
gic-v3.h
gic.h
smp.h
/kvm-unit-tests/lib/arm/io.c
/kvm-unit-tests/lib/arm/mmu.c
/kvm-unit-tests/lib/arm/setup.c
/kvm-unit-tests/lib/arm/smp.c
/kvm-unit-tests/lib/arm64/asm-offsets.c
/kvm-unit-tests/lib/arm64/asm/stack.h
/kvm-unit-tests/lib/arm64/asm/sysreg.h
/kvm-unit-tests/lib/arm64/processor.c
/kvm-unit-tests/lib/arm64/stack.c
/kvm-unit-tests/lib/cpumask.h
/kvm-unit-tests/lib/efi.c
/kvm-unit-tests/lib/elf.h
/kvm-unit-tests/lib/powerpc/asm/handlers.h
/kvm-unit-tests/lib/powerpc/asm/hcall.h
/kvm-unit-tests/lib/powerpc/asm/ppc_asm.h
/kvm-unit-tests/lib/powerpc/asm/processor.h
/kvm-unit-tests/lib/powerpc/handlers.c
/kvm-unit-tests/lib/powerpc/processor.c
/kvm-unit-tests/lib/powerpc/setup.c
/kvm-unit-tests/lib/ppc64/asm/ptrace.h
/kvm-unit-tests/lib/ppc64/asm/vpa.h
/kvm-unit-tests/lib/riscv/.gitignore
/kvm-unit-tests/lib/riscv/asm-offsets.c
/kvm-unit-tests/lib/riscv/asm/asm-offsets.h
/kvm-unit-tests/lib/riscv/asm/barrier.h
/kvm-unit-tests/lib/riscv/asm/csr.h
/kvm-unit-tests/lib/riscv/asm/io.h
/kvm-unit-tests/lib/riscv/asm/page.h
/kvm-unit-tests/lib/riscv/asm/setup.h
/kvm-unit-tests/lib/riscv/asm/spinlock.h
/kvm-unit-tests/lib/riscv/asm/stack.h
/kvm-unit-tests/lib/riscv/io.c
/kvm-unit-tests/lib/riscv/setup.c
/kvm-unit-tests/lib/s390x/asm/arch_def.h
/kvm-unit-tests/lib/s390x/asm/cpacf.h
/kvm-unit-tests/lib/s390x/asm/interrupt.h
/kvm-unit-tests/lib/s390x/asm/mem.h
/kvm-unit-tests/lib/s390x/asm/uv.h
/kvm-unit-tests/lib/s390x/hardware.c
/kvm-unit-tests/lib/s390x/interrupt.c
/kvm-unit-tests/lib/s390x/mmu.c
/kvm-unit-tests/lib/s390x/mmu.h
/kvm-unit-tests/lib/s390x/pv_icptdata.h
/kvm-unit-tests/lib/s390x/sclp-console.c
/kvm-unit-tests/lib/s390x/sclp.c
/kvm-unit-tests/lib/s390x/sclp.h
/kvm-unit-tests/lib/s390x/sie.c
/kvm-unit-tests/lib/s390x/sie.h
/kvm-unit-tests/lib/s390x/snippet.h
/kvm-unit-tests/lib/s390x/stsi.h
/kvm-unit-tests/lib/s390x/uv.c
/kvm-unit-tests/lib/s390x/uv.h
/kvm-unit-tests/lib/stack.c
/kvm-unit-tests/lib/string.h
/kvm-unit-tests/lib/util.h
/kvm-unit-tests/lib/x86/apic.c
/kvm-unit-tests/lib/x86/apic.h
/kvm-unit-tests/lib/x86/desc.c
/kvm-unit-tests/lib/x86/desc.h
/kvm-unit-tests/lib/x86/fault_test.c
/kvm-unit-tests/lib/x86/msr.h
/kvm-unit-tests/lib/x86/processor.h
/kvm-unit-tests/lib/x86/smp.c
/kvm-unit-tests/lib/x86/usermode.c
/kvm-unit-tests/powerpc/Makefile.common
/kvm-unit-tests/powerpc/Makefile.ppc64
/kvm-unit-tests/powerpc/cstart64.S
/kvm-unit-tests/powerpc/emulator.c
/kvm-unit-tests/powerpc/flat.lds
/kvm-unit-tests/powerpc/run
/kvm-unit-tests/powerpc/spapr_hcall.c
/kvm-unit-tests/powerpc/spapr_vpa.c
/kvm-unit-tests/powerpc/sprs.c
/kvm-unit-tests/powerpc/tm.c
/kvm-unit-tests/powerpc/unittests.cfg
/kvm-unit-tests/riscv/Makefile
/kvm-unit-tests/riscv/cstart.S
/kvm-unit-tests/riscv/flat.lds
/kvm-unit-tests/riscv/selftest.c
/kvm-unit-tests/run_tests.sh
/kvm-unit-tests/s390x/Makefile
/kvm-unit-tests/s390x/flat.lds.S
/kvm-unit-tests/s390x/mvpg-sie.c
/kvm-unit-tests/s390x/pv-diags.c
/kvm-unit-tests/s390x/pv-icptcode.c
/kvm-unit-tests/s390x/pv-ipl.c
/kvm-unit-tests/s390x/run
/kvm-unit-tests/s390x/sclp.c
/kvm-unit-tests/s390x/selftest.c
/kvm-unit-tests/s390x/sie-dat.c
/kvm-unit-tests/s390x/sie.c
/kvm-unit-tests/s390x/snippets/asm/icpt-loop.S
/kvm-unit-tests/s390x/snippets/asm/loop.S
/kvm-unit-tests/s390x/snippets/asm/pv-diag-288.S
/kvm-unit-tests/s390x/snippets/asm/pv-diag-308.S
/kvm-unit-tests/s390x/snippets/asm/pv-diag-500.S
/kvm-unit-tests/s390x/snippets/asm/pv-diag-yield.S
/kvm-unit-tests/s390x/snippets/asm/pv-icpt-112.S
/kvm-unit-tests/s390x/snippets/asm/pv-icpt-vir-timing.S
/kvm-unit-tests/s390x/snippets/c/sie-dat.c
/kvm-unit-tests/s390x/snippets/c/sie-dat.h
/kvm-unit-tests/s390x/spec_ex-sie.c
/kvm-unit-tests/s390x/spec_ex.c
/kvm-unit-tests/s390x/topology.c
/kvm-unit-tests/s390x/unittests.cfg
/kvm-unit-tests/s390x/uv-host.c
/kvm-unit-tests/scripts/arch-run.bash
/kvm-unit-tests/scripts/common.bash
/kvm-unit-tests/scripts/kernel-doc
/kvm-unit-tests/scripts/pretty_print_stacks.py
/kvm-unit-tests/scripts/runtime.bash
/kvm-unit-tests/x86/Makefile.common
/kvm-unit-tests/x86/access.c
/kvm-unit-tests/x86/apic.c
/kvm-unit-tests/x86/asyncpf.c
/kvm-unit-tests/x86/cet.c
/kvm-unit-tests/x86/cmpxchg8b.c
/kvm-unit-tests/x86/efi/run
/kvm-unit-tests/x86/emulator.c
/kvm-unit-tests/x86/emulator64.c
/kvm-unit-tests/x86/eventinj.c
/kvm-unit-tests/x86/hyperv_connections.c
/kvm-unit-tests/x86/hyperv_stimer.c
/kvm-unit-tests/x86/hyperv_synic.c
/kvm-unit-tests/x86/intel-iommu.c
/kvm-unit-tests/x86/ioapic.c
/kvm-unit-tests/x86/memory.c
/kvm-unit-tests/x86/msr.c
/kvm-unit-tests/x86/pcid.c
/kvm-unit-tests/x86/pmu.c
/kvm-unit-tests/x86/pmu_pebs.c
/kvm-unit-tests/x86/run
/kvm-unit-tests/x86/svm.c
/kvm-unit-tests/x86/svm.h
/kvm-unit-tests/x86/svm_tests.c
/kvm-unit-tests/x86/taskswitch2.c
/kvm-unit-tests/x86/tscdeadline_latency.c
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmexit.c
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
/kvm-unit-tests/x86/xsave.c
23e1762630-May-2023 Nikos Nikoleris <nikos.nikoleris@arm.com>

arm64: Add a setup sequence for systems that boot through EFI

This change implements an alternative setup sequence for the system
when we are booting through EFI. The memory map is discovered throug

arm64: Add a setup sequence for systems that boot through EFI

This change implements an alternative setup sequence for the system
when we are booting through EFI. The memory map is discovered through
EFI boot services and devices through ACPI.

This change is based on a change initially proposed by
Andrew Jones <drjones@redhat.com>

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Shaoqin Huang <shahuang@redhat.com>
[Changed __ALIGN to ALIGN as pointed out by Nadav Amit.]
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>

show more ...

a823f36a30-May-2023 Andrew Jones <drjones@redhat.com>

arm64: Add a new type of memory type flag MR_F_RESERVED

This will be used by future change to add PTE entries for special EFI
memory regions.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com

arm64: Add a new type of memory type flag MR_F_RESERVED

This will be used by future change to add PTE entries for special EFI
memory regions.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Ricardo Koller <ricarkol@google.com>
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>

show more ...

bb4c17e330-May-2023 Nikos Nikoleris <nikos.nikoleris@arm.com>

arm64: Add support for timer initialization through ACPI

For systems with ACPI support, we can discover timers through the ACPI
GTDT table. This change implements the code to discover timers through

arm64: Add support for timer initialization through ACPI

For systems with ACPI support, we can discover timers through the ACPI
GTDT table. This change implements the code to discover timers through
the GTDT and adds ACPI support in timer_save_state. This change
retains the default behavior; we check if a valid DT is provided, if
not, we try to discover timers using ACPI.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>

show more ...


/kvm-unit-tests/.gitignore
/kvm-unit-tests/.gitlab-ci.yml
/kvm-unit-tests/COPYRIGHT
/kvm-unit-tests/LICENSE
/kvm-unit-tests/MAINTAINERS
/kvm-unit-tests/Makefile
/kvm-unit-tests/arm/Makefile.arm64
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/cstart64.S
/kvm-unit-tests/arm/micro-bench.c
/kvm-unit-tests/arm/pl031.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/timer.c
/kvm-unit-tests/ci/cirrus-ci-fedora.yml
/kvm-unit-tests/ci/cirrus-ci-macos-i386.yml
/kvm-unit-tests/ci/cirrus-ci-macos-x86-64.yml
/kvm-unit-tests/lib/acpi.c
/kvm-unit-tests/lib/acpi.h
timer.h
/kvm-unit-tests/lib/arm/gic.c
/kvm-unit-tests/lib/arm/io.c
/kvm-unit-tests/lib/arm/psci.c
/kvm-unit-tests/lib/arm/setup.c
/kvm-unit-tests/lib/arm/timer.c
/kvm-unit-tests/lib/devicetree.c
/kvm-unit-tests/lib/linux/compiler.h
/kvm-unit-tests/lib/linux/const.h
/kvm-unit-tests/lib/s390x/asm-offsets.c
/kvm-unit-tests/lib/s390x/asm/arch_def.h
/kvm-unit-tests/lib/s390x/interrupt.c
/kvm-unit-tests/lib/s390x/sie.c
/kvm-unit-tests/lib/s390x/sie.h
/kvm-unit-tests/lib/s390x/snippet.h
/kvm-unit-tests/lib/s390x/stack.c
/kvm-unit-tests/lib/x86/apic.h
/kvm-unit-tests/lib/x86/asm/setup.h
/kvm-unit-tests/lib/x86/msr.h
/kvm-unit-tests/lib/x86/processor.h
/kvm-unit-tests/lib/x86/setup.c
/kvm-unit-tests/powerpc/unittests.cfg
/kvm-unit-tests/s390x/Makefile
/kvm-unit-tests/s390x/adtl-status.c
/kvm-unit-tests/s390x/cpu.S
/kvm-unit-tests/s390x/cstart64.S
/kvm-unit-tests/s390x/ex.c
/kvm-unit-tests/s390x/firq.c
/kvm-unit-tests/s390x/flat.lds.S
/kvm-unit-tests/s390x/gs.c
/kvm-unit-tests/s390x/intercept.c
/kvm-unit-tests/s390x/macros.S
/kvm-unit-tests/s390x/migration-skey.c
/kvm-unit-tests/s390x/migration.c
/kvm-unit-tests/s390x/mvpg-sie.c
/kvm-unit-tests/s390x/pv-diags.c
/kvm-unit-tests/s390x/sie.c
/kvm-unit-tests/s390x/skrf.c
/kvm-unit-tests/s390x/smp.c
/kvm-unit-tests/s390x/snippets/asm/flat.lds.S
/kvm-unit-tests/s390x/snippets/asm/macros.S
/kvm-unit-tests/s390x/snippets/c/cstart.S
/kvm-unit-tests/s390x/snippets/c/flat.lds.S
/kvm-unit-tests/s390x/spec_ex.c
/kvm-unit-tests/s390x/unittests.cfg
/kvm-unit-tests/s390x/uv-host.c
/kvm-unit-tests/scripts/pretty_print_stacks.py
/kvm-unit-tests/x86/Makefile.common
/kvm-unit-tests/x86/Makefile.x86_64
/kvm-unit-tests/x86/access.c
/kvm-unit-tests/x86/access.h
/kvm-unit-tests/x86/access_test.c
/kvm-unit-tests/x86/debug.c
/kvm-unit-tests/x86/emulator64.c
/kvm-unit-tests/x86/flat.lds
/kvm-unit-tests/x86/memory.c
/kvm-unit-tests/x86/msr.c
/kvm-unit-tests/x86/pks.c
/kvm-unit-tests/x86/pku.c
/kvm-unit-tests/x86/s3.c
/kvm-unit-tests/x86/syscall.c
/kvm-unit-tests/x86/tsc.c
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmexit.c
/kvm-unit-tests/x86/vmx_tests.c
25ea27e924-Nov-2022 Alexandru Elisei <alexandru.elisei@arm.com>

arm/arm64: mmu: Rename mmu_get_pte() -> follow_pte()

The function get_pte() from mmu.c returns a pointer to the PTE
associated with the requested virtual address, mapping the virtual
address in the

arm/arm64: mmu: Rename mmu_get_pte() -> follow_pte()

The function get_pte() from mmu.c returns a pointer to the PTE
associated with the requested virtual address, mapping the virtual
address in the process if it's not already mapped.

mmu_get_pte() returns a pointer to the PTE if and only if the virtual is
mapped in pgtable, otherwise returns NULL. Rename it to follow_pte() to
avoid any confusion with get_pte(). follow_pte() also matches the name
of Linux kernel function with a similar purpose.

Also remove the mmu_enabled() check from the function, as the purpose of
the function is to get the mapping for the virtual address in the pgtable
supplied as the argument, not to translate the virtual address to a
physical address using the current translation; that's what
virt_to_phys() does.

Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>

show more ...

6afb948103-Feb-2023 Alexandru Elisei <alexandru.elisei@arm.com>

arm/psci: Test that CPU 1 has been successfully brought online

For the PSCI CPU_ON function test, all other CPUs perform a CPU_ON call
that target CPU 1. The test is considered a success if CPU_ON r

arm/psci: Test that CPU 1 has been successfully brought online

For the PSCI CPU_ON function test, all other CPUs perform a CPU_ON call
that target CPU 1. The test is considered a success if CPU_ON returns PSCI
SUCCESS exactly once, and for the rest of the calls PSCI ALREADY_ON.

Enhance the test by checking that CPU 1 is actually online and able to
execute code. Also make the test more robust by checking that the CPU_ON
call returns, instead of assuming that it will always succeed and
hanging indefinitely if it doesn't.

Since the CPU 1 thread is now being set up properly by kvm-unit-tests
when being brought online, it becomes possible to add other tests in the
future that require all CPUs.

The include header order in arm/psci.c has been changed to be in
alphabetic order. This means moving the errata.h include before
libcflat.h, which causes compilation to fail because of missing includes
in errata.h. Fix that also by including the needed header in errata.h.

Reviewed-by: Andrew Jones <andrew.jones@linux.dev>
Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>

show more ...


/kvm-unit-tests/.gitignore
/kvm-unit-tests/.gitlab-ci.yml
/kvm-unit-tests/.travis.yml
/kvm-unit-tests/MAINTAINERS
/kvm-unit-tests/Makefile
/kvm-unit-tests/README.md
/kvm-unit-tests/arm/Makefile.arm
/kvm-unit-tests/arm/Makefile.arm64
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/cstart.S
/kvm-unit-tests/arm/debug.c
/kvm-unit-tests/arm/flat.lds
/kvm-unit-tests/arm/gic.c
/kvm-unit-tests/arm/micro-bench.c
/kvm-unit-tests/arm/pmu.c
/kvm-unit-tests/arm/psci.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/timer.c
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/ci/cirrus-ci-fedora.yml
/kvm-unit-tests/ci/cirrus-ci-macos-i386.yml
/kvm-unit-tests/ci/cirrus-ci-macos-x86-64.yml
/kvm-unit-tests/configure
/kvm-unit-tests/lib/alloc.c
/kvm-unit-tests/lib/alloc_page.h
/kvm-unit-tests/lib/argv.c
/kvm-unit-tests/lib/argv.h
smp.h
/kvm-unit-tests/lib/arm/gic-v3.c
/kvm-unit-tests/lib/arm/io.h
/kvm-unit-tests/lib/arm/mmu.c
/kvm-unit-tests/lib/arm/smp.c
/kvm-unit-tests/lib/arm64/asm/assembler.h
/kvm-unit-tests/lib/arm64/gic-v3-its.c
/kvm-unit-tests/lib/asm-generic/io.h
/kvm-unit-tests/lib/bitops.h
/kvm-unit-tests/lib/ctype.h
/kvm-unit-tests/lib/devicetree.c
/kvm-unit-tests/lib/efi.c
/kvm-unit-tests/lib/efi.h
/kvm-unit-tests/lib/errata.h
/kvm-unit-tests/lib/libcflat.h
/kvm-unit-tests/lib/libfdt/README
/kvm-unit-tests/lib/libfdt/fdt.c
/kvm-unit-tests/lib/libfdt/fdt_check.c
/kvm-unit-tests/lib/libfdt/fdt_overlay.c
/kvm-unit-tests/lib/libfdt/fdt_ro.c
/kvm-unit-tests/lib/libfdt/fdt_rw.c
/kvm-unit-tests/lib/libfdt/fdt_strerror.c
/kvm-unit-tests/lib/libfdt/fdt_sw.c
/kvm-unit-tests/lib/libfdt/fdt_wip.c
/kvm-unit-tests/lib/libfdt/libfdt.h
/kvm-unit-tests/lib/libfdt/libfdt_internal.h
/kvm-unit-tests/lib/linux/compiler.h
/kvm-unit-tests/lib/linux/efi.h
/kvm-unit-tests/lib/migrate.c
/kvm-unit-tests/lib/migrate.h
/kvm-unit-tests/lib/powerpc/asm/ppc_asm.h
/kvm-unit-tests/lib/powerpc/io.h
/kvm-unit-tests/lib/ppc64/asm/io.h
/kvm-unit-tests/lib/printf.c
/kvm-unit-tests/lib/report.c
/kvm-unit-tests/lib/s390x/asm-offsets.c
/kvm-unit-tests/lib/s390x/asm/arch_def.h
/kvm-unit-tests/lib/s390x/asm/cmm.h
/kvm-unit-tests/lib/s390x/asm/facility.h
/kvm-unit-tests/lib/s390x/asm/float.h
/kvm-unit-tests/lib/s390x/asm/interrupt.h
/kvm-unit-tests/lib/s390x/asm/mem.h
/kvm-unit-tests/lib/s390x/asm/page.h
/kvm-unit-tests/lib/s390x/asm/pgtable.h
/kvm-unit-tests/lib/s390x/asm/time.h
/kvm-unit-tests/lib/s390x/asm/uv.h
/kvm-unit-tests/lib/s390x/asm/vector.h
/kvm-unit-tests/lib/s390x/css.h
/kvm-unit-tests/lib/s390x/css_lib.c
/kvm-unit-tests/lib/s390x/fault.c
/kvm-unit-tests/lib/s390x/fault.h
/kvm-unit-tests/lib/s390x/gs.h
/kvm-unit-tests/lib/s390x/hardware.c
/kvm-unit-tests/lib/s390x/hardware.h
/kvm-unit-tests/lib/s390x/interrupt.c
/kvm-unit-tests/lib/s390x/io.c
/kvm-unit-tests/lib/s390x/malloc_io.c
/kvm-unit-tests/lib/s390x/mmu.c
/kvm-unit-tests/lib/s390x/mmu.h
/kvm-unit-tests/lib/s390x/sclp-console.c
/kvm-unit-tests/lib/s390x/sclp.c
/kvm-unit-tests/lib/s390x/sclp.h
/kvm-unit-tests/lib/s390x/sie.c
/kvm-unit-tests/lib/s390x/sie.h
/kvm-unit-tests/lib/s390x/smp.c
/kvm-unit-tests/lib/s390x/smp.h
/kvm-unit-tests/lib/s390x/snippet.h
/kvm-unit-tests/lib/s390x/stack.c
/kvm-unit-tests/lib/s390x/stsi.h
/kvm-unit-tests/lib/s390x/uv.c
/kvm-unit-tests/lib/s390x/uv.h
/kvm-unit-tests/lib/stdlib.h
/kvm-unit-tests/lib/string.c
/kvm-unit-tests/lib/util.c
/kvm-unit-tests/lib/vmalloc.c
/kvm-unit-tests/lib/vmalloc.h
/kvm-unit-tests/lib/x86/acpi.c
/kvm-unit-tests/lib/x86/acpi.h
/kvm-unit-tests/lib/x86/amd_sev.c
/kvm-unit-tests/lib/x86/amd_sev.h
/kvm-unit-tests/lib/x86/apic-defs.h
/kvm-unit-tests/lib/x86/apic.c
/kvm-unit-tests/lib/x86/apic.h
/kvm-unit-tests/lib/x86/asm/debugreg.h
/kvm-unit-tests/lib/x86/asm/page.h
/kvm-unit-tests/lib/x86/asm/setup.h
/kvm-unit-tests/lib/x86/desc.c
/kvm-unit-tests/lib/x86/desc.h
/kvm-unit-tests/lib/x86/msr.h
/kvm-unit-tests/lib/x86/pmu.c
/kvm-unit-tests/lib/x86/pmu.h
/kvm-unit-tests/lib/x86/processor.h
/kvm-unit-tests/lib/x86/setup.c
/kvm-unit-tests/lib/x86/smp.c
/kvm-unit-tests/lib/x86/smp.h
/kvm-unit-tests/lib/x86/usermode.c
/kvm-unit-tests/lib/x86/vm.c
/kvm-unit-tests/lib/x86/vm.h
/kvm-unit-tests/powerpc/Makefile.common
/kvm-unit-tests/powerpc/cstart64.S
/kvm-unit-tests/powerpc/emulator.c
/kvm-unit-tests/powerpc/run
/kvm-unit-tests/powerpc/sprs.c
/kvm-unit-tests/run_tests.sh
/kvm-unit-tests/s390x/Makefile
/kvm-unit-tests/s390x/adtl-status.c
/kvm-unit-tests/s390x/cmm.c
/kvm-unit-tests/s390x/cpu.S
/kvm-unit-tests/s390x/cpumodel.c
/kvm-unit-tests/s390x/css.c
/kvm-unit-tests/s390x/diag288.c
/kvm-unit-tests/s390x/diag308.c
/kvm-unit-tests/s390x/edat.c
/kvm-unit-tests/s390x/emulator.c
/kvm-unit-tests/s390x/epsw.c
/kvm-unit-tests/s390x/exittime.c
/kvm-unit-tests/s390x/firq.c
/kvm-unit-tests/s390x/flat.lds
/kvm-unit-tests/s390x/gs.c
/kvm-unit-tests/s390x/iep.c
/kvm-unit-tests/s390x/intercept.c
/kvm-unit-tests/s390x/migration-cmm.c
/kvm-unit-tests/s390x/migration-sck.c
/kvm-unit-tests/s390x/migration-skey.c
/kvm-unit-tests/s390x/migration.c
/kvm-unit-tests/s390x/mvpg-sie.c
/kvm-unit-tests/s390x/mvpg.c
/kvm-unit-tests/s390x/panic-loop-extint.c
/kvm-unit-tests/s390x/panic-loop-pgm.c
/kvm-unit-tests/s390x/pfmf.c
/kvm-unit-tests/s390x/pv-attest.c
/kvm-unit-tests/s390x/pv-diags.c
/kvm-unit-tests/s390x/run
/kvm-unit-tests/s390x/sck.c
/kvm-unit-tests/s390x/sclp.c
/kvm-unit-tests/s390x/selftest.c
/kvm-unit-tests/s390x/sie.c
/kvm-unit-tests/s390x/skey.c
/kvm-unit-tests/s390x/skrf.c
/kvm-unit-tests/s390x/smp.c
/kvm-unit-tests/s390x/snippets/asm/macros.S
/kvm-unit-tests/s390x/snippets/asm/snippet-pv-diag-288.S
/kvm-unit-tests/s390x/snippets/asm/snippet-pv-diag-500.S
/kvm-unit-tests/s390x/snippets/asm/snippet-pv-diag-yield.S
/kvm-unit-tests/s390x/snippets/c/cstart.S
/kvm-unit-tests/s390x/snippets/c/flat.lds
/kvm-unit-tests/s390x/snippets/c/mvpg-snippet.c
/kvm-unit-tests/s390x/snippets/c/spec_ex.c
/kvm-unit-tests/s390x/spec_ex-sie.c
/kvm-unit-tests/s390x/spec_ex.c
/kvm-unit-tests/s390x/sthyi.c
/kvm-unit-tests/s390x/stsi.c
/kvm-unit-tests/s390x/tprot.c
/kvm-unit-tests/s390x/unittests.cfg
/kvm-unit-tests/s390x/uv-guest.c
/kvm-unit-tests/s390x/uv-host.c
/kvm-unit-tests/s390x/vector.c
/kvm-unit-tests/scripts/arch-run.bash
/kvm-unit-tests/scripts/get_maintainer.pl
/kvm-unit-tests/scripts/mkstandalone.sh
/kvm-unit-tests/scripts/runtime.bash
/kvm-unit-tests/scripts/s390x/func.bash
/kvm-unit-tests/x86/Makefile.common
/kvm-unit-tests/x86/Makefile.i386
/kvm-unit-tests/x86/Makefile.x86_64
/kvm-unit-tests/x86/access.c
/kvm-unit-tests/x86/access.h
/kvm-unit-tests/x86/access_test.c
/kvm-unit-tests/x86/amd_sev.c
/kvm-unit-tests/x86/apic.c
/kvm-unit-tests/x86/asyncpf.c
/kvm-unit-tests/x86/cet.c
/kvm-unit-tests/x86/cstart.S
/kvm-unit-tests/x86/cstart64.S
/kvm-unit-tests/x86/debug.c
/kvm-unit-tests/x86/dummy.c
/kvm-unit-tests/x86/efi/README.md
/kvm-unit-tests/x86/efi/crt0-efi-x86_64.S
/kvm-unit-tests/x86/efi/efistart64.S
/kvm-unit-tests/x86/efi/elf_x86_64_efi.lds
/kvm-unit-tests/x86/efi/reloc_x86_64.c
/kvm-unit-tests/x86/efi/run
/kvm-unit-tests/x86/emulator.c
/kvm-unit-tests/x86/emulator64.c
/kvm-unit-tests/x86/eventinj.c
/kvm-unit-tests/x86/flat.lds
/kvm-unit-tests/x86/hyperv_stimer.c
/kvm-unit-tests/x86/hyperv_synic.c
/kvm-unit-tests/x86/ioapic.c
/kvm-unit-tests/x86/kvmclock.c
/kvm-unit-tests/x86/la57.c
/kvm-unit-tests/x86/memory.c
/kvm-unit-tests/x86/msr.c
/kvm-unit-tests/x86/pcid.c
/kvm-unit-tests/x86/pmu.c
/kvm-unit-tests/x86/pmu_lbr.c
/kvm-unit-tests/x86/pmu_pebs.c
/kvm-unit-tests/x86/rdpru.c
/kvm-unit-tests/x86/realmode.c
/kvm-unit-tests/x86/run
/kvm-unit-tests/x86/smap.c
/kvm-unit-tests/x86/svm.c
/kvm-unit-tests/x86/svm.h
/kvm-unit-tests/x86/svm_npt.c
/kvm-unit-tests/x86/svm_tests.c
/kvm-unit-tests/x86/syscall.c
/kvm-unit-tests/x86/taskswitch.c
/kvm-unit-tests/x86/taskswitch2.c
/kvm-unit-tests/x86/trampolines.S
/kvm-unit-tests/x86/tsc_adjust.c
/kvm-unit-tests/x86/umip.c
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmexit.c
/kvm-unit-tests/x86/vmware_backdoors.c
/kvm-unit-tests/x86/vmx.c
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
/kvm-unit-tests/x86/xsave.c
80e8b3d810-Jun-2021 Cornelia Huck <cohuck@redhat.com>

header guards: clean up some stragglers

Some headers had been missed during the initial header guard
standardization.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Laurent Vivier <l

header guards: clean up some stragglers

Some headers had been missed during the initial header guard
standardization.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210610135937.94375-2-cohuck@redhat.com>

show more ...


/kvm-unit-tests/configure
mmu-api.h
mmu.h
/kvm-unit-tests/lib/arm64/asm/mmu.h
/kvm-unit-tests/lib/pci.h
/kvm-unit-tests/lib/s390x/asm/arch_def.h
/kvm-unit-tests/lib/s390x/asm/barrier.h
/kvm-unit-tests/lib/s390x/asm/cpacf.h
/kvm-unit-tests/lib/s390x/asm/facility.h
/kvm-unit-tests/lib/s390x/asm/float.h
/kvm-unit-tests/lib/s390x/asm/mem.h
/kvm-unit-tests/lib/s390x/asm/sigp.h
/kvm-unit-tests/lib/s390x/asm/spinlock.h
/kvm-unit-tests/lib/s390x/asm/time.h
/kvm-unit-tests/lib/s390x/asm/uv.h
/kvm-unit-tests/lib/s390x/css.h
/kvm-unit-tests/lib/s390x/interrupt.h
/kvm-unit-tests/lib/s390x/mmu.h
/kvm-unit-tests/lib/s390x/sclp.h
/kvm-unit-tests/lib/s390x/sie.h
/kvm-unit-tests/lib/s390x/smp.h
/kvm-unit-tests/lib/s390x/uv.h
/kvm-unit-tests/lib/s390x/vm.h
/kvm-unit-tests/lib/x86/acpi.h
/kvm-unit-tests/lib/x86/apic-defs.h
/kvm-unit-tests/lib/x86/apic.h
/kvm-unit-tests/lib/x86/asm/barrier.h
/kvm-unit-tests/lib/x86/asm/debugreg.h
/kvm-unit-tests/lib/x86/asm/io.h
/kvm-unit-tests/lib/x86/asm/memory_areas.h
/kvm-unit-tests/lib/x86/asm/page.h
/kvm-unit-tests/lib/x86/asm/pci.h
/kvm-unit-tests/lib/x86/asm/spinlock.h
/kvm-unit-tests/lib/x86/asm/stack.h
/kvm-unit-tests/lib/x86/atomic.h
/kvm-unit-tests/lib/x86/delay.h
/kvm-unit-tests/lib/x86/desc.h
/kvm-unit-tests/lib/x86/fault_test.h
/kvm-unit-tests/lib/x86/fwcfg.h
/kvm-unit-tests/lib/x86/intel-iommu.h
/kvm-unit-tests/lib/x86/io.c
/kvm-unit-tests/lib/x86/isr.h
/kvm-unit-tests/lib/x86/msr.h
/kvm-unit-tests/lib/x86/processor.h
/kvm-unit-tests/lib/x86/smp.h
/kvm-unit-tests/lib/x86/usermode.h
/kvm-unit-tests/lib/x86/vm.h
/kvm-unit-tests/powerpc/spapr.h
/kvm-unit-tests/s390x/sthyi.h
/kvm-unit-tests/x86/emulator.c
/kvm-unit-tests/x86/hypercall.c
/kvm-unit-tests/x86/hyperv.h
/kvm-unit-tests/x86/hyperv_clock.c
/kvm-unit-tests/x86/ioram.h
/kvm-unit-tests/x86/kvmclock.h
/kvm-unit-tests/x86/pmu.c
/kvm-unit-tests/x86/realmode.c
/kvm-unit-tests/x86/smptest.c
/kvm-unit-tests/x86/svm.h
/kvm-unit-tests/x86/syscall.c
/kvm-unit-tests/x86/tsx-ctrl.c
/kvm-unit-tests/x86/types.h
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
16f52ec909-Jun-2021 Cornelia Huck <cohuck@redhat.com>

arm: unify header guards

The assembler.h files were the only ones not already following
the convention.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat

arm: unify header guards

The assembler.h files were the only ones not already following
the convention.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210609143712.60933-5-cohuck@redhat.com>

show more ...

bd5bd15706-Apr-2021 Andrew Jones <drjones@redhat.com>

arm/arm64: psci: Don't assume method is hvc

The method can be smc in addition to hvc, and it will be when running
on bare metal. Additionally, we move the invocations to assembly so
we don't have to

arm/arm64: psci: Don't assume method is hvc

The method can be smc in addition to hvc, and it will be when running
on bare metal. Additionally, we move the invocations to assembly so
we don't have to rely on compiler assumptions. We also fix the
prototype of psci_invoke. function_id should be an unsigned int, not
an unsigned long.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...

5a2a737106-Apr-2021 Andrew Jones <drjones@redhat.com>

arm/arm64: setup: Consolidate memory layout assumptions

Keep as much memory layout assumptions as possible in init::start
and a single setup function. This prepares us for calling setup()
from diffe

arm/arm64: setup: Consolidate memory layout assumptions

Keep as much memory layout assumptions as possible in init::start
and a single setup function. This prepares us for calling setup()
from different start functions which have been linked with different
linker scripts. To do this, stacktop is only referenced from
init::start, making freemem_start a parameter to setup(). We also
split mem_init() into three parts, one that populates the mem regions
per the DT, one that populates the mem regions per assumptions,
and one that does the mem init. The concept of a primary region
is dropped, but we add a sanity check for the absence of memory
holes, because we don't know how to deal with them yet.

Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...

c1cd1a2b12-Oct-2020 Andrew Jones <drjones@redhat.com>

arm/arm64: mmu: Remove memory layout assumptions

Rather than making too many assumptions about the memory layout
in mmu code, just set up the page tables per the memory regions
(which means putting

arm/arm64: mmu: Remove memory layout assumptions

Rather than making too many assumptions about the memory layout
in mmu code, just set up the page tables per the memory regions
(which means putting all the memory layout assumptions in setup).
To ensure we get the right default flags set we need to split the
primary region into two regions for code and data.

We still only expect the primary regions to be present, but the
next patch will remove that assumption too.

(Unfortunately we still have an assumption in setup_mmu. We assume
the range 3G-4G is available for the virtual memory allocator. We'll
need to remove that assumption as well with another patch in order
to support arbitrary memory maps.)

Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...

e97e1c8211-Nov-2020 Andrew Jones <drjones@redhat.com>

arm/arm64: mmu: Stop mapping an assumed IO region

By providing a proper ioremap function, we can just rely on devices
calling it for each region they need (as they already do) instead of
mapping a b

arm/arm64: mmu: Stop mapping an assumed IO region

By providing a proper ioremap function, we can just rely on devices
calling it for each region they need (as they already do) instead of
mapping a big assumed I/O range. We don't require the MMU to be
enabled at the time of the ioremap. In that case, we add the mapping
to the identity map anyway. This allows us to call setup_vm after
io_init. Why don't we just call setup_vm before io_init, I hear you
ask? Well, that's because tests like sieve want to start with the MMU
off, later call setup_vm, and all the while have working I/O. Some
unit tests are just really demanding...

While at it, ensure we map the I/O regions with XN (execute never),
as suggested by Alexandru Elisei.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...

b5f659be22-Mar-2021 Alexandru Elisei <alexandru.elisei@arm.com>

arm/arm64: Remove dcache_line_size global variable

Compute the dcache line size when doing dcache maintenance instead of using
a global variable computed in setup(), which allows us to do dcache
mai

arm/arm64: Remove dcache_line_size global variable

Compute the dcache line size when doing dcache maintenance instead of using
a global variable computed in setup(), which allows us to do dcache
maintenance at any point in the boot process. This will be useful for
running as an EFI app and it also aligns our implementation to that of the
Linux kernel. As a result, the dcache_by_line_op assembly has been modified
to take a range described by start address and size, instead of start and
end addresses.

For consistency, the arm code has been similary modified.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...

adae130219-Mar-2021 Nikos Nikoleris <nikos.nikoleris@arm.com>

arm/arm64: Add sanity checks to the cpumask API

Make sure that any calls to the cpumask API target a valid CPU. The
CPU is identified by an int in the range [0, nr_cpus), where nr_cpus
is set based

arm/arm64: Add sanity checks to the cpumask API

Make sure that any calls to the cpumask API target a valid CPU. The
CPU is identified by an int in the range [0, nr_cpus), where nr_cpus
is set based on information in the DT.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...

0917dc6519-Mar-2021 Nikos Nikoleris <nikos.nikoleris@arm.com>

arm/arm64: Read system registers to get the state of the MMU

When we are in EL1 we can directly tell if the local cpu's MMU is on
by reading a system register (SCTRL/SCTRL_EL1). In EL0, we use the
r

arm/arm64: Read system registers to get the state of the MMU

When we are in EL1 we can directly tell if the local cpu's MMU is on
by reading a system register (SCTRL/SCTRL_EL1). In EL0, we use the
relevant cpumask. This way we don't have to rely on the cpu id in
thread_info when we are in setup executing in EL1.

In addition, this change:
* Removes mmu_disabled_cpu_count as it is no longer necessary and
assumed that calls to mmu_mark_enabled()/mmu_mark_disabled() were
serialized. This is currently true but a future change could
easily break that assumption.
* Changes mmu_disabled_mask to mmu_enabled_mask and inverts the
logic to track in a more intuitive way that all CPUs start with
the MMU OFF and at some point, we turn them ON.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
[ Applied some code cleanups suggested by Alexandru Elisei ]
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...

fdab948b19-Mar-2021 Nikos Nikoleris <nikos.nikoleris@arm.com>

arm/arm64: Avoid calling cpumask_test_cpu for CPUs above nr_cpus

Prior to this change, a call of cpumask_next(cpu, mask) where
cpu=nr_cpus - 1 (assuming all cpus are enumerated in the range
0..nr_cp

arm/arm64: Avoid calling cpumask_test_cpu for CPUs above nr_cpus

Prior to this change, a call of cpumask_next(cpu, mask) where
cpu=nr_cpus - 1 (assuming all cpus are enumerated in the range
0..nr_cpus - 1) would make an out-of-bounds access to the mask.
In many cases, this is still a valid memory location due the
implementation of cpumask_t, however, in certain configurations
(for example, nr_cpus == sizeof(long)) this would cause an access
outside the bounds of the mask too.

This patch changes the way we guard calls to cpumask_test_cpu() in
cpumask_next() to avoid the above condition. A following change adds
assertions to catch out-of-bounds accesses to cpumask_t.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...


/kvm-unit-tests/.gitlab-ci.yml
/kvm-unit-tests/Makefile
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/cstart.S
/kvm-unit-tests/arm/cstart64.S
/kvm-unit-tests/arm/flat.lds
/kvm-unit-tests/arm/gic.c
/kvm-unit-tests/arm/micro-bench.c
/kvm-unit-tests/arm/pmu.c
/kvm-unit-tests/configure
/kvm-unit-tests/lib/alloc.h
/kvm-unit-tests/lib/alloc_page.c
/kvm-unit-tests/lib/alloc_page.h
/kvm-unit-tests/lib/alloc_phys.c
cpumask.h
/kvm-unit-tests/lib/arm/gic-v2.c
/kvm-unit-tests/lib/arm/gic-v3.c
/kvm-unit-tests/lib/devicetree.c
/kvm-unit-tests/lib/libfdt/Makefile.libfdt
/kvm-unit-tests/lib/libfdt/README
/kvm-unit-tests/lib/libfdt/fdt.c
/kvm-unit-tests/lib/libfdt/fdt.h
/kvm-unit-tests/lib/libfdt/fdt_addresses.c
/kvm-unit-tests/lib/libfdt/fdt_check.c
/kvm-unit-tests/lib/libfdt/fdt_empty_tree.c
/kvm-unit-tests/lib/libfdt/fdt_overlay.c
/kvm-unit-tests/lib/libfdt/fdt_ro.c
/kvm-unit-tests/lib/libfdt/fdt_rw.c
/kvm-unit-tests/lib/libfdt/fdt_strerror.c
/kvm-unit-tests/lib/libfdt/fdt_sw.c
/kvm-unit-tests/lib/libfdt/fdt_wip.c
/kvm-unit-tests/lib/libfdt/libfdt.h
/kvm-unit-tests/lib/libfdt/libfdt_env.h
/kvm-unit-tests/lib/libfdt/libfdt_internal.h
/kvm-unit-tests/lib/libfdt/version.lds
/kvm-unit-tests/lib/linux/compiler.h
/kvm-unit-tests/lib/s390x/asm-offsets.c
/kvm-unit-tests/lib/s390x/asm/arch_def.h
/kvm-unit-tests/lib/s390x/asm/asm-offsets.h
/kvm-unit-tests/lib/s390x/asm/barrier.h
/kvm-unit-tests/lib/s390x/asm/bitops.h
/kvm-unit-tests/lib/s390x/asm/cpacf.h
/kvm-unit-tests/lib/s390x/asm/facility.h
/kvm-unit-tests/lib/s390x/asm/float.h
/kvm-unit-tests/lib/s390x/asm/interrupt.h
/kvm-unit-tests/lib/s390x/asm/io.h
/kvm-unit-tests/lib/s390x/asm/mem.h
/kvm-unit-tests/lib/s390x/asm/page.h
/kvm-unit-tests/lib/s390x/asm/pgtable.h
/kvm-unit-tests/lib/s390x/asm/sigp.h
/kvm-unit-tests/lib/s390x/asm/spinlock.h
/kvm-unit-tests/lib/s390x/asm/stack.h
/kvm-unit-tests/lib/s390x/asm/time.h
/kvm-unit-tests/lib/s390x/asm/uv.h
/kvm-unit-tests/lib/s390x/css.h
/kvm-unit-tests/lib/s390x/css_dump.c
/kvm-unit-tests/lib/s390x/css_lib.c
/kvm-unit-tests/lib/s390x/interrupt.c
/kvm-unit-tests/lib/s390x/io.c
/kvm-unit-tests/lib/s390x/malloc_io.c
/kvm-unit-tests/lib/s390x/malloc_io.h
/kvm-unit-tests/lib/s390x/mmu.c
/kvm-unit-tests/lib/s390x/mmu.h
/kvm-unit-tests/lib/s390x/sclp-console.c
/kvm-unit-tests/lib/s390x/sclp.c
/kvm-unit-tests/lib/s390x/sclp.h
/kvm-unit-tests/lib/s390x/sie.h
/kvm-unit-tests/lib/s390x/smp.c
/kvm-unit-tests/lib/s390x/smp.h
/kvm-unit-tests/lib/s390x/stack.c
/kvm-unit-tests/lib/s390x/vm.c
/kvm-unit-tests/lib/s390x/vm.h
/kvm-unit-tests/lib/stdlib.h
/kvm-unit-tests/lib/string.c
/kvm-unit-tests/lib/string.h
/kvm-unit-tests/lib/vmalloc.c
/kvm-unit-tests/lib/x86/desc.c
/kvm-unit-tests/lib/x86/msr.h
/kvm-unit-tests/lib/x86/processor.h
/kvm-unit-tests/powerpc/Makefile.common
/kvm-unit-tests/s390x/Makefile
/kvm-unit-tests/s390x/cmm.c
/kvm-unit-tests/s390x/cpu.S
/kvm-unit-tests/s390x/cpumodel.c
/kvm-unit-tests/s390x/css.c
/kvm-unit-tests/s390x/cstart64.S
/kvm-unit-tests/s390x/diag10.c
/kvm-unit-tests/s390x/diag288.c
/kvm-unit-tests/s390x/diag308.c
/kvm-unit-tests/s390x/emulator.c
/kvm-unit-tests/s390x/gs.c
/kvm-unit-tests/s390x/iep.c
/kvm-unit-tests/s390x/intercept.c
/kvm-unit-tests/s390x/macros.S
/kvm-unit-tests/s390x/mvpg.c
/kvm-unit-tests/s390x/pfmf.c
/kvm-unit-tests/s390x/sclp.c
/kvm-unit-tests/s390x/selftest.c
/kvm-unit-tests/s390x/sie.c
/kvm-unit-tests/s390x/skey.c
/kvm-unit-tests/s390x/skrf.c
/kvm-unit-tests/s390x/smp.c
/kvm-unit-tests/s390x/sthyi.c
/kvm-unit-tests/s390x/sthyi.h
/kvm-unit-tests/s390x/stsi.c
/kvm-unit-tests/s390x/unittests.cfg
/kvm-unit-tests/s390x/uv-guest.c
/kvm-unit-tests/s390x/vector.c
/kvm-unit-tests/x86/Makefile.x86_64
/kvm-unit-tests/x86/cet.c
/kvm-unit-tests/x86/debug.c
/kvm-unit-tests/x86/pcid.c
/kvm-unit-tests/x86/pks.c
/kvm-unit-tests/x86/pku.c
/kvm-unit-tests/x86/pmu_lbr.c
/kvm-unit-tests/x86/smap.c
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmx_tests.c
322cdd6415-Jan-2021 Claudio Imbrenda <imbrenda@linux.ibm.com>

lib/asm: Fix definitions of memory areas

Fix the definitions of the memory areas.

Bring the headers in line with the rest of the asm headers, by having the
appropriate #ifdef _ASM$ARCH_ guarding th

lib/asm: Fix definitions of memory areas

Fix the definitions of the memory areas.

Bring the headers in line with the rest of the asm headers, by having the
appropriate #ifdef _ASM$ARCH_ guarding the headers.

Fixes: d74708246bd9 ("lib/asm: Add definitions of memory areas")

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <20210115123730.381612-5-imbrenda@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

123456