mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-22 17:23:06 +00:00
vmtest: also disable onoatimehack on QEMU 5.0.1
The fix was backported to QEMU's 5.0 stable branch and released in 5.0.1. Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
parent
286c09844e
commit
d829401e5f
@ -153,9 +153,10 @@ def run_in_vm(command: str, *, vmlinuz: str, build_dir: str) -> int:
|
||||
|
||||
# multidevs was added in QEMU 4.2.0.
|
||||
multidevs = ",multidevs=remap" if qemu_version >= (4, 2) else ""
|
||||
# QEMU's 9pfs O_NOATIME handling was fixed in 5.1.0.
|
||||
# QEMU's 9pfs O_NOATIME handling was fixed in 5.1.0. The fix was backported
|
||||
# to 5.0.1.
|
||||
env = os.environ.copy()
|
||||
if qemu_version < (5, 1):
|
||||
if qemu_version < (5, 0, 1):
|
||||
onoatimehack_so = _build_onoatimehack(build_dir)
|
||||
env["LD_PRELOAD"] = f"{onoatimehack_so}:{env.get('LD_PRELOAD', '')}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user