Summary of the invention
Embodiment of the present invention technical matters to be solved is: provide a kind of method and system realizing virtual desktop screen resolution automatic adaptation in android terminal, during to solve that in Android terminal resolution and virtual desktop, Windows operating system resolution is inconsistent, the screen spilling produced or the problem of lack of fill, facilitate user to use Windows operating system virtual desktop by Android terminal, improve the perception that user uses virtual desktop.
A kind of method realizing virtual desktop screen resolution automatic adaptation in android terminal that the embodiment of the present invention provides, comprising:
Android Android terminal reads the screen resolution parameter of this Android terminal;
Android terminal by described screen resolution parameter with need the virtual machine of accessing to identify id information to send to parameter transfer unit on the physics host of virtual machine place;
Described screen resolution parameter and described virtual machine id information write in half virtual PCI pci bus of virtualization process on described physics host by parameter transfer unit;
The virtual machine that described virtual machine ID is corresponding reads described screen resolution parameter from described half virtual pci bus, and according to described screen resolution parameter adjustment Windows operating system resolution, make Windows operating system resolution consistent with the screen resolution of described Android terminal.
In a specific embodiment of said method, the half virtual pci bus that described screen resolution parameter and described virtual machine id information write virtualization process on described physics host comprises by parameter transfer unit: described screen resolution parameter and described virtual machine id information write in port corresponding to half virtual pci bus by the socket unit on described physics host by parameter transfer unit;
The virtual machine that described virtual machine ID is corresponding reads described screen resolution parameter and comprises from described half virtual pci bus: the parameter receiving element in the virtual machine that described virtual machine ID is corresponding reads described screen resolution parameter from port corresponding to described half virtual pci bus.
In a specific embodiment of said method, comprise according to described screen resolution parameter adjustment Windows operating system resolution:
Screen resolution parameter transmission is given the resolution adjustment unit in described virtual machine by parameter receiving element;
Windows configuration adjustment interface unit in virtual machine described in resolution adjustment cell call, described Windows operating system resolution adjustment is the resolution that described screen resolution parameter is specified by adjustment Windows operating system resolution.
In a specific embodiment of said method, the parameter type of described screen resolution parameter is integer.
A kind of system realizing virtual desktop screen resolution automatic adaptation in android terminal that the embodiment of the present invention provides, comprising:
Android terminal, for reading the screen resolution parameter of this Android terminal; And the virtual machine id information that described screen resolution parameter and needs are accessed is sent to the parameter transfer unit on the physics host of virtual machine place;
Parameter transfer unit, is positioned on physics host, writes in half virtual pci bus of virtualization process on described physics host for the screen resolution parameter that described Android terminal sent and described virtual machine id information;
Virtualization process, is positioned on physics host, for the carrier as described virtual machine, for described virtual machine provides hardware device;
Half virtual pci bus, is arranged in described virtualization process, for receiving and screen resolution parameter and described virtual machine id information described in buffer memory;
Virtual machine, be positioned on physics host, by described virtual machine ID unique identification, for reading described screen resolution parameter from described half virtual pci bus, and according to described screen resolution parameter adjustment Windows operating system resolution, make Windows operating system resolution consistent with the screen resolution of described Android terminal.
In a specific embodiment of said system, described Android terminal comprises
System information elements, for storing the information parameter of Android terminal, comprises screen resolution parameter;
Resolution parameter reading unit, for access system message unit, obtains the screen resolution parameter of Android terminal;
Parameter transmitting element, needs the virtual machine id information of accessing to send to described parameter transfer unit for the screen resolution parameter that obtained by resolution parameter reading unit and user.
In a specific embodiment of said system, also comprise socket unit, be positioned on described physics host;
Described parameter transfer unit, writes in port corresponding to half virtual pci bus especially by the socket unit on described physics host by described screen resolution parameter and described virtual machine id information;
Described virtual machine also comprises parameter receiving element, for reading described screen resolution parameter from port corresponding to described half virtual pci bus.
In a specific embodiment of said system, described parameter receiving element, also for screen resolution parameter transmission being given the resolution adjustment unit in described virtual machine;
Described virtual machine also comprises:
Resolution adjustment unit, for calling the Windows configuration adjustment interface unit in described virtual machine, adjustment Windows operating system resolution;
Described Windows operating system resolution adjustment, for adjusting Windows operating system resolution, is the resolution that described screen resolution parameter is specified by Windows configuration adjustment interface unit.
In a specific embodiment of said system, the parameter type of described screen resolution parameter is integer.
Based on the method and system realizing virtual desktop screen resolution automatic adaptation in android terminal that the above embodiment of the present invention provides, after Android Android terminal reads the screen resolution parameter of this Android terminal, the virtual machine id information that this screen resolution parameter and needs are accessed can be sent to the parameter transfer unit on the physics host of virtual machine place, this screen resolution parameter and virtual machine id information write in half virtual pci bus of virtualization process on physics host by parameter transfer unit, the virtual machine that virtual machine ID is corresponding reads screen resolution parameter from this half virtual pci bus, and according to this screen resolution parameter adjustment Windows operating system resolution, make Windows operating system resolution consistent with the screen resolution of Android terminal.Compared with prior art, the embodiment of the present invention can realize the reading of Android terminal screen resolution parameter, transmission, store, without the need to user intervention, what dependence system realized that Windows operating system virtual desktop can be complete automatically shows in Android terminal, neither overflow, also not lack of fill, when solving that in Android terminal resolution and virtual desktop, Windows operating system resolution is inconsistent, the screen spilling produced or the problem of lack of fill, user is facilitated to use Windows operating system virtual desktop by Android terminal, improve the perception that user uses virtual desktop.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of the invention provides in order to example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Selecting and describing embodiment is in order to principle of the present invention and practical application are better described, and enables those of ordinary skill in the art understand the present invention thus design the various embodiments with various amendment being suitable for special-purpose.
Embodiment
Various exemplary embodiment of the present invention is described in detail now with reference to accompanying drawing.It should be noted that: unless specifically stated otherwise, otherwise positioned opposite, the numerical expression of the parts of setting forth in these embodiments and step and numerical value do not limit the scope of the invention.
Meanwhile, it should be understood that for convenience of description, the size of the various piece shown in accompanying drawing is not draw according to the proportionate relationship of reality.
Illustrative to the description only actually of at least one exemplary embodiment below, never as any restriction to the present invention and application or use.
May not discuss in detail for the known technology of person of ordinary skill in the relevant, method and apparatus, but in the appropriate case, described technology, method and apparatus should be regarded as a part for instructions.
In all examples with discussing shown here, any occurrence should be construed as merely exemplary, instead of as restriction.Therefore, other example of exemplary embodiment can have different values.
It should be noted that: represent similar terms in similar label and letter accompanying drawing below, therefore, once be defined in an a certain Xiang Yi accompanying drawing, then do not need to be further discussed it in accompanying drawing subsequently.
Fig. 1 is the process flow diagram that the present invention realizes a method embodiment of virtual desktop screen resolution automatic adaptation in Android terminal.As shown in Figure 1, the method that this embodiment realizes virtual desktop screen resolution automatic adaptation in Android terminal comprises:
110, Android terminal reads the screen resolution parameter of this Android terminal.
Exemplarily, the parameter type of this screen resolution parameter is integer, such as 1024*768, or 1280*800.
120, Android terminal by screen resolution parameter with need the virtual machine of accessing to identify (ID) information to send to parameter transfer unit on the physics host of virtual machine place.
Virtual machine ID unique identification virtual machine wherein.
130, screen resolution parameter and virtual machine id information write in half virtual PCI (Peripheral ComponentInterconnect, the PCI) bus of virtualization process on physics host by parameter transfer unit.
140, the virtual machine that virtual machine ID is corresponding reads screen resolution parameter from half virtual pci bus, and according to screen resolution parameter adjustment Windows operating system resolution, make Windows operating system resolution consistent with the screen resolution of Android terminal.
The method realizing virtual desktop screen resolution automatic adaptation in android terminal that the above embodiment of the present invention provides, after Android Android terminal reads the screen resolution parameter of this Android terminal, the virtual machine id information that this screen resolution parameter and needs are accessed can be sent to the parameter transfer unit on the physics host of virtual machine place, this screen resolution parameter and virtual machine id information write in half virtual pci bus of virtualization process on physics host by parameter transfer unit, the virtual machine that virtual machine ID is corresponding reads screen resolution parameter from this half virtual pci bus, and according to this screen resolution parameter adjustment Windows operating system resolution, make Windows operating system resolution consistent with the screen resolution of Android terminal.Compared with prior art, the embodiment of the present invention can realize the reading of Android terminal screen resolution parameter, transmission, store, without the need to user intervention, what dependence system realized that Windows operating system virtual desktop can be complete automatically shows in Android terminal, neither overflow, also not lack of fill, when solving that in Android terminal resolution and virtual desktop, Windows operating system resolution is inconsistent, the screen spilling produced or the problem of lack of fill, user is facilitated to use Windows operating system virtual desktop by Android terminal, improve the perception that user uses virtual desktop.
Fig. 2 is the process flow diagram that the present invention realizes another embodiment of method of virtual desktop screen resolution automatic adaptation in Android terminal.As shown in Figure 2, the method that this embodiment realizes virtual desktop screen resolution automatic adaptation in Android terminal comprises:
210, Android terminal reads the screen resolution parameter of this Android terminal.
220, the virtual machine id information that screen resolution parameter and needs are accessed is sent to the parameter transfer unit on the physics host of virtual machine place by Android terminal.
Virtual machine ID unique identification virtual machine wherein.
When Android terminal user logs in physics host by Android terminal, the user account number needing input to arrange when physics host is registered in advance and password, physics host by after verifying, returns to Android terminal the virtual machine ID that this user has rights of using at this user account number and password.Or user also directly can input virtual machine ID in Android terminal.
230, the screen resolution parameter received and virtual machine id information are write in port corresponding to half virtual pci bus by socket (socket) unit on physics host by parameter transfer unit.
Each port file is corresponding with a socket port of physics host.Screen resolution parameter and virtual machine ID carry out transfer communication by corresponding socket port.
240, the parameter receiving element in the virtual machine that virtual machine ID is corresponding reads screen resolution parameter from port corresponding to half virtual pci bus, and by this screen resolution parameter transmission to the resolution adjustment unit in virtual machine.
250, Windows configuration adjustment interface unit in resolution adjustment cell call virtual machine, adjustment Windows operating system resolution, be the resolution that screen resolution parameter is specified by Windows operating system resolution adjustment, make Windows operating system resolution consistent with the screen resolution of Android terminal.
Fig. 3 is the structural representation that the present invention realizes a system embodiment of virtual desktop screen resolution automatic adaptation in Android terminal.The system of this embodiment can be used in the present invention and above-mentionedly respectively in Android terminal, realizes virtual desktop screen resolution automatic adaptation method embodiment.As shown in Figure 3, it comprises Android terminal, and is positioned at parameter transfer unit, virtualization process and the virtual machine on physics host, and virtualization process comprises half virtual pci bus.Wherein:
Android terminal, for reading the screen resolution parameter of this Android terminal, the parameter type of this screen resolution parameter is integer; And the virtual machine id information that the screen resolution parameter read and needs are accessed is sent to the parameter transfer unit on this virtual machine place physics host.Virtual machine ID unique identification virtual machine wherein.
Parameter transfer unit, writes in half virtual pci bus of virtualization process on the physics host of place for the screen resolution parameter that Android terminal sent and virtual machine id information.
Virtualization process, for the carrier as virtual machine, for virtual machine provides hardware device, comprises all hardware equipment of central processing unit (CPU), internal memory, network interface card, storage space, a corresponding virtual machine of virtual machine process.
Half virtual pci bus, is arranged in virtualization process, for receiving parameter transfer unit and cached parameters transfer unit write screen resolution parameter and virtual machine id information.This half virtual pci bus can be a system equipment for virtual machine, can be a file system for physics host.
Virtual machine, by virtual machine ID unique identification, for reading screen resolution parameter from half virtual pci bus, and according to screen resolution parameter adjustment Windows operating system resolution, make Windows operating system resolution consistent with the screen resolution of Android terminal.
The system realizing virtual desktop screen resolution automatic adaptation in android terminal that the above embodiment of the present invention provides, after Android Android terminal reads the screen resolution parameter of this Android terminal, the virtual machine id information that this screen resolution parameter and needs are accessed can be sent to the parameter transfer unit on the physics host of virtual machine place, this screen resolution parameter and virtual machine id information write in half virtual pci bus of virtualization process on physics host by parameter transfer unit, the virtual machine that virtual machine ID is corresponding reads screen resolution parameter from this half virtual pci bus, and according to this screen resolution parameter adjustment Windows operating system resolution, make Windows operating system resolution consistent with the screen resolution of Android terminal.Compared with prior art, the embodiment of the present invention can realize the reading of Android terminal screen resolution parameter, transmission, store, without the need to user intervention, what dependence system realized that Windows operating system virtual desktop can be complete automatically shows in Android terminal, neither overflow, also not lack of fill, when solving that in Android terminal resolution and virtual desktop, Windows operating system resolution is inconsistent, the screen spilling produced or the problem of lack of fill, user is facilitated to use Windows operating system virtual desktop by Android terminal, improve the perception that user uses virtual desktop.
Further, again see Fig. 3, realize in another embodiment of system of virtual desktop screen resolution automatic adaptation in Android terminal in the present invention, described Android terminal specifically can comprise system information elements, resolution parameter reading unit and parameter transmitting element.Wherein, system information elements, for storing the information parameter of Android terminal, comprises screen resolution parameter.Resolution parameter reading unit, for access system message unit, obtains the screen resolution parameter of Android terminal.Parameter transmitting element is used for the screen resolution parameter of resolution parameter reading unit acquisition and user to need the virtual machine id information of accessing to send to described parameter transfer unit.
Further, again see Fig. 3, realize, in another embodiment of system of virtual desktop screen resolution automatic adaptation, the socket unit be positioned on physics host can also being comprised, in virtual machine, also comprising parameter receiving element in Android terminal in the present invention.Half virtual pci bus creates out multiple port according to preset configuration, a corresponding port of virtual machine, a corresponding file of port.Correspondingly, screen resolution parameter and virtual machine id information write in port corresponding to half virtual pci bus especially by the socket unit on physics host by parameter transfer unit.Parameter receiving element is used for reading screen resolution parameter from port corresponding to half virtual pci bus.
Realize in another embodiment of system of virtual desktop screen resolution automatic adaptation in Android terminal in the present invention, parameter receiving element also can be used for screen resolution parameter transmission to the resolution adjustment unit in virtual machine.Correspondingly, then see Fig. 3, in this embodiment, also comprise resolution adjustment unit and Windows in virtual machine and configure and adjust interface unit.Wherein, resolution adjustment unit, for calling the Windows configuration adjustment interface unit in virtual machine, adjustment Windows operating system resolution.Windows operating system resolution adjustment, for adjusting Windows operating system resolution, is the resolution that screen resolution parameter is specified by Windows configuration adjustment interface unit.
In Windows operating system, the open resolution that can adjust on interface to user is limited, and large fixed mode within 3 at present, some is even less.The resolution configuration of Windows operating system adjusts interface unit opening to user by Windows configuration, user just can adjust the resolution of Windows operating system by the mode of interface accessing, need not be limited to optional hubbed mode in Windows operation system interface.The embodiment of the present invention, after getting the screen resolution parameter of Android terminal, adjusts Windows operating system resolution by Windows configuration adjustment interface unit.Make it identical with the screen resolution of Android terminal.
In this instructions, each embodiment all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiment, same or analogous part cross-reference between each embodiment.For system embodiment, because itself and embodiment of the method are substantially corresponding, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Method of the present invention, system may be realized in many ways.Such as, any combination by software, hardware, firmware or software, hardware, firmware realizes method and system of the present invention.Said sequence for the step of described method is only to be described, and the step of method of the present invention is not limited to above specifically described order, unless specifically stated otherwise.In addition, in certain embodiments, can be also record program in the recording medium by the invention process, these programs comprise the machine readable instructions for realizing according to method of the present invention.Thus, the present invention also covers the recording medium stored for performing the program according to method of the present invention.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
The embodiment of the present invention can realize the reading of Android terminal screen resolution parameter, transmission, store, without the need to user intervention, what dependence system realized that Windows operating system virtual desktop can be complete automatically shows in Android terminal, neither overflow, also not lack of fill, when solving that in Android terminal resolution and virtual desktop, Windows operating system resolution is inconsistent, the screen spilling produced or the problem of lack of fill, user is facilitated to use Windows operating system virtual desktop by Android terminal, improve the perception that user uses virtual desktop,
The embodiment of the present invention to be applicable to by Android terminal access, based on the desktop virtual environment of virtual machine (KVirtual Machine, the KVM) framework of kernel, can contribute to its application, be user-friendly to, improve user awareness.