摘要 |
<p>According to a preferred embodiment of the present invention to achieve the above purpose, a method for upgrading a hypervisor component comprises the steps of: calling a hypercall interface of a hypervisor by a kernel of a virtual machine to load an upgrade file for upgrading a target function of a hypervisor component on an address space of the hypervisor; calling the hypercall interface of the hypervisor by the kernel of the virtual machine to replace an instruction at a starting point of the target function of the hypervisor component with a first interrupt instruction; and calling the hypercall interface of the hypervisor by the kernel of the virtual machine to replace the first interrupt instruction with a jump instruction so as to upgrade the target function of the hypervisor component into an upgrade function, when it is determined that breakpoint exception is generated by the first interrupt instruction, wherein the upgrade file includes the upgrade function corresponding to the target function, and the jump instruction is caused by the upgrade function included in the upgrade file existing on the address space.</p> |