Research Article
A Virtual Machine Migration Strategy Based on the Relevance of Services against Side-Channel Attacks
Algorithm 1
Build VM migration group.
| | Input: server load information | | Output: VM migration group G | | Method: | | (1) | Analyze the server load information to get the original server as ; | | (2) | Get the set of virtual machines on as AllVmList, set to ; | | (3) | Calculate the VM load on , mark it as , and sort in descending order of load; | | (4) | Initialize the VM migration group G; | | (5) | while(! = null) do | | (6) | find the VM with and set it as ; | | (7) | ; | | (8) | if () then | | (9) | add to G; | | (10) | if then | | (11) | return VM migration group G; | | (12) | else | | (13) | break; | | (14) | end if | | (15) | end if | | (16) | end while | | (17) | while(! = null) then | | (18) | select in , that is, select the VM with the most service relevance and set it to ; | | (19) | ; | | (20) | if() then | | (21) | add to G; | | (22) | if () then | | (23) | break; | | (24) | else | | (25) | continue; | | (26) | end if | | (27) | end if | | (28) | end while | | (29) | return VM migration group G; |
|