BACKGROUND OF THE INVENTION

A virtual machine (VM) may be or include a framework or environment created by for example a virtual machine monitor (VMM) on a host system. A VMM may provide facilities or resources on a host environment for an application, firmware or guest operating system (OS) that may run in the VM. Instructions may be conveyed from the VM to the VMM, and the VMM may execute such instructions for example on or through the host environment.

Multiple VMs may run on a host at particular time. While a VMM may allocate resources among the various VMs, a VMM may lack a way to efficiently transfer data, messages, statistics and other communication signals among the VMs that are running in a host environment

DETAILED DESCRIPTION OF THE INVENTION

Reference is made to FIG. 1, a schematic diagram of a host environment with a virtual machine in accordance with an exemplary embodiment of the invention. Host environment 50 may be or include a computer platform such as for example a mainframe, workstation, personal computer or other computing devices, and may include some or all of the components, peripherals or other resources that may be available to or connected with such host environment 50. Host environment 50 may include for example a host OS 48 that may for example control some or all of the operations of a central processing unit (CPU) 51 or other processor. Host OS 48 may manage or coordinate resources of host environment 50 such as for example a file system 46 that may allocate and index files such as for example data files. Host environment 50 may also include hardware 44 resources such as for example one or more disc drives or other mass storage memory device 45, modems, sound card, peripheral devices, etc. Some of such hardware or devices may be for example devices that meet or operate using a peripheral component interconnect (PCI) specification such as the specification described in IEEE Standard Physical and Environmental Layers for PCI Mezzanine Cards, IEEE Standard 1386-2001 and 1386.1-2001. A PCI device42 may include for example a printer, microphone, mouse, joystick, network card 52, disk adapter etc. Other devices and resources may be included or connected with a host environment 50, and a host may include other components. In some embodiments network card 52 may link different computers or components of computers that may communicate with a VM 40.

Host environment 50 may include a VM 40 that may include for example a guest OS 38 that may for example run an application 36. For example, in some embodiments a host 48 may run a Windows™ OS while VM 40 may run a UNIX™ OS. In some embodiments VM 40 may run for example a guest firmware 34 such as for example an extended firmware interface. In some embodiments more than one VM 40 such as VM 40 and VM 41 may run for example simultaneously in a host environment 50. Other operating systems, combinations of operating systems, firmware or applications may be run on a host environment in accordance with an embodiment of the invention.

Host Environment 50 may also include a VMM 20 that may create and manage a VM 40 and allocate resources within for example host environment 50to support one or more VM 40. In some embodiments, a host environment 50 may include a host OS 48 and a VMM 20 or a VMM 20 without a host OS48. In some embodiments VMM 20 may include a virtual management device 18 and a management core 16.

Virtual management device 18 may be a real or virtual device that may be created or defined for example by VMM 20 as a virtual device within host environment 50. In some embodiments, virtual management device 18 may not be connected to or represented by a real instance of a device, and may not be reflected in a real device that is connected to a hardware component. In some embodiments virtual management device 18 may be defined as a PCI device, though devices created in accordance with other types or definitions may be used. Such other types or definitions may include for example devices that comply with standards such as for example universal serial bus as is described in Universal Serial Bus Revision 2.0 Specification released on Apr. 27, 2000 USB. Other possible architectures and arrangements of components are possible. A host, VMM, and VM may include other components or arrangements of components.

In some embodiments, there may be created or defined in VMM 20 a management core 16 that may be or include one or more instructions, segments of code or software that may monitor, collect, direct or manage instructions sent by for example one or more VM 40 to or from one or more management devices 18 or other components of host network 50.

A VM 40 may include a management device driver 32 that may issue one or more instructions to management device 18. In some embodiments, module or driver 32 may be stored on for example a mass storage memory device 45, and may be or include one or more instructions, lines of code or collections of software that may interpret or translate instructions or commands from a VM 40 into a format or language that may be processed by virtual management device 18. In some embodiments driver 32 may comply with the standards used by PCI devices and a PCI bus. Other standards or formats for driver 32 may be used. In some embodiments a driver 32 may be updated, refreshed or reloaded by for example VMM 20 or by another component operably attached to host environment 50 without significant disruption to the operation of VM 40. Similarly, the software, code and the corresponding capabilities of device 18 and core 16 may be improved or updated without significantly disrupting VMM 40 or the VM 20 managed by VMM 40.

In operation, a function, process or application running for example on VM 40 may call for a transfer of data, a file or other information to for example host OS 48 or to for example another VM 41. An instruction may be passed from VM 40 by way of driver 32 directing virtual management device 18 to operate in for example a file transfer mode. Management core 16 may monitor instructions passed to virtual management device 18. When such an instruction arrives at device 18, core 16 may for example relay the instruction for processing or execution for example by host OS 48 or by or on another resource operably connected to host environment 50. For example, core 16 may receive or direct a file or data to or from for example file system 46. A file may be read for example in a memory device managed by a file system 46, and may for example be written back to device 18. Device18 may then transfer a file to VM 40. In some embodiments an instruction from VM 40 to device 18 may require the performance of a calculation by for example host OS 48, and the return of a result from such calculation back to device 18 for further transfer of such result to VM 40.

In another example, VM 40 and VM 41 may be operating concurrently and may be managed by VMM 20. As part of for example a scheduling task, it may be beneficial for VMM 20 to assess the resources needed by VM 40 and VM 41 at a particular time. To pass statistics or other data to for example VMM 20, a VM 40 may program virtual management device 18 by way of driver 32 to enter for example a statistics mode. Other suitable modes may be used. VM 40 may deliver for example usage and processing needs statistics to virtual management device 18. The delivered statistics may be monitored, collected or otherwise processed by for example management core 16 within for example VMM 20 to collect such statistics from one or more VMs 40. In some embodiments, such statistics may be conveyed to a host OS 48 or to another component or resource outside of VM 40 which is operably connected to host OS 48, where such statistics may be used as part of for example a scheduling of a CPU 51 to accommodate the processing requirements of VM 40.

In still another example, to facilitate delivering a message from VM 40 to another VM 41 or to an OS running on host OS 48, VM 40 may program virtual management device 18 by way of drive 32 to enter for example a chat mode. Other modes may be used. VM 40 may then initiate a message with virtual management device 18 or publish its existence and wait for a call. Other message passing methods may be used. Management core 16 may monitor virtual management device 18, and when a message is delivered to device 18, core 16 may route or direct a message received by device 18, as a destination, from device 18, as a source, to for example one or more other VM 41, as a destination. The message may likewise be directed to a host OS 48 or to another component or resource operably connected to host environment 50. In some embodiments, VMM 20 may deliver and initiate messages to VM 40 by way of device 18 and core 16.

Other functions and actions as may be performed by for example a PCI device may be programmed into for example driver 32 and device 18. In some embodiments of the invention, a transfer of instructions or files between VM 40 and VMM 20 by way of device 18 may avoid exposing internal memory or files between or among the VMM 20 and VM 40, or another VM 41, or host OS 48.

In some embodiments, messages, files or other data may be transferred to or from a VM 40 using one or more of input/output ports or direct memory access resources that are available to PCI devices such as device 18 in host environment 50. The size, format and length of data files to be transferred, whether fixed or variable, may in some embodiments be unlimited other than by the capacity of the host environment 50.

Reference is made to FIG. 2, a flow diagram depicting a method of instructing a virtual device from a virtual machine in accordance with an embodiment of the invention. In block 200, a VM may issue an instruction, by way of for example a driver in such VM, to a virtual management device. In some embodiments the virtual management device may be defined and created by for example a VMM to comply with specifications of a PCI device; other devices may be specified. In some embodiments, the instruction may be for example a read or write instruction for the transfer of data between the VMM and the VM, or between the VM and for example a file system of a host OS. The instruction may be received in a virtual management device. In block 202 instructions reaching the virtual management device may be monitored by for example a management core that may be defined in the VMM. The management core may accept the instruction, and convey it to for example host OS or to a CPU where it may be executed.

In some embodiments the instruction may order the virtual management device to enter into for example a chat mode; other suitable modes may be used. The management core may collect messages received by virtual management device as a destination and may forward such messages to for example a host, to another VM or to another resource outside of the VM. Similarly, a VM may instruct virtual management device to enter a file transfer mode. VM may instruct virtual management device to retrieve or open a file. A management core may direct the instruction to for example a host OS or to a file system managed by host OS. The file may be transferred or otherwise made accessible to the management core which may transfer the file to virtual management device, and from there to the VM. Other operations or series of operations may be used.

Reference is made to FIG. 3, a flow chart of a method in accordance with an embodiment of the invention. In block 300 an instruction may be issued from a VM to a virtual device. The instruction may be passed through a driver in the VM that is suitable for communicating with the virtual device.

In block 302, a component or segment of a VMM such as for example a management core may monitor and collect the instructions sent to the virtual device. In block 304, the VMM or the management core may direct the instruction or manage the execution of the instruction on a resource that is outside of the VM and the VMM such as for example hardware resources in a host environment. In some embodiments the instruction may include a message or data delivered to or from the VM. The VMM or the management core may collect data or files that are sent to or from a VM from for example a file system, from another VM or from another resource operably connected with a host environment.

SRC=http://www.freepatentsonline.com/7546599.html

PatentTips - Method, apparatus and system for instructing a virtual device from a virtual machine的更多相关文章

  1. Method, apparatus, and system for speculative abort control mechanisms

    An apparatus and method is described herein for providing robust speculative code section abort cont ...

  2. Method, apparatus and system for acquiring a global promotion facility utilizing a data-less transaction

    A data processing system includes a global promotion facility and a plurality of processors coupled ...

  3. PatentTips - Method for network interface sharing among multiple virtual machines

    BACKGROUND Many computing systems include a network interface card (NIC) to provide for communicatio ...

  4. Method not found: 'System.Data.Entity.ModelConfiguration.Configuration.XXX

    使用EF flument API  修改映射数据库字段的自增长 modelBuilder.Entity<Invoice>().Property(p => p.Id).HasDatab ...

  5. PatentTips - Method for booting a host device from an MMC/SD device

    FIELD OF THE INVENTION The present invention relates to a memory device and especially to the interf ...

  6. PatentTips - Method to manage memory in a platform with virtual machines

    BACKGROUND INFORMATION Various mechanisms exist for managing memory in a virtual machine environment ...

  7. PatentTips - Method and system for browsing things of internet of things on ip using web platform

    BACKGROUND The following disclosure relates to a method and system for enabling a user to browse phy ...

  8. PatentTips - Method for guest operating system integrity validation

    BACKGROUND The embodiments relate to guest operating system integrity validation, and more particula ...

  9. PatentTips - Method and Apparatus to Support Virtualization with Code Patches

    BACKGROUND As recognized in Revision 2.0 of the Intel® Virtualization Technology Specification for t ...

随机推荐

  1. 【Linux下自定义Shell终端提示符】

    目录 基本转义符 字体颜色 背景颜色 移动光标 @ Linux系统终端提示符的特征由系统环境变量 PS1(Prompt String One)定义. 我们可以通过命令echo $PS1来查看当前设置, ...

  2. U-BOOT启动流程分析--start.s(二)

    一.概述 u-boot的启动流程: 从文件层面上看主要流程是在两个文件中:cpu/arm920t/start.s,lib_arm/board.c, 先来分析start.s    在flash中执行的引 ...

  3. Windows 一键关闭UAC、防火墙、IE配置脚本

    有时候,在环境需求下,需要关闭windows防火墙,UAC,以及IE选项配置. 对不懂电脑来说是比较麻烦的,老是得教他们,关键还记不住…… so,以下脚本就可以解决这个问题 注:脚本 需要右键 以管理 ...

  4. 【VC++学习笔记三】控件自绘

    MFC应用程序中,大部分的控件类型都已经被定制好了,即便是修改,也只是小范围内的修改,而很多情况下,我们又需要对界面进行特殊定制,这时,最好的办法就是用CWnd类进行派生,自己生成新的窗体,在WM_P ...

  5. 洛谷 P1013 进制位

    P1013 进制位 题目描述 著名科学家卢斯为了检查学生对进位制的理解,他给出了如下的一张加法表,表中的字母代表数字. 例如: + L K V E L L K V E K K V E KL V V E ...

  6. Oracle的表空间和sqlplus

    1.  表空间的概念 曾经接触过的数据库都没有听到过表空间这个词,在前一段时间看到Oracle数据库的时候发现表空间无处不在. 所以表空间在Oracle数据库中应该是一个非经常常使用而且非常重要的概念 ...

  7. OCP将结束容器产业这个颠覆性产业的标准格式之争

    编者注:本文英文版来自VentureBeat,中文版由天地会珠海分舵编译.当以Docker为首的容器正在席卷全球.蔚然成风的颠覆着原来的应用开发和公布方式的时候,容器标准之争却从来没有消停过.而标准之 ...

  8. 第二天,导出文件sql,查询,视图view,聚合函数,反模式,字符串处理函数

    //把数据库导出到脚本文件mysqldump -uroot -p1234 --databases abc > d:/a/abc.sql CREATE TABLE stud( id INT PRI ...

  9. HTML5学习笔记之二CSS基础

    一般来说,CSS都存储为一个文件.然后各个html page能够指定使用哪个CSS文件.这样这些html页面就能够保持一致的风格. 通常能够通过在head中加上一行指定CSS的链接. <!DOC ...

  10. Python 面向对象 —— super 的使用(Python 2.x vs Python 3.x)

    注意区分当前的 Python 版本是 2.X 还是 3.X,Python 3.X 在 super 的使用上较之 Python 2.X 有较大的变化: 1. Python 2.x class Conta ...