The invention relates to a dynamic scheduling method with a
virtual function, belongs to the field of computer
virtualization, and solves the problems of insufficient expandability and poor flexibility in using of virtual functions provided by a single root input and output
virtualization standard network card so as to improve use ratio of the network card. The dynamic scheduling method with the
virtual function comprises the steps of initializing, establishing queues, classifying virtual machines, distributing virtual functions, judging and wakening, adding virtual machines, dynamically adjusting and sleeping. During a period, the dynamic scheduling method with the
virtual function performs dynamic scheduling on the virtual functions provided by the single root (input / output) I / O
virtualization standard network card through statistics of I / O interruption times and
sleeping time of the virtual machines, guarantees that the virtual function is utilized by a
virtual machine with the largest I / O priority value, improves,
network performance, fully utilizes hardware, and is used for supporting
virtual machine platforms with a device direct
distribution method.