History log of /kvm-unit-tests/lib/x86/ (Results 276 – 300 of 414)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
b73c7c6e13-Jun-2017 Andrew Jones <drjones@redhat.com>

lib/x86/smp: introduce on_cpus and cpus_active

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

10594e4207-Jun-2017 Paolo Bonzini <pbonzini@redhat.com>

x86: clean up GDTs

- Add a 16-bit code and data segment to cstart.S.
- Move ring 3 segment descriptors at the end of the GDT, and lay them out
as required by syscall/sysret in cstart64.S.
- Only d

x86: clean up GDTs

- Add a 16-bit code and data segment to cstart.S.
- Move ring 3 segment descriptors at the end of the GDT, and lay them out
as required by syscall/sysret in cstart64.S.
- Only define TSS_INTR for 32-bit, and place it where cstart64.S puts the
32-bit ring 0 segment.
- Document that the same data segment can be used for 32 and 64-bit code.
- Mark all descriptors as accessed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...


/kvm-unit-tests/.gitignore
/kvm-unit-tests/.travis.yml
/kvm-unit-tests/MAINTAINERS
/kvm-unit-tests/README.md
/kvm-unit-tests/api/dirty-log.cc
/kvm-unit-tests/api/identity.cc
/kvm-unit-tests/arm/cstart.S
/kvm-unit-tests/arm/cstart64.S
/kvm-unit-tests/arm/gic.c
/kvm-unit-tests/arm/psci.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/selftest.c
/kvm-unit-tests/arm/spinlock-test.c
/kvm-unit-tests/configure
/kvm-unit-tests/lib/arm/asm-offsets.c
/kvm-unit-tests/lib/arm/asm/barrier.h
/kvm-unit-tests/lib/arm/asm/bitops.h
/kvm-unit-tests/lib/arm/asm/pgtable-hwdef.h
/kvm-unit-tests/lib/arm/asm/pgtable.h
/kvm-unit-tests/lib/arm/asm/psci.h
/kvm-unit-tests/lib/arm/asm/ptrace.h
/kvm-unit-tests/lib/arm/asm/smp.h
/kvm-unit-tests/lib/arm/asm/sysreg.h
/kvm-unit-tests/lib/arm/asm/thread_info.h
/kvm-unit-tests/lib/arm/bitops.c
/kvm-unit-tests/lib/arm/eabi_compat.c
/kvm-unit-tests/lib/arm/gic.c
/kvm-unit-tests/lib/arm/psci.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/barrier.h
/kvm-unit-tests/lib/arm64/asm/bitops.h
/kvm-unit-tests/lib/arm64/asm/esr.h
/kvm-unit-tests/lib/arm64/asm/io.h
/kvm-unit-tests/lib/arm64/asm/page.h
/kvm-unit-tests/lib/arm64/asm/pgtable-hwdef.h
/kvm-unit-tests/lib/arm64/asm/pgtable.h
/kvm-unit-tests/lib/arm64/asm/psci.h
/kvm-unit-tests/lib/arm64/asm/ptrace.h
/kvm-unit-tests/lib/asm-generic/io.h
/kvm-unit-tests/lib/asm-generic/page.h
/kvm-unit-tests/lib/bitops.h
/kvm-unit-tests/lib/powerpc/asm/rtas.h
/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/s390x/.gitignore
/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/interrupt.h
/kvm-unit-tests/lib/s390x/asm/io.h
/kvm-unit-tests/lib/s390x/asm/page.h
/kvm-unit-tests/lib/s390x/asm/spinlock.h
/kvm-unit-tests/lib/s390x/asm/stack.h
/kvm-unit-tests/lib/s390x/interrupt.c
/kvm-unit-tests/lib/s390x/io.c
/kvm-unit-tests/lib/s390x/sclp-ascii.c
/kvm-unit-tests/lib/s390x/sclp.h
/kvm-unit-tests/lib/s390x/stack.c
/kvm-unit-tests/lib/virtio-mmio.c
/kvm-unit-tests/lib/virtio-mmio.h
/kvm-unit-tests/lib/virtio.c
/kvm-unit-tests/lib/virtio.h
desc.c
desc.h
/kvm-unit-tests/powerpc/rtas.c
/kvm-unit-tests/powerpc/unittests.cfg
/kvm-unit-tests/s390x/Makefile
/kvm-unit-tests/s390x/cstart64.S
/kvm-unit-tests/s390x/flat.lds
/kvm-unit-tests/s390x/run
/kvm-unit-tests/s390x/selftest.c
/kvm-unit-tests/s390x/unittests.cfg
/kvm-unit-tests/x86/Makefile.common
/kvm-unit-tests/x86/cstart.S
/kvm-unit-tests/x86/cstart64.S
/kvm-unit-tests/x86/msr.c
/kvm-unit-tests/x86/vmx.c
fd6aada017-May-2017 Radim Krčmář <rkrcmar@redhat.com>

use %# instead of 0x% in all format strings

It's one character shorter, properly prefixed, and also provides error
detection: %#d triggers a warning.

Done with `sed -i 's/0x%/%#/g' **/*.[ch]` to mo

use %# instead of 0x% in all format strings

It's one character shorter, properly prefixed, and also provides error
detection: %#d triggers a warning.

Done with `sed -i 's/0x%/%#/g' **/*.[ch]` to motivate the use of %#,
existing padding was raised by 2 to account for the counted "0x" (output
should be the same).

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

d31f6adb15-May-2017 David Hildenbrand <david@redhat.com>

x86: use asm-generic spinlock

Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

359575f621-Apr-2017 Peter Feiner <pfeiner@google.com>

x86: ept access tests

Signed-off-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20170421005004.137260-31-dmatlack@google.com>
Signed-off-by: Pa

x86: ept access tests

Signed-off-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20170421005004.137260-31-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

1df80b5721-Apr-2017 Peter Feiner <pfeiner@google.com>

lib: x86: page table utilities

Convenience functions for manipulating and querying page tables.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
M

lib: x86: page table utilities

Convenience functions for manipulating and querying page tables.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20170421005004.137260-30-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

8e32da1b21-Apr-2017 Peter Feiner <pfeiner@google.com>

lib: x86: multi-page allocator

Need this for testing huge pages.

Change-Id: Iecf4f916a3d3d24844957dcd4e81c8aa10b1cdda
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20170421005004.

lib: x86: multi-page allocator

Need this for testing huge pages.

Change-Id: Iecf4f916a3d3d24844957dcd4e81c8aa10b1cdda
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20170421005004.137260-25-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

7516869f21-Apr-2017 Peter Feiner <pfeiner@google.com>

lib: x86: store free pages in ascending order

Makes allocation of contiguous physical pages simpler.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: David Matlack <dmatlack@google.c

lib: x86: store free pages in ascending order

Makes allocation of contiguous physical pages simpler.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20170421005004.137260-24-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...


/kvm-unit-tests/COPYRIGHT
/kvm-unit-tests/Makefile
/kvm-unit-tests/README.md
/kvm-unit-tests/api/dirty-log-perf.cc
/kvm-unit-tests/api/dirty-log.cc
/kvm-unit-tests/api/identity.cc
/kvm-unit-tests/api/identity.hh
/kvm-unit-tests/api/kvmxx.cc
/kvm-unit-tests/api/kvmxx.hh
/kvm-unit-tests/api/memmap.cc
/kvm-unit-tests/api/memmap.hh
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/gic.c
/kvm-unit-tests/arm/psci.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/spinlock-test.c
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/configure
/kvm-unit-tests/lib/argv.c
/kvm-unit-tests/lib/arm/asm/gic.h
/kvm-unit-tests/lib/arm/spinlock.c
/kvm-unit-tests/lib/auxinfo.h
/kvm-unit-tests/lib/errata.h
/kvm-unit-tests/lib/libcflat.h
/kvm-unit-tests/lib/pci.c
/kvm-unit-tests/lib/pci.h
/kvm-unit-tests/lib/powerpc/processor.c
/kvm-unit-tests/lib/ppc64/spinlock.c
/kvm-unit-tests/lib/printf.c
/kvm-unit-tests/lib/report.c
/kvm-unit-tests/lib/setjmp.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
vm.c
/kvm-unit-tests/powerpc/Makefile.common
/kvm-unit-tests/powerpc/cstart64.S
/kvm-unit-tests/powerpc/run
/kvm-unit-tests/powerpc/sprs.c
/kvm-unit-tests/powerpc/unittests.cfg
/kvm-unit-tests/run_tests.sh
/kvm-unit-tests/scripts/arch-run.bash
/kvm-unit-tests/scripts/mkstandalone.sh
/kvm-unit-tests/scripts/runtime.bash
/kvm-unit-tests/x86/Makefile.common
/kvm-unit-tests/x86/eventinj.c
/kvm-unit-tests/x86/run
/kvm-unit-tests/x86/unittests.cfg
/kvm-unit-tests/x86/vmx.c
/kvm-unit-tests/x86/vmx.h
/kvm-unit-tests/x86/vmx_tests.c
3c7d322e13-Jan-2017 Andrew Jones <drjones@redhat.com>

x86: enable environ

Give x86 unit tests access to environment variables. The
environment variables are passed to the unit test with
'-initrd env-file'.

Signed-off-by: Andrew Jones <drjones@redhat.c

x86: enable environ

Give x86 unit tests access to environment variables. The
environment variables are passed to the unit test with
'-initrd env-file'.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

93dd2aa313-Jan-2017 Andrew Jones <drjones@redhat.com>

x86: import initrd

If an initrd is provided on the qemu command line, then set a
pointer to it during setup.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@re

x86: import initrd

If an initrd is provided on the qemu command line, then set a
pointer to it during setup.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

82f2f21a16-Jan-2017 Andrew Jones <drjones@redhat.com>

lib/pci: reduce library noise

Avoid printfs in library code unless in a printing function, e.g.
pci_dev_print. Particularly we can avoid printing anything the
caller can easily print themselves, if

lib/pci: reduce library noise

Avoid printfs in library code unless in a printing function, e.g.
pci_dev_print. Particularly we can avoid printing anything the
caller can easily print themselves, if so desired.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...

533a738f11-Jan-2017 Andrew Jones <drjones@redhat.com>

lib/x86/apic: fix 32-bit compilation

Use the proper name, as the improper one isn't defined... Also
cleanup some trailing spaces.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andrew Jones

lib/x86/apic: fix 32-bit compilation

Use the proper name, as the improper one isn't defined... Also
cleanup some trailing spaces.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

386d449803-Jan-2017 Alexander Gordeev <agordeev@redhat.com>

intel_iommu: fix an incorrect address translation

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

3223ade230-Dec-2016 Peter Xu <peterx@redhat.com>

intel-iommu: add ioapic irq test

IOAPIC irqs are line-based irqs comparing to MSI ones (which are
memory-based). To make it complete, let's also test IOAPIC interrupts
in the IR testcase.

Signed-of

intel-iommu: add ioapic irq test

IOAPIC irqs are line-based irqs comparing to MSI ones (which are
memory-based). To make it complete, let's also test IOAPIC interrupts
in the IR testcase.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

560586d930-Dec-2016 Peter Xu <peterx@redhat.com>

intel-iommu: allow setup trigger mode for irte

IOAPIC interrupts need this. Let's be prepared.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

b437775330-Dec-2016 Peter Xu <peterx@redhat.com>

intel-iommu: use atomic ops for irte index alloc

To allow concurrent allocation of irte index. Meanwhile, move the IRTE
setup debug line into the alloc since vtd_setup_msi() might not be the
only on

intel-iommu: use atomic ops for irte index alloc

To allow concurrent allocation of irte index. Meanwhile, move the IRTE
setup debug line into the alloc since vtd_setup_msi() might not be the
only one to dump this info in the future.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

0172b95c30-Dec-2016 Peter Xu <peterx@redhat.com>

x86: ioapic: generalize trigger mode

Move it out of x86/ioapic.c since it can be further re-used. Also,
renaming into TRIGGER_*.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bon

x86: ioapic: generalize trigger mode

Move it out of x86/ioapic.c since it can be further re-used. Also,
renaming into TRIGGER_*.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

ae21b79530-Dec-2016 Peter Xu <peterx@redhat.com>

lib/asm-generic: add atomic.h

Provide some gcc-builtin atomic ops.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

7f2477c212-Dec-2016 Peter Xu <peterx@redhat.com>

x86: intel-iommu: add IR MSI test

First of all, vtd_setup_msi() is provided. It setup IRTE entries,
meanwhile, setup PCI device MSI vectors corresponding to VT-d spec.

Meanwhile, IR MSI test is add

x86: intel-iommu: add IR MSI test

First of all, vtd_setup_msi() is provided. It setup IRTE entries,
meanwhile, setup PCI device MSI vectors corresponding to VT-d spec.

Meanwhile, IR MSI test is added to intel IOMMU unit test. The basic IR
test is carried out by a edu INTR raise request. When write to the intr
raise register, interrupt will be generated. Type of interrupt will
depend on the setup (either INTx or MSI).

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

92d2c19212-Dec-2016 Peter Xu <peterx@redhat.com>

x86: intel-iommu: add dmar test

DMAR test is based on QEMU edu device. A 4B DMA memory copy is carried
out as the simplest DMAR test.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paol

x86: intel-iommu: add dmar test

DMAR test is based on QEMU edu device. A 4B DMA memory copy is carried
out as the simplest DMAR test.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

9d7e08c012-Dec-2016 Peter Xu <peterx@redhat.com>

vm/page: provide PGDIR_OFFSET() macro

This can be used in further patches.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <p

vm/page: provide PGDIR_OFFSET() macro

This can be used in further patches.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

16c0b05f12-Dec-2016 Peter Xu <peterx@redhat.com>

x86: intel-iommu: add vt-d init test

Adding fundamental init test for Intel IOMMU. This includes basic
initialization of Intel IOMMU device, like DMAR (DMA Remapping),
IR (Interrupt Remapping), QI (

x86: intel-iommu: add vt-d init test

Adding fundamental init test for Intel IOMMU. This includes basic
initialization of Intel IOMMU device, like DMAR (DMA Remapping),
IR (Interrupt Remapping), QI (Queue Invalidation), etc.

Further tests can use vtd_init() to initialize Intel IOMMU environment.

x86/unittests is updated to add this test.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

d77d128f12-Dec-2016 Peter Xu <peterx@redhat.com>

x86/asm: add cpu_relax()

This will be useful to be put inside loops.

Suggested-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Peter Xu <peterx@r

x86/asm: add cpu_relax()

This will be useful to be put inside loops.

Suggested-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...


/kvm-unit-tests/Makefile
/kvm-unit-tests/arm/Makefile.common
/kvm-unit-tests/arm/cstart.S
/kvm-unit-tests/arm/gic.c
/kvm-unit-tests/arm/pci-test.c
/kvm-unit-tests/arm/pmu.c
/kvm-unit-tests/arm/run
/kvm-unit-tests/arm/selftest.c
/kvm-unit-tests/arm/spinlock-test.c
/kvm-unit-tests/arm/unittests.cfg
/kvm-unit-tests/lib/alloc.h
/kvm-unit-tests/lib/arm/asm/arch_gicv3.h
/kvm-unit-tests/lib/arm/asm/barrier.h
/kvm-unit-tests/lib/arm/asm/delay.h
/kvm-unit-tests/lib/arm/asm/gic-v2.h
/kvm-unit-tests/lib/arm/asm/gic-v3.h
/kvm-unit-tests/lib/arm/asm/gic.h
/kvm-unit-tests/lib/arm/asm/processor.h
/kvm-unit-tests/lib/arm/asm/setup.h
/kvm-unit-tests/lib/arm/asm/sysreg.h
/kvm-unit-tests/lib/arm/delay.c
/kvm-unit-tests/lib/arm/gic-v2.c
/kvm-unit-tests/lib/arm/gic-v3.c
/kvm-unit-tests/lib/arm/gic.c
/kvm-unit-tests/lib/arm/setup.c
/kvm-unit-tests/lib/arm64/asm/arch_gicv3.h
/kvm-unit-tests/lib/arm64/asm/barrier.h
/kvm-unit-tests/lib/arm64/asm/delay.h
/kvm-unit-tests/lib/arm64/asm/gic-v2.h
/kvm-unit-tests/lib/arm64/asm/gic-v3.h
/kvm-unit-tests/lib/arm64/asm/gic.h
/kvm-unit-tests/lib/arm64/asm/processor.h
/kvm-unit-tests/lib/arm64/asm/sysreg.h
/kvm-unit-tests/lib/devicetree.c
/kvm-unit-tests/lib/devicetree.h
/kvm-unit-tests/lib/libcflat.h
/kvm-unit-tests/lib/pci-host-generic.c
/kvm-unit-tests/lib/pci.c
/kvm-unit-tests/lib/pci.h
/kvm-unit-tests/lib/powerpc/setup.c
/kvm-unit-tests/lib/powerpc/smp.c
/kvm-unit-tests/lib/report.c
asm/barrier.h
/kvm-unit-tests/powerpc/tm.c
/kvm-unit-tests/scripts/runtime.bash
/kvm-unit-tests/x86/apic.c
/kvm-unit-tests/x86/asyncpf.c
/kvm-unit-tests/x86/svm.c
/kvm-unit-tests/x86/vmx_tests.c
e0a5cfca17-Dec-2016 Paolo Bonzini <pbonzini@redhat.com>

vmexit: add self-ipi speed tests

These are designed to test APICv and optimizations of KVM_REQ_EVENT.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

1bde912714-Dec-2016 Jim Mattson <jmattson@google.com>

x86/nVMX: Test L1 interception of #BP and #OF in the L2 guest

Int3 (#BP) and INTO (#OF) are unusual, in that they are reported as
"software exception" rather than "hardware exception" in the VM-exit

x86/nVMX: Test L1 interception of #BP and #OF in the L2 guest

Int3 (#BP) and INTO (#OF) are unusual, in that they are reported as
"software exception" rather than "hardware exception" in the VM-exit
interruption information field of the VMCS.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

1...<<11121314151617