DocumentCode
177156
Title
Formal Verification of Interrupt Injection in a Hypervisor
Author
Haozhong Zhang ; Yu Guo
Author_Institution
Sch. of Comput. Sci. & Technol., Univ. of Sci. & Technol. of China, Hefei, China
fYear
2014
fDate
1-3 Sept. 2014
Firstpage
74
Lastpage
81
Abstract
Operating systems usually rely on external interrupts as notifications of various events, such as the completion of a DMA transfer and the coming of a time point. The loss of external interrupts may affect the correct execution of operating systems. In the virtualization environment, some interrupts accepted by the virtual CPU are injected by the hypervisor. The hypervisor is responsible to implement a reliable interrupt injection mechanism so as to avoid losing external interrupts in the virtual machine. In this paper, we apply the formal method to verify the interrupt injection implementation in a research hypervisor. First, we formally define a machine model with a more realistic x86 interrupt model than others used in the existing work. Our interrupt model defines the semantics of the interrupt shadow which has never been modeled before. It also defines the semantics of the interrupt injection mechanism provided by the x86 CPU virtualization extensions, such as Intel VMX and AMD SVM. Second, we formally define the safety property and reliability property of the interrupt injection mechanism on this interrupt model. Finally, we take the interrupt injection code in a research hypervisor as an example and verify that it satisfies above two properties.
Keywords
formal verification; reliability; virtual machines; virtualisation; formal verification; hypervisor; interrupt injection code; interrupt injection implementation; interrupt shadow; machine model; reliability property; safety property; virtual machine monitors; x86 CPU virtualization extensions; x86 interrupt model; Operating systems; Program processors; Registers; Semantics; Virtual machine monitors; Virtual machining; Virtualization;
fLanguage
English
Publisher
ieee
Conference_Titel
Theoretical Aspects of Software Engineering Conference (TASE), 2014
Conference_Location
Changsha
Type
conf
DOI
10.1109/TASE.2014.26
Filename
6976571
Link To Document