History log of /kvm-unit-tests/x86/s3.c (Results 1 – 15 of 15)
Revision Date Author Comments
# e526bc78 01-Jul-2023 Andrew Jones <andrew.jones@linux.dev>

Merge branch 'arm/queue' into 'master'

arm/arm64: EFI support, arm64 backtrace support, PMU test improvements, and more

See merge request kvm-unit-tests/kvm-unit-tests!43


# 64cd0cc1 30-May-2023 Nikos Nikoleris <nikos.nikoleris@arm.com>

lib/acpi: Extend the definition of the FADT table

This change add more fields in the APCI table FADT to allow for the
discovery of the PSCI conduit in arm64 systems. The definition for
FADT is simil

lib/acpi: Extend the definition of the FADT table

This change add more fields in the APCI table FADT to allow for the
discovery of the PSCI conduit in arm64 systems. The definition for
FADT is similar to the one in include/acpi/actbl.h in Linux.

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

show more ...


# 10cda508 30-May-2023 Nikos Nikoleris <nikos.nikoleris@arm.com>

x86: Avoid references to fields of ACPI tables

ACPI table definitions in <acpi.h> have to be packed. However, once
we do that, direct references to members of the packed struct might
result in unal

x86: Avoid references to fields of ACPI tables

ACPI table definitions in <acpi.h> have to be packed. However, once
we do that, direct references to members of the packed struct might
result in unaligned pointers and gcc complains about them. This change
modifies the code to avoid such references in preparation for making
the APCI table definitions packed.

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

show more ...


# 169f786f 30-May-2023 Alexandru Elisei <alexandru.elisei@arm.com>

lib/acpi: Convert table names to Linux style

kvm-unit-tests is about to import several table struct definitions from
Linux, convert the names of the existing tables to follow the Linux style.

This

lib/acpi: Convert table names to Linux style

kvm-unit-tests is about to import several table struct definitions from
Linux, convert the names of the existing tables to follow the Linux style.

This is purely a cosmetic change and no functional change is intended.

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

show more ...


# 670b1f54 30-May-2023 Nikos Nikoleris <nikos.nikoleris@arm.com>

lib: Move acpi header and implementation to lib

Move acpi.h to lib to make it available for other architectures.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Shaoqin Huang

lib: Move acpi header and implementation to lib

Move acpi.h to lib to make it available for other architectures.

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

show more ...


# d26193a0 01-Sep-2020 Roman Bolshakov <r.bolshakov@yadro.com>

lib: x86: Use portable format macros for uint32_t

Compilation of the files fails on ARCH=i386 with i686-elf gcc because
they use "%x" or "%d" format specifier that does not match the actual
size of

lib: x86: Use portable format macros for uint32_t

Compilation of the files fails on ARCH=i386 with i686-elf gcc because
they use "%x" or "%d" format specifier that does not match the actual
size of uint32_t:

x86/s3.c: In function ‘main’:
x86/s3.c:53:35: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘u32’ {aka ‘long unsigned int’}
[-Werror=format=]
53 | printf("PM1a event registers at %x\n", fadt->pm1a_evt_blk);
| ~^ ~~~~~~~~~~~~~~~~~~
| | |
| | u32 {aka long unsigned int}
| unsigned int
| %lx

Use PRIx32 instead of "x" and PRId32 instead of "d" to take into account
u32_long case.

Cc: Alex Bennée <alex.bennee@linaro.org>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Cameron Esfahani <dirty@apple.com>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200901085056.33391-6-r.bolshakov@yadro.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...


# db4898e8 27-Jun-2018 Thomas Huth <thuth@redhat.com>

Mark many test functions as static

... so we can compile these files with -Wmissing-prototypes, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1530086528-21665-5-git-send-email-thu

Mark many test functions as static

... so we can compile these files with -Wmissing-prototypes, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1530086528-21665-5-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...


# 47546cc7 25-Oct-2016 Paolo Bonzini <pbonzini@redhat.com>

rtc: support the Q35 chipset

Q35 resets the wakeup reasons at startup (it is a bug that i440FX
machine types do not do that, but it probably cannot be changed
for backwards compatibility reasons).

rtc: support the Q35 chipset

Q35 resets the wakeup reasons at startup (it is a bug that i440FX
machine types do not do that, but it probably cannot be changed
for backwards compatibility reasons).

For the S3 test to work with the Q35 machine types, we have to
enable RTC wakeup manually.

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

show more ...


# b006d7eb 03-Mar-2016 Andrew Jones <drjones@redhat.com>

x86: fix printf format warnings

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1457008388-12749-5-git-send-email-drjones@redhat.com>
[Fix c

x86: fix printf format warnings

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1457008388-12749-5-git-send-email-drjones@redhat.com>
[Fix conflicts with "x86: clean up exit use, use abort". - Paolo
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Conflicts:

lib/x86/desc.c

show more ...


# a5d12b9f 21-Aug-2015 Paolo Bonzini <pbonzini@redhat.com>

x86: get ACPI port addresses from FADT

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


# 372e3528 21-Aug-2015 Paolo Bonzini <pbonzini@redhat.com>

x86: add small library to find ACPI tables

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


# 0b9e64c4 17-Oct-2013 Gleb Natapov <gleb@redhat.com>

Fix compilation on older compilers.

%d0 constrain is wrong, rely on variable length to choose correct
register instead.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsir

Fix compilation on older compilers.

%d0 constrain is wrong, rely on variable length to choose correct
register instead.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>

show more ...


# 448c1f27 14-Apr-2013 Gleb Natapov <gleb@redhat.com>

Use two bytes write to cause S3.

HW emulation expects two bytes write.

Signed-off-by: Gleb Natapov <gleb@redhat.com>


# 798b0d95 05-Mar-2013 Paolo Bonzini <pbonzini@redhat.com>

s3: wake up on RTC event

The S3 test requires user interaction to terminate. Set up the
RTC alarm instead, so that the test will end after one second.

Signed-off-by: Paolo Bonzini <pbonzini@redhat

s3: wake up on RTC event

The S3 test requires user interaction to terminate. Set up the
RTC alarm instead, so that the test will end after one second.

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

show more ...


# c1bc863a 11-Jan-2011 Gleb Natapov <gleb@redhat.com>

Test that vcpu does not continue to run after issuing S3.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>