zhoudaiyu
V2EX  ›  VMware

有大佬知道 vmware workstation/fusion 的虚拟机暂停功能是怎么实现的?

  •  
  •   zhoudaiyu ·
    PRO
    · Jun 17, 2021 · 1767 views
    This topic created in 1801 days ago, the information mentioned may be changed or developed.

    用了这么久 vmware,最近突然对这个暂停 /继续的功能很感兴趣,有没有大佬说说是咋实现的呢?感觉挺神奇的

    2 replies    2021-06-17 10:03:28 +08:00
    mokeyjay
        1
    mokeyjay  
       Jun 17, 2021
    盲猜是把内存里的数据都导出到硬盘,然后断电
    跟休眠一个原理
    clf
        2
    clf  
       Jun 17, 2021   ❤️ 1
    把虚拟内存里的和 vCPU 寄存器里的东西都存到硬盘里,下次启动的时候再读。

    (我觉得华为 harmony os 的后台也是采用类似的方案,保留服务常驻内存,把页面相关的信息存硬盘里一份,切换应用的时候直接读。)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1079 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:23 · PVG 02:23 · LAX 11:23 · JFK 14:23
    ♥ Do have faith in what you're doing.