• P
    virtio-serial: add enable_backend callback · 55289fb0
    Pavel Butsykin 提交于
    We should guarantee that RAM will not be modified while VM has a stopped
    state, otherwise it can lead to negative consequences during post-copy
    migration. In RUN_STATE_FINISH_MIGRATE step, it's expected that RAM on
    source side will not be modified as this could lead to non-consistent vm state
    on the destination side. Also RAM access during postcopy-ram migration with
    enabled release-ram capability can lead to sad consequences.
    
    Let's add enable_backend() callback to avoid undesirable virtioqueue changes
    in the guest memory.
    Signed-off-by: NPavel Butsykin <pbutsykin@virtuozzo.com>
    Message-Id: <20170919120733.22020-1-pbutsykin@virtuozzo.com>
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    55289fb0
virtio-serial-bus.c 34.0 KB