[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/40] tests: boot_sector_test(): make it multi-shot
From: |
Igor Mammedov |
Subject: |
[PATCH 15/40] tests: boot_sector_test(): make it multi-shot |
Date: |
Thu, 12 Jan 2023 15:02:47 +0100 |
if the function is called the 2nd time within the same qtest session,
it will prematurely return before boot sector is executed due to
remaining signature.
Follow up patch will add VM reboot to a test case and will
call boot_sector_test() again within the same qtest env,
which may lead to above issue.
To fix it make sure signature in VM RAM is no more before
exiting boot_sector_test(), so next time it's called it
will wait boot sector is completed again.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
CC: Thomas Huth <thuth@redhat.com>
CC: Laurent Vivier <lvivier@redhat.com>
---
tests/qtest/boot-sector.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/qtest/boot-sector.c b/tests/qtest/boot-sector.c
index d3f68018e7..679ee17e2a 100644
--- a/tests/qtest/boot-sector.c
+++ b/tests/qtest/boot-sector.c
@@ -153,6 +153,8 @@ void boot_sector_test(QTestState *qts)
signature_high = qtest_readb(qts, SIGNATURE_ADDR + 1);
signature = (signature_high << 8) | signature_low;
if (signature == SIGNATURE) {
+ /* wipe signature */
+ qtest_writeb(qts, SIGNATURE_ADDR, 0x00);
break;
}
--
2.31.1
- [PATCH 00/40] x86: fixing and cleaning up ACPI PCI code part 3, Igor Mammedov, 2023/01/12
- [PATCH 05/40] tests: acpi: update expected blobs, Igor Mammedov, 2023/01/12
- [PATCH 02/40] tests: acpi: cleanup arguments to make them more readable, Igor Mammedov, 2023/01/12
- [PATCH 18/40] pcihp: drop pcihp_bridge_en dependency when composing PCNT method, Igor Mammedov, 2023/01/12
- [PATCH 11/40] pci: acpihp: assign BSEL only to coldplugged bridges, Igor Mammedov, 2023/01/12
- [PATCH 27/40] x86: pcihp: acpi: prepare slot ignore rule to work with self describing bridges, Igor Mammedov, 2023/01/12
- [PATCH 15/40] tests: boot_sector_test(): make it multi-shot,
Igor Mammedov <=
- [PATCH 03/40] tests: acpi: whitelist DSDT blobs for tests that use pci-bridges, Igor Mammedov, 2023/01/12
- [PATCH 09/40] pci: acpi hotplug: rename x-native-hotplug to x-do-not-expose-native-hotplug-cap, Igor Mammedov, 2023/01/12
- [PATCH 14/40] tests: acpi: extend bridge tests with hotplugged bridges, Igor Mammedov, 2023/01/12
- [PATCH 08/40] x86: acpi: pcihp: clean up duplicate bridge_in_acpi assignment, Igor Mammedov, 2023/01/12
- [PATCH 12/40] x86: pcihp: fix invalid AML PCNT calls to hotplugged bridges, Igor Mammedov, 2023/01/12
- [PATCH 22/40] pcihp: do not put empty PCNT in DSDT, Igor Mammedov, 2023/01/12
- [PATCH 06/40] tests: acpi: cleanup use_uefi argument usage, Igor Mammedov, 2023/01/12
- [PATCH 17/40] tests: acpi: whitelist DSDT before refactoring acpi based PCI hotplug machinery, Igor Mammedov, 2023/01/12
- [PATCH 19/40] tests: acpi: update expected blobs, Igor Mammedov, 2023/01/12
- [PATCH 10/40] pcihp: piix4: do not call acpi_pcihp_reset() when ACPI PCI hotplug is disabled, Igor Mammedov, 2023/01/12