Touch screen emulation for a virtual machine
AssigneeRed Hat Israel, Ltd.
InventorsMichael Tsirkin, Izik Eidus
Life of this patent
Estimating the term…
Abstract
A mechanism for touch screen emulation for a virtual machine is disclosed. A method of the invention includes providing an emulation of a touch screen device to a virtual machine (VM) managed by a hypervisor for emulation of the touch screen device by the VM, receiving touch gesture information related to a touch gesture received in the session window of the VM that is managed by the hypervisor, sending an interrupt to the VM that informs the VM of detected touch screen activity in the session window of the VM on the touch screen device, wherein in response to the interrupt the VM receives the touch gesture information in order to utilize in determining screen coordinates of the touch gestures within the session window of the VM.
Claims20
A method, comprising:
- providing, by a hypervisor executed by a processing device on a host machine, an emulation of a touch screen device of a client device separate from the host machine, the emulation provided to a virtual machine (VM) managed by the hypervisor, wherein the provided emulation utilized by the VM for emulation of the touch screen device in a session window of the VM displayed to a user of the VM at the client device, and wherein a local on-screen presentation of the touch screen device provided by an operating system (OS) of the client device is hidden in response to the emulation of the touch screen device in the session window of the VM, and wherein functionality provided by the local on-screen presentation of the touch screen device is replaced by the emulation of the touch screen device for use by the user of the client device;
- receiving, by the hypervisor, touch gesture information related to a touch gesture received from the user in the session window of the VM;
- and
- sending, by the hypervisor, an interrupt to the VM that notifies the VM of detected touch screen activity in the session window of the VM on the touch screen device, wherein in response to the interrupt, the VM receives the touch gesture information to utilize in determining screen coordinates of the touch gestures within the session window of the VM;
- wherein the touch gesture information comprises an offset of the touch gesture within the session window of the VM, the offset calculated by a VM client operating on the client device and assisting in display of the session window of the VM at the client device.
A system, comprising:
- a processing device;
- a memory communicably coupled to the processing device;
- and
- a hypervisor to execute one or more virtual machines (VMs) from the memory that share use of the processing device, the hypervisor to:
- provide an emulation of a touch screen device of a client device separate from the system, the emulation provided to a virtual machine (VM) managed by the hypervisor, wherein the provided emulation utilized by the VM for emulation of the touch screen device in a session window of the VM displayed to a user of the VM at the client device, and wherein a local on-screen presentation of the touch screen device provided by an operating system (OS) of the client device is hidden in response to the emulation of the touch screen device in the session window of the VM, and wherein functionality provided by the local on-screen presentation of the touch screen device is replaced by the emulation of the touch screen device for use by the user of the client device;
- receive touch gesture information related to a touch gesture received from the user in the session window of the VM;
- and
- send an interrupt to the VM that notifies the VM of detected touch screen activity in the session window of the VM on the touch screen device, wherein in response to the interrupt, the VM receives the touch gesture information to utilize in determining screen coordinates of the touch gestures within the session window of the VM;
- wherein the touch gesture information comprises an offset of the touch gesture within the session window of the VM, the offset calculated by a VM client operating on the client device and assisting in display of the session window of the VM at the client device.
A non-transitory machine-readable storage medium including data that, when accessed by a processing device, cause the processing device to perform operations comprising:
- providing, by a hypervisor executed by the processing device on a host machine, an emulation of a touch screen device of a client device separate from the host machine, the emulation provided to a virtual machine (VM) managed by the hypervisor, wherein the provided emulation utilized by the VM for emulation of the touch screen device in a session window of the VM displayed to a user of the VM at the client device, and wherein a local on-screen presentation of the touch screen device provided by an operating system (OS) of the client device is hidden in response to the emulation of the touch screen device in the session window of the VM, and wherein functionality provided by the local on-screen presentation of the touch screen device is replaced by the emulation of the touch screen device for use by the user of the client device;
- receiving touch gesture information related to a touch gesture received from the user in the session window of the VM;
- and
- sending an interrupt to the VM that notifies the VM of detected touch screen activity in the session window of the VM on the touch screen device, wherein in response to the interrupt, the VM receives the touch gesture information to utilize in determining screen coordinates of the touch gestures within the session window of the VM;
- wherein the touch gesture information comprises an offset of the touch gesture within the session window of the VM, the offset calculated by a VM client operating on the client device and assisting in display of the session window of the VM at the client device.
Dependencies are inferred from the claim text.