Deterministic replay specifics in case of minimal device set

The deterministic replay technique can be used for debugging, improving reliability and robustness, software development and incident investigation (including reverse engineering of malware). The paper describes the implementation of deterministic replay of IA-32 based boards in QEMU. Another implem...

Full description

Bibliographic Details
Published in:Труды Института системного программирования РАН
Main Authors: V. Y. Efimov, K. A. Batuzov, V. A. Padaryan
Format: Article
Language:English
Published: Russian Academy of Sciences, Ivannikov Institute for System Programming 2018-10-01
Subjects:
Online Access:https://ispranproceedings.elpub.ru/jour/article/view/1091
_version_ 1848653089405403136
author V. Y. Efimov
K. A. Batuzov
V. A. Padaryan
author_facet V. Y. Efimov
K. A. Batuzov
V. A. Padaryan
author_sort V. Y. Efimov
collection DOAJ
container_title Труды Института системного программирования РАН
description The deterministic replay technique can be used for debugging, improving reliability and robustness, software development and incident investigation (including reverse engineering of malware). The paper describes the implementation of deterministic replay of IA-32 based boards in QEMU. Another implementation of this technique in QEMU had been previously published, but it uses a significantly different approach. Deterministic replay implementation details and features substantially depend on deterministic area - the part of virtual machine which execution is being replayed. For replay to be deterministic the implementation must ensure that (1) all information flows across deterministic area borders should be logged and then replayed, and (2) there is no non-determinism inside deterministic area. The proposed approach is called «Min VM» because it’s based on the minimal deterministic area while the former one should be called «Max VM» as it attempts to stretch deterministic area to cover whole virtual machine. The proposed approach shows the advantages of lower time overhead for logging phase and easier support (because it is much easier to ensure determinism of small deterministic area). On the other side the shortcoming is larger log size mostly because deterministic area doesn’t include hard disks so all data flows from disks are being logged. It makes the self-sufficient replay log: image of the original HDD is not needed to replay the execution. The implementation has been tested on popular operating systems: Windows XP, Windows 7 and GNU/Linux 3.12. The current implementation shows 6 - 42% slowdown depending on application code that exceeds previous approach slowdown (17 - 79%).
format Article
id doaj-c767918ab11b4857a622fcfd8beef044
institution Directory of Open Access Journals
issn 2079-8156
2220-6426
language English
publishDate 2018-10-01
publisher Russian Academy of Sciences, Ivannikov Institute for System Programming
record_format Article
spelling doaj-c767918ab11b4857a622fcfd8beef0442025-11-02T21:24:21ZengRussian Academy of Sciences, Ivannikov Institute for System ProgrammingТруды Института системного программирования РАН2079-81562220-64262018-10-01272659210.15514/ISPRAS-2015-27(2)-51091Deterministic replay specifics in case of minimal device setV. Y. Efimov0K. A. Batuzov1V. A. Padaryan2ИСП РАНИСП РАНИСП РАНThe deterministic replay technique can be used for debugging, improving reliability and robustness, software development and incident investigation (including reverse engineering of malware). The paper describes the implementation of deterministic replay of IA-32 based boards in QEMU. Another implementation of this technique in QEMU had been previously published, but it uses a significantly different approach. Deterministic replay implementation details and features substantially depend on deterministic area - the part of virtual machine which execution is being replayed. For replay to be deterministic the implementation must ensure that (1) all information flows across deterministic area borders should be logged and then replayed, and (2) there is no non-determinism inside deterministic area. The proposed approach is called «Min VM» because it’s based on the minimal deterministic area while the former one should be called «Max VM» as it attempts to stretch deterministic area to cover whole virtual machine. The proposed approach shows the advantages of lower time overhead for logging phase and easier support (because it is much easier to ensure determinism of small deterministic area). On the other side the shortcoming is larger log size mostly because deterministic area doesn’t include hard disks so all data flows from disks are being logged. It makes the self-sufficient replay log: image of the original HDD is not needed to replay the execution. The implementation has been tested on popular operating systems: Windows XP, Windows 7 and GNU/Linux 3.12. The current implementation shows 6 - 42% slowdown depending on application code that exceeds previous approach slowdown (17 - 79%).https://ispranproceedings.elpub.ru/jour/article/view/1091виртуальная машинадетерминированное воспроизведениеэмуляторqemu
spellingShingle V. Y. Efimov
K. A. Batuzov
V. A. Padaryan
Deterministic replay specifics in case of minimal device set
виртуальная машина
детерминированное воспроизведение
эмулятор
qemu
title Deterministic replay specifics in case of minimal device set
title_full Deterministic replay specifics in case of minimal device set
title_fullStr Deterministic replay specifics in case of minimal device set
title_full_unstemmed Deterministic replay specifics in case of minimal device set
title_short Deterministic replay specifics in case of minimal device set
title_sort deterministic replay specifics in case of minimal device set
topic виртуальная машина
детерминированное воспроизведение
эмулятор
qemu
url https://ispranproceedings.elpub.ru/jour/article/view/1091
work_keys_str_mv AT vyefimov deterministicreplayspecificsincaseofminimaldeviceset
AT kabatuzov deterministicreplayspecificsincaseofminimaldeviceset
AT vapadaryan deterministicreplayspecificsincaseofminimaldeviceset