Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3341105.3373975acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
research-article

On making xen detect hypercalls and memory accesses for simulating virtualization-enabled processors

Published: 30 March 2020 Publication History

Abstract

Due to the widespread use of cloud-based systems that are shared by multiple users, new processors are enhanced for security in virtualization. However, it is a challenging task to develop simulators for such processors, mainly, due to the lack of relevant information at the application level for computing performance parameters. This paper proposes a methodology to extract the required information from the hypervisor and transfer it to the hardware-based simulator for simulation of such processors. The paper proposes an approach to detect hypercalls made by the guest operating system during the execution of the guest application program on Xen hypervisor. This paper considers five hypercalls, viz., mmu_update, memory_op, update_va_mapping, grant_table_op and mmuext_op. The results show that for the guest application executed, among these five hypercalls, mmu_update is called the maximum number of times, while memory_op is called the minimum number of times. The paper also proposes an approach to signal the memory accesses by Xen on the communications (COM) port. This signal is observed on the cathode ray oscilloscope (CRO) and may be utilized for simulation. This research is valuable as it concludes that virtualization-enabled processors may be effectively simulated by extracting the required information from the hypervisor.

References

[1]
Advanced Micro Devices (AMD) 2005. AMD64 Virtualization Codenamed "Pacifica" Technology: Secure Virtual Machine Architecture Reference Manual, Revision 3.01. Advanced Micro Devices (AMD). Publication No. 33047.
[2]
A. Akram and L. Sawalha. 2016. x86 computer architecture simulators: A comparative study. In 2016 IEEE 34th International Conference on Computer Design (ICCD). 638--645.
[3]
Hari Angepat, Derek Chiou, Eric S. Chung, and James C. Hoe. 2014. FPGA-Accelerated Simulation of Computer Systems. Morgan & Claypool. https://ieeexplore.ieee.org/document/6894333
[4]
T. Austin, E. Larson, and D. Ernst. 2002. SimpleScalar: an infrastructure for computer system modeling. Computer 35, 2 (Feb 2002), 59--67.
[5]
Paul Barham, Boris Dragovic, Keir Fraser, Steven Hand, Tim Harris, Alex Ho, Rolf Neugebauer, Ian Pratt, and Andrew Warfield. 2003. Xen and the Art of Virtualization. SIGOPS Oper. Syst. Rev. 37, 5 (Oct. 2003), 164--177.
[6]
Fabrice Bellard. 2005. QEMU, a Fast and Portable Dynamic Translator. In Proceedings of the Annual Conference on USENIX Annual Technical Conference (ATEC '05). USENIX Association, Berkeley, CA, USA, 41--41. http://dl.acm.org/citation.cfm?id=1247360.1247401
[7]
Nathan Binkert, Bradford Beckmann, Gabriel Black, Steven K. Reinhardt, Ali Saidi, Arkaprava Basu, Joel Hestness, Derek R. Hower, Tushar Krishna, Somayeh Sardashti, Rathijit Sen, Korey Sewell, Muhammad Shoaib, Nilay Vaish, Mark D. Hill, and David A. Wood. 2011. The Gem5 Simulator. SIGARCH Comput. Archit. News 39, 2 (Aug. 2011), 1--7.
[8]
Patrick Bohrer, James Peterson, Mootaz Elnozahy, Ram Rajamony, Ahmed Gheith, Ron Rockhold, Charles Lefurgy, Hazim Shafi, Tarun Nakra, Rick Simpson, Evan Speight, Kartik Sudeep, Eric Van Hensbergen, and Lixin Zhang. 2004. Mambo: A Full System Simulator for the PowerPC Architecture. SIGMETRICS Perform. Eval. Rev. 31, 4 (March 2004), 8--12.
[9]
P. Chandran, L. Garg, and A. Kumar. 2017. Multikernel Simulation: A New Approach to Study Rollback Sensitive Memory Architecture. In 2017 IEEE 3rd International Conference on Collaboration and Internet Computing (CIC). 437--442.
[10]
D. Chiou, D. Sunwoo, J. Kim, N. A. Patil, W. Reinhart, D. E. Johnson, J. Keefe, and H. Angepat. 2007. FPGA-Accelerated Simulation Technologies (FAST): Fast, Full-System, Cycle-Accurate Simulators. In 40th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO 2007). 249--261.
[11]
L.B. Das. 2014. The X86 Microprocessor, 2e. Pearson India. https://books.google.co.in/books?id=OZaKBAAAQBAJ
[12]
Antonio Garcia-Guirado, Ricardo FernÃąndez-Pascual, and JosÃl' M. Garcia. 2009. Virtual-GEMS: An Infrastructure To Simulate Virtual Machines. In International workshop on modeling, benchmarking and simulation.
[13]
M. Hoseinzadeh. 2018. Flow-Based Simulation Methodology. IEEE Computer Architecture Letters 17, 1 (Jan 2018), 51--54.
[14]
R. Jithin and Priya Chandran. 2016. Dynamic Partitioning of Physical Memory Among Virtual Machines: ASMI:Architectural Support for Memory Isolation. In Proceedings of the 31st Annual ACM Symposium on Applied Computing (SAC '16). ACM, New York, NY, USA, 474--476. https://doi.org'
[15]
Chi-Keung Luk, Robert Cohn, Robert Muth, Harish Patil, Artur Klauser, Geoff Lowney, Steven Wallace, Vijay Janapa Reddi, and Kim Hazelwood. 2005. Pin: Building Customized Program Analysis Tools with Dynamic Instrumentation. In Proceedings of the 2005 ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI '05). ACM, New York, NY, USA, 190--200.
[16]
Carl J. Mauer, Mark D. Hill, and David A. Wood. 2002. Full-system Timing-first Simulation. In Proceedings of the 2002 ACM SIGMETRICS International Conference on Measurement and Modeling of Computer Systems (SIGMETRICS '02). ACM, New York, NY, USA, 108--116.
[17]
Swapneel C. Mhatre, Priya Chandran, and Jithin R. 2018. On the Simulation of Processors Enhanced for Security in Virtualization. In Companion of the 2018 ACM/SPEC International Conference on Performance Engineering (ICPE '18). ACM, New York, NY, USA, 51--52.
[18]
Seyed Hossein Nikounia and Siamak Mohammadi. 2015. Gem5v: a modified gem5 for simulating virtualized systems. The Journal of Supercomputing 71, 4 (01 Apr 2015), 1484--1504.
[19]
A. Patel, F. Afram, S. Chen, and K. Ghose. 2011. MARSS: A full system simulator for multicore x86 CPUs. In 2011 48th ACM/EDAC/IEEE Design Automation Conference (DAC). 1050--1055.
[20]
S. Pinto, J. Pereira, T. Gomes, M. Ekpanyapong, and A. Tavares. 2017. Towards a TrustZone-Assisted Hypervisor for Real-Time Embedded Systems. IEEE Computer Architecture Letters 16, 2 (July 2017), 158--161.
[21]
M. Rosenblum, S. A. Herrod, E. Witchel, and A. Gupta. 1995. Complete computer system simulation: the SimOS approach. IEEE Parallel Distributed Technology: Systems Applications 3, 4 (Winter 1995), 34--43.
[22]
Daniel Sanchez and Christos Kozyrakis. 2013. ZSim: Fast and Accurate Microarchitectural Simulation of Thousand-core Systems. In Proceedings of the 40th Annual International Symposium on Computer Architecture (ISCA '13). ACM, New York, NY, USA, 475--486.
[23]
Eric Schnarr and James R. Larus. 1998. Fast Out-of-order Processor Simulation Using Memoization. In Proceedings of the Eighth International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS VIII). ACM, New York, NY, USA, 283--294.
[24]
S. Shoundic, P. Chandran, P. Krishna, V. Reddy, B. Jayachandra, and L. Pande. 2016. Extended-HyperWall: Hardware support for rollback secure virtualization. In 2016 International Conference on Advances in Computing, Communications and Informatics (ICACCI). 1674--1681.
[25]
Tom Spink, Harry Wagstaff, and Björn Franke. 2019. A Retargetable System-Level DBT Hypervisor. In 2019 USENIX Annual Technical Conference (USENIX ATC 19). USENIX Association, Renton, WA, 505--520. https://www.usenix.org/conference/atc19/presentation/spink
[26]
A. Tchana, B. Ekane, B. Teabe, and D. Hagimont. 2015. VMcSim: A Detailed Many-core Simulator for Virtualized Systems. In 2015 IEEE 8th International Conference on Cloud Computing. 195--202.
[27]
Rich Uhlig, Gil Neiger, Dion Rodgers, Amy L. Santoni, Fernando C. M. Martins, Andrew V. Anderson, Steven M. Bennett, Alain Kagi, Felix H. Leung, and Larry Smith. 2005. Intel Virtualization Technology. Computer 38, 5 (May 2005), 48--56.
[28]
Andrew Whitaker, Marianne Shaw, and Steven D. Gribble. 2002. Scale and Performance in the Denali Isolation Kernel. SIGOPS Oper. Syst. Rev. 36, SI (Dec. 2002), 195--209.
[29]
J. Wu, X. Zhao, X. Sui, and X. Yang. 2010. PVMsim: A parallel simulation platform to evaluate virtual machines. In 2010 2nd International Conference on Future Computer and Communication, Vol. 2. V2-551--V2-556.
[30]
J. J. Yi and D. J. Lilja. 2006. Simulation of computer architectures: simulators, benchmarks, methodologies, and recommendations. IEEE Trans. Comput. 55, 3 (March 2006), 268--280.
[31]
M. T. Yourst. 2007. PTLsim: A Cycle Accurate Full System x86-64 Microarchitectural Simulator. In 2007 IEEE International Symposium on Performance Analysis of Systems Software. 23--34.

Cited By

View all
  • (2024)On the simulation of hypervisor instructions for accurate timing simulation of virtualized systemsInternational Journal of Information Technology10.1007/s41870-024-01862-6Online publication date: 30-May-2024
  • (2023)On the Measurement of Performance Metrics for Virtualization-Enhanced ArchitecturesProceedings of the 38th ACM/SIGAPP Symposium on Applied Computing10.1145/3555776.3577705(49-56)Online publication date: 27-Mar-2023

Index Terms

  1. On making xen detect hypercalls and memory accesses for simulating virtualization-enabled processors

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    SAC '20: Proceedings of the 35th Annual ACM Symposium on Applied Computing
    March 2020
    2348 pages
    ISBN:9781450368667
    DOI:10.1145/3341105
    © 2020 Association for Computing Machinery. ACM acknowledges that this contribution was authored or co-authored by an employee, contractor or affiliate of a national government. As such, the Government retains a nonexclusive, royalty-free right to publish or reproduce this article, or to allow others to do so, for Government purposes only.

    Sponsors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 30 March 2020

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. cloud computing
    2. computer architecture
    3. security
    4. simulation
    5. virtualization

    Qualifiers

    • Research-article

    Conference

    SAC '20
    Sponsor:
    SAC '20: The 35th ACM/SIGAPP Symposium on Applied Computing
    March 30 - April 3, 2020
    Brno, Czech Republic

    Acceptance Rates

    Overall Acceptance Rate 1,650 of 6,669 submissions, 25%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)10
    • Downloads (Last 6 weeks)1
    Reflects downloads up to 09 Nov 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)On the simulation of hypervisor instructions for accurate timing simulation of virtualized systemsInternational Journal of Information Technology10.1007/s41870-024-01862-6Online publication date: 30-May-2024
    • (2023)On the Measurement of Performance Metrics for Virtualization-Enhanced ArchitecturesProceedings of the 38th ACM/SIGAPP Symposium on Applied Computing10.1145/3555776.3577705(49-56)Online publication date: 27-Mar-2023

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media