History log of /kvm-unit-tests/lib/x86/ (Results 301 – 325 of 414)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
2455ef2007-Nov-2016 Alexander Gordeev <agordeev@redhat.com>

pci: Rework pci_bar_addr()

This update makes pci_bar_addr() interface 64 bit BARs aware and
introduces a concept of PCI address translation.

An architecutre should implement pci_translate_addr() in

pci: Rework pci_bar_addr()

This update makes pci_bar_addr() interface 64 bit BARs aware and
introduces a concept of PCI address translation.

An architecutre should implement pci_translate_addr() interface
in order to provide mapping between PCI bus address and CPU
physical address.

Cc: Thomas Huth <thuth@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Message-Id: <11145b9c19a61b4f585b3fabf5b2c64299aa89ff.1478512824.git.agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

d8369c7707-Nov-2016 Alexander Gordeev <agordeev@redhat.com>

pci: x86: Add remaining PCI configuration space accessors

Cc: Thomas Huth <thuth@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Reviewed-by: Andrew Jones <drjones

pci: x86: Add remaining PCI configuration space accessors

Cc: Thomas Huth <thuth@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Message-Id: <df1dee9ef0ff2740835e0690f84b849315ee7885.1478512824.git.agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

b8e0826e07-Nov-2016 Alexander Gordeev <agordeev@redhat.com>

pci: x86: Rename pci_config_read() to pci_config_readl()

Cc: Thomas Huth <thuth@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Reviewed-by: Thomas Huth <thuth@red

pci: x86: Rename pci_config_read() to pci_config_readl()

Cc: Thomas Huth <thuth@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Message-Id: <c13b07e15d2ffa2823894bc83be62de400f29e98.1478512824.git.agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

804e551c03-Nov-2016 Andrew Jones <drjones@redhat.com>

lib/x86/stack: fix null dereference

With gcc 6.2.1 (gcc-6.2.1-2.fc24.x86_64) hitting an assert() in x86
code causes an infinite loop. This is due to a null dereference in
backtrace_frame. Let's not

lib/x86/stack: fix null dereference

With gcc 6.2.1 (gcc-6.2.1-2.fc24.x86_64) hitting an assert() in x86
code causes an infinite loop. This is due to a null dereference in
backtrace_frame. Let's not do that.

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

show more ...

f7b87da625-Oct-2016 Peter Xu <peterx@redhat.com>

x86: vm: add assert to avoid multiple vm init

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

9111ccab22-Sep-2016 Radim Krčmář <rkrcmar@redhat.com>

x86: move APIC timer related defines to headers

Change names to match Linux where necessary.

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

a222b5e207-Jul-2016 Radim Krčmář <rkrcmar@redhat.com>

x86: apic: APIC ID tests

KVM commit 49bd29ba1dbd ("KVM: x86: reset APIC ID when enabling LAPIC",
2016-07-12) fixed xAPIC ID value after reset.

QEMU commit 5232d00a041c ("target-i386: Implement CPUI

x86: apic: APIC ID tests

KVM commit 49bd29ba1dbd ("KVM: x86: reset APIC ID when enabling LAPIC",
2016-07-12) fixed xAPIC ID value after reset.

QEMU commit 5232d00a041c ("target-i386: Implement CPUID[0xB] (Extended
Topology Enumeration)", 2016-05-12) added initial x2APIC to CPUID.

KVM commit a92e2543d6a8 ("KVM: x86: use hardware-compatible format
for APIC ID register", 2016-07-12) changed internal format of APIC ID
register, so make sure that guest-visible APIC ID was not been affected.

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

show more ...

6b0b05b411-Jul-2016 Paolo Bonzini <pbonzini@redhat.com>

asm-generic: add smp memory barriers

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

a0940b3110-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

io: Unify IO accessors across architectures

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>

Si

io: Unify IO accessors across architectures

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>

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

show more ...

2b0de97810-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

ppc64: Introduce lib/ppc64/asm/barrier.h

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>

Signe

ppc64: Introduce lib/ppc64/asm/barrier.h

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>

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

show more ...

5377698614-Jun-2016 Roman Kagan <rkagan@virtuozzo.com>

x86: barriers: add smp_*mb

Add smp_mb(), smb_rmb(), smb_wmb() for x86 matching the current kernel.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.co

x86: barriers: add smp_*mb

Add smp_mb(), smb_rmb(), smb_wmb() for x86 matching the current kernel.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

f1abb07b06-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

x86: io: Factor out ioremap()

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andr

x86: io: Factor out ioremap()

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

4f37c3a906-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

io: Make ioremap() prototype conform to Linux one

This update also adds missing __iomem specificator which
has been used by existing IO accessors.

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas H

io: Make ioremap() prototype conform to Linux one

This update also adds missing __iomem specificator which
has been used by existing IO accessors.

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

d10d16e106-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

x86: Cleanup PT_*_MASK flags

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andre

x86: Cleanup PT_*_MASK flags

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

1ad15f1006-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

x86: Cleanup PAGE_* constants

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andr

x86: Cleanup PAGE_* constants

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

8226c54006-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

x86: Introduce lib/x86/asm/barrier.h

Make x86 consistent with other architectures and put
memory barrier defines to lib/x86/asm/barrier.h

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thut

x86: Introduce lib/x86/asm/barrier.h

Make x86 consistent with other architectures and put
memory barrier defines to lib/x86/asm/barrier.h

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

5560138306-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

x86: Introduce lib/x86/asm/io.h

Make x86 consistent with other architectures and put
IO specific defines to lib/x86/asm/io.h

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>

x86: Introduce lib/x86/asm/io.h

Make x86 consistent with other architectures and put
IO specific defines to lib/x86/asm/io.h

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

3e394a5806-Jun-2016 Alexander Gordeev <agordeev@redhat.com>

x86: Introduce lib/x86/asm/page.h

Make x86 consistent with other architectures and put
memory page specific defines to lib/x86/asm/page.h

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thut

x86: Introduce lib/x86/asm/page.h

Make x86 consistent with other architectures and put
memory page specific defines to lib/x86/asm/page.h

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

cec0fd8619-Apr-2016 Andrew Jones <drjones@redhat.com>

stack: share api prototypes

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

bd7ec41819-Apr-2016 Andrew Jones <drjones@redhat.com>

x86: change exit to abort again

This is needed again because ed0a50e5 "x86: lib: debug dump
on unhandled exceptions" must have missed it in a rebase.

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

x86: change exit to abort again

This is needed again because ed0a50e5 "x86: lib: debug dump
on unhandled exceptions" must have missed it in a rebase.

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

show more ...

ed0a50e522-Mar-2016 Peter Feiner <pfeiner@google.com>

x86: lib: debug dump on unhandled exceptions

Prints the stack trace and registers.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Reviewed-By: Andrew Jones <drjones@redhat.com>
Message-Id: <d5511

x86: lib: debug dump on unhandled exceptions

Prints the stack trace and registers.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Reviewed-By: Andrew Jones <drjones@redhat.com>
Message-Id: <d5511a7b6d4b2fad9c5b11116d778084a58a6f01.1458689655.git.pfeiner@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

5226679122-Mar-2016 Peter Feiner <pfeiner@google.com>

lib: backtrace printing

Functions to walk stack and print backtrace. The stack's unadorned as

STACK: [@]addr addr addr ...

where the optional @ indicates that addr isn't a return address.

A foll

lib: backtrace printing

Functions to walk stack and print backtrace. The stack's unadorned as

STACK: [@]addr addr addr ...

where the optional @ indicates that addr isn't a return address.

A follow-up patch post-processes the output to pretty-print the stack.

Frame stack walker is just a stub on arm and ppc.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Reviewed-By: Andrew Jones <drjones@redhat.com>
Message-Id: <adc65c3511125ea46f0fe53a2fc53a062ada7924.1458689655.git.pfeiner@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

3b50efe318-Mar-2016 Peter Feiner <pfeiner@google.com>

x86: vmx: better vm{launch,resume} error handling

This patch splits out entry error handling from other exit handling
since most tests don't expect entry errors and thus don't check the
conditions p

x86: vmx: better vm{launch,resume} error handling

This patch splits out entry error handling from other exit handling
since most tests don't expect entry errors and thus don't check the
conditions properly. Also enables tests for early entry errors (i.e.,
an entry_error_handler can return VMX_TEST_RESUME).

Consolidates and simplifies control flow. Now, vmx_run is the central
validation point for exit handler statuses rather than splitting the
responsibility between exit_handler and vmx_run.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Message-Id: <b167ed218ed91d0da9d8aff93ce8175adec7c838.1458340713.git.pfeiner@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

e94079c511-Mar-2016 Paolo Bonzini <pbonzini@redhat.com>

x86: access: add PKE testcases

Tested with TCG so far.

access.c could stand a rewrite, but for now this will do.

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

132c700d03-Mar-2016 Peter Feiner <pfeiner@google.com>

x86: eventinj: make test work with -O0

With optimizations disabled, the compiler generated a call for
irq_enable() -- rather than just inlining an sti instruction as
expected. Thus the irq_enable re

x86: eventinj: make test work with -O0

With optimizations disabled, the compiler generated a call for
irq_enable() -- rather than just inlining an sti instruction as
expected. Thus the irq_enable ret would run in the sti shadow and the
vectors would fire in the wrong order.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Message-Id: <1456967378-6367-5-git-send-email-pfeiner@google.com>
[Add comment to irq_enable. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...

1...<<11121314151617