{"title":"实时来宾的近本地中断延迟:通过内存映射变形的处理程序仿真","authors":"Farhad Andalibi, Paulo Garcia","doi":"10.1145/3456172.3456197","DOIUrl":null,"url":null,"abstract":"Interrupt latency, critical in real-time applications, is increased in virtualized systems; interrupts intended for a non-running partition can be delayed up to the length of the scheduling period. State-of-the art techniques for decreasing latency in real-time guests relax temporal isolation requirements, allowing guests’ interrupt handlers to be executed within another partition’s time slot. However, this approach does not yet achieve native latencies, due to the need to switch guests’ contexts, inducing overhead for Hypervisor execution. This paper presents an approach for reducing interrupt latencies: by taking advantage of virtualization support hardware in modern microprocessors, we show that real-time guests’ interrupt handlers can be executed within Hypervisor hardware context, i.e., by Hypervisor-dedicated processor hardware, eliminating the need for switching guests’ context and approaching native latencies. This is achieved by morphing the Hypervisor’s memory map translation mechanisms, so software is executed within the real-time guest’s memory context, allowing near-native interrupt latency. We evaluate our implementation, consisting of virtualization hardware and software, on a softcore ARM processor prototyped on a Xilinx Virtex 5 FPGA, running Linux and FreeRTOS. Results show memory map morphing is capable of achieving near-native interrupt latency for a real-time guest, outperforming the state of the art.","PeriodicalId":133908,"journal":{"name":"Proceedings of the 2021 7th International Conference on Computing and Data Engineering","volume":"192 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-01-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Near-Native Interrupt Latency in Real-Time Guests: Handler Emulation Through Memory Map Morphing\",\"authors\":\"Farhad Andalibi, Paulo Garcia\",\"doi\":\"10.1145/3456172.3456197\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Interrupt latency, critical in real-time applications, is increased in virtualized systems; interrupts intended for a non-running partition can be delayed up to the length of the scheduling period. State-of-the art techniques for decreasing latency in real-time guests relax temporal isolation requirements, allowing guests’ interrupt handlers to be executed within another partition’s time slot. However, this approach does not yet achieve native latencies, due to the need to switch guests’ contexts, inducing overhead for Hypervisor execution. This paper presents an approach for reducing interrupt latencies: by taking advantage of virtualization support hardware in modern microprocessors, we show that real-time guests’ interrupt handlers can be executed within Hypervisor hardware context, i.e., by Hypervisor-dedicated processor hardware, eliminating the need for switching guests’ context and approaching native latencies. This is achieved by morphing the Hypervisor’s memory map translation mechanisms, so software is executed within the real-time guest’s memory context, allowing near-native interrupt latency. We evaluate our implementation, consisting of virtualization hardware and software, on a softcore ARM processor prototyped on a Xilinx Virtex 5 FPGA, running Linux and FreeRTOS. Results show memory map morphing is capable of achieving near-native interrupt latency for a real-time guest, outperforming the state of the art.\",\"PeriodicalId\":133908,\"journal\":{\"name\":\"Proceedings of the 2021 7th International Conference on Computing and Data Engineering\",\"volume\":\"192 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-01-15\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 2021 7th International Conference on Computing and Data Engineering\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3456172.3456197\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2021 7th International Conference on Computing and Data Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3456172.3456197","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Near-Native Interrupt Latency in Real-Time Guests: Handler Emulation Through Memory Map Morphing
Interrupt latency, critical in real-time applications, is increased in virtualized systems; interrupts intended for a non-running partition can be delayed up to the length of the scheduling period. State-of-the art techniques for decreasing latency in real-time guests relax temporal isolation requirements, allowing guests’ interrupt handlers to be executed within another partition’s time slot. However, this approach does not yet achieve native latencies, due to the need to switch guests’ contexts, inducing overhead for Hypervisor execution. This paper presents an approach for reducing interrupt latencies: by taking advantage of virtualization support hardware in modern microprocessors, we show that real-time guests’ interrupt handlers can be executed within Hypervisor hardware context, i.e., by Hypervisor-dedicated processor hardware, eliminating the need for switching guests’ context and approaching native latencies. This is achieved by morphing the Hypervisor’s memory map translation mechanisms, so software is executed within the real-time guest’s memory context, allowing near-native interrupt latency. We evaluate our implementation, consisting of virtualization hardware and software, on a softcore ARM processor prototyped on a Xilinx Virtex 5 FPGA, running Linux and FreeRTOS. Results show memory map morphing is capable of achieving near-native interrupt latency for a real-time guest, outperforming the state of the art.