skip to main content
article

A comparison of software and hardware techniques for x86 virtualization

Published:20 October 2006Publication History
Skip Abstract Section

Abstract

Until recently, the x86 architecture has not permitted classical trap-and-emulate virtualization. Virtual Machine Monitors for x86, such as VMware ® Workstation and Virtual PC, have instead used binary translation of the guest kernel code. However, both Intel and AMD have now introduced architectural extensions to support classical virtualization.We compare an existing software VMM with a new VMM designed for the emerging hardware support. Surprisingly, the hardware VMM often suffers lower performance than the pure software VMM. To determine why, we study architecture-level events such as page table updates, context switches and I/O, and find their costs vastly different among native, software VMM and hardware VMM execution.We find that the hardware support fails to provide an unambiguous performance advantage for two primary reasons: first, it offers no support for MMU virtualization; second, it fails to co-exist with existing software techniques for MMU virtualization. We look ahead to emerging techniques for addressing this MMU virtualization problem in the context of hardware-assisted virtualization.

References

  1. AGESEN, O., AND DETLEFS, D. Mixed-mode bytecode execution. Technical Report SMLI TR-200-87, Sun Microsystems, Inc., Mountain View, CA, USA, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. AMD. AMD64 Virtualization Codenamed "Pacifica" Technology: Secure Virtual Machine Architecture Reference Manual, May 2005.Google ScholarGoogle Scholar
  3. AMSDEN, Z., ARAI, D., HECHT, D., HOLLER, A., AND SUBRAHMANYAM, P. VMI: An interface for paravirtualization. Ottawa Linux Symposium (2006).Google ScholarGoogle Scholar
  4. BALA, V., DUESTERWALD, E., AND BANERJIA, S. Dynamo: a transparent dynamic optimization system. In PLDI '00: Proceedings of the ACM SIGPLAN 2000 conference on programming language design and implementation (New York, NY, USA, 2000), ACM Press, pp. 1--12. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. BARHAM, P., DRAGOVIC, B., FRASER, K., HAND, S., HARRIS, T., HO, A., NEUGEBAUER, R., PRATT, I., AND WARFIELD, A. Xen and the art of virtualization. In SOSP '03: Proceedings of the nineteenth ACM symposium on operating systems principles (New York, NY, USA, 2003), ACM Press, pp. 164--177. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. CLARK, D.W., AND STRECKER, W.D. Comments on "the case for the reduced instruction set computer," by Patterson and Ditzel. SIGARCH Comput. Archit. News 8, 6 (1980), 34--38. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. CMELIK, B., AND KEPPEL, D. Shade: a fast instruction-set simulator for execution profiling. In SIGMETRICS '96: Proceedings of the 1996 ACM SIGMETRICS international conference on measurement and modeling of computer systems (New York, NY, USA, 1994), ACM Press, pp. 128--137. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. CRAMER, T., FRIEDMAN, R., MILLER, T., SEBERGER, D., WILSON, R., AND WOLCZKO, M. Compiling java just in time. IEEE Micro 17, 3 (1997), 36--43. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. DEHNERT, J.C., GRANT, B.K., BANNING, J.P., JOHNSON, R., KISTLER, T., KLAIBER, A., AND MATTSON, J. The transmeta code morphing software: using speculation, recovery, and adaptive retranslation to address real-life challenges. In CGO '03: Proceedings of the international symposium on code generation and optimization (Washington, DC, USA, 2003), IEEE Computer Society, pp. 15--24. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. DEITEL, H.M. An introduction to operating systems (2nd ed.). Addison-Wesley Longman Publishing Co., Inc., Boston, MA, USA, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. HENNESSY, J.L., AND PATTERSON, D.A. Computer architecture: a quantitative approach. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. INTEL CORPORATION. Intel R Virtualization Technology Specification for the IA-32 Intel R Architecture, April 2005.Google ScholarGoogle Scholar
  13. KARGER, P.A., ZURKO, M.E., BONIN, D.W., MASON, A.H., AND KAHN, C.E. A vmm security kernel for the vax architecture. In IEEE Symposium on Security and Privacy (1990), pp. 2--19.Google ScholarGoogle ScholarCross RefCross Ref
  14. LEVASSEUR, J., UHLIG, V., CHAPMAN, M., CHUBB, P., LESLIE, B., AND HEISER, G. Pre-virtualization: Slashing the cost of virtualization. Technical Report 2005-30, Fakultät für Informatik, Universität Karlsruhe (TH), Nov. 2005.Google ScholarGoogle Scholar
  15. MCGHAN, H., AND O'CONNOR, M. Picojava: A direct execution engine for java bytecode. Computer 31, 10 (1998), 22--30. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. NEIGER, G., SANTONI, A., LEUNG, F., RODGERS, D., AND UHLIG, R. Intel virtualization technology: Hardware support for efficient processor virtualization. Intel Technology Journal 10, 3 (2006).Google ScholarGoogle ScholarCross RefCross Ref
  17. OSISEK, D.L., JACKSON, K.M., AND GUM, P.H. ESA/390 interpretive-execution architecture, foundation for VM/ESA. IBM Systems Journal 30, 1 (1991), 34--51. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. PATTERSON, D.A., AND DITZEL, D.R. The case for the reduced instruction set computer. SIGARCH Comput. Archit. News 8, 6 (1980), 25--33. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. POPEK, G.J., AND GOLDBERG, R.P. Formal requirements for virtualizable third generation architectures. Commun. ACM 17, 7 (1974), 412--421. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. POPEK, G.J., AND KLINE, C.S. The pdp-11 virtual machine architecture: A case study. In SOSP '75: Proceedings of the fifth ACM symposium on operating systems principles (New York, NY, USA, 1975), ACM Press, pp. 97--105. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. ROBIN, J., AND IRVINE, C. Analysis of the intel pentium's ability to support a secure virtual machine monitor. In Proceedings of the 9th USENIX Security Symposium (2000). Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. SILBERSCHATZ, A., AND PETERSON, J.L., Eds. Operating systems concepts. Addison-Wesley Longman Publishing Co., Inc., Boston, MA, USA, 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. SMITH, J.E., AND NAIR, R. Virtual machines: versatile platforms for systems and processes. Morgan Kaufmann Publishers, San Francisco, CA, USA, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. UHLIG, R., NEIGER, G., RODGERS, D., SANTONI, A.L., MARTINS, F.C.M., ANDERSON, A.V., BENNETT, S.M., KAGI, A., LEUNG, F. H., AND SMITH, L. Intel virtualization technology. Computer 38, 5 (2005), 48--56. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. WHITAKER, A., SHAW, M., AND GRIBBLE, S.D. Scale and performance in the denali isolation kernel. SIGOPS Oper. Syst. Rev. 36, SI (2002), 195--209. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. WITCHEL, E., AND ROSENBLUM, M. Embra: fast and flexible machine simulation. In SIGMETRICS '96: Proceedings of the 1996 ACM SIGMETRICS international conference on measurement and modeling of computer systems (New York, NY, USA, 1996), ACM Press, pp. 68--79. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. A comparison of software and hardware techniques for x86 virtualization

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in

          Full Access

          • Published in

            cover image ACM SIGARCH Computer Architecture News
            ACM SIGARCH Computer Architecture News  Volume 34, Issue 5
            Proceedings of the 2006 ASPLOS Conference
            December 2006
            425 pages
            ISSN:0163-5964
            DOI:10.1145/1168919
            Issue’s Table of Contents
            • cover image ACM Conferences
              ASPLOS XII: Proceedings of the 12th international conference on Architectural support for programming languages and operating systems
              October 2006
              440 pages
              ISBN:1595934510
              DOI:10.1145/1168857

            Copyright © 2006 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 20 October 2006

            Check for updates

            Qualifiers

            • article

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader