mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 11:04:58 -06:00
tests: correct typos
Correct typos automatically found with the `typos` tool <https://crates.io/crates/typos> Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
c555b504d0
commit
35a5a331e4
3 changed files with 5 additions and 5 deletions
|
@ -1060,7 +1060,7 @@ class EventLogDescriptor(unpack.Struct):
|
||||||
0x16: 'Log Area Reset/Cleared',
|
0x16: 'Log Area Reset/Cleared',
|
||||||
0x17: 'System boot',
|
0x17: 'System boot',
|
||||||
xrange(0x18, 0x7F): 'Unused, available for assignment',
|
xrange(0x18, 0x7F): 'Unused, available for assignment',
|
||||||
xrange(0x80, 0xFE): 'Availalbe for system- and OEM-specific assignments',
|
xrange(0x80, 0xFE): 'Available for system- and OEM-specific assignments',
|
||||||
0xFF: 'End of log'
|
0xFF: 'End of log'
|
||||||
}
|
}
|
||||||
yield 'log_type', u.unpack_one('B'), unpack.format_table("{}", _event_log_type_descriptors)
|
yield 'log_type', u.unpack_one('B'), unpack.format_table("{}", _event_log_type_descriptors)
|
||||||
|
|
|
@ -165,7 +165,7 @@ class MemAddrCheck(QemuSystemTest):
|
||||||
For q35-7.0 machines, "above 4G" memory starts are 4G.
|
For q35-7.0 machines, "above 4G" memory starts are 4G.
|
||||||
pci64_hole size is 32 GiB. Since TCG_PHYS_ADDR_BITS is defined to
|
pci64_hole size is 32 GiB. Since TCG_PHYS_ADDR_BITS is defined to
|
||||||
be 40, TCG emulated CPUs have maximum of 1 TiB (1024 GiB) of
|
be 40, TCG emulated CPUs have maximum of 1 TiB (1024 GiB) of
|
||||||
directly addressible memory.
|
directly addressable memory.
|
||||||
Hence, maxmem value at most can be
|
Hence, maxmem value at most can be
|
||||||
1024 GiB - 4 GiB - 1 GiB per slot for alignment - 32 GiB + 0.5 GiB
|
1024 GiB - 4 GiB - 1 GiB per slot for alignment - 32 GiB + 0.5 GiB
|
||||||
which is equal to 987.5 GiB. Setting the value to 988 GiB should
|
which is equal to 987.5 GiB. Setting the value to 988 GiB should
|
||||||
|
@ -190,7 +190,7 @@ class MemAddrCheck(QemuSystemTest):
|
||||||
AMD_HT_START is defined to be at 1012 GiB. So for q35 machines
|
AMD_HT_START is defined to be at 1012 GiB. So for q35 machines
|
||||||
version > 7.0 and AMD cpus, instead of 1024 GiB limit for 40 bit
|
version > 7.0 and AMD cpus, instead of 1024 GiB limit for 40 bit
|
||||||
processor address space, it has to be 1012 GiB , that is 12 GiB
|
processor address space, it has to be 1012 GiB , that is 12 GiB
|
||||||
less than the case above in order to accomodate HT hole.
|
less than the case above in order to accommodate HT hole.
|
||||||
Make sure QEMU fails when maxmem size is 976 GiB (12 GiB less
|
Make sure QEMU fails when maxmem size is 976 GiB (12 GiB less
|
||||||
than 988 GiB).
|
than 988 GiB).
|
||||||
"""
|
"""
|
||||||
|
@ -297,7 +297,7 @@ class MemAddrCheck(QemuSystemTest):
|
||||||
:avocado: tags=arch:x86_64
|
:avocado: tags=arch:x86_64
|
||||||
|
|
||||||
AMD processor with 41 bits. Max cpu hw address = 2 TiB.
|
AMD processor with 41 bits. Max cpu hw address = 2 TiB.
|
||||||
Same as above but by setting maxram beween 976 GiB and 992 Gib,
|
Same as above but by setting maxram between 976 GiB and 992 Gib,
|
||||||
QEMU should start fine.
|
QEMU should start fine.
|
||||||
"""
|
"""
|
||||||
self.vm.add_args('-S', '-cpu', 'EPYC-v4,phys-bits=41',
|
self.vm.add_args('-S', '-cpu', 'EPYC-v4,phys-bits=41',
|
||||||
|
|
|
@ -191,7 +191,7 @@ class ReverseDebugging(LinuxKernelTest):
|
||||||
self.check_pc(g, steps[-1])
|
self.check_pc(g, steps[-1])
|
||||||
logger.info('successfully reached %x' % steps[-1])
|
logger.info('successfully reached %x' % steps[-1])
|
||||||
|
|
||||||
logger.info('exitting gdb and qemu')
|
logger.info('exiting gdb and qemu')
|
||||||
vm.shutdown()
|
vm.shutdown()
|
||||||
|
|
||||||
class ReverseDebugging_X86_64(ReverseDebugging):
|
class ReverseDebugging_X86_64(ReverseDebugging):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue