You need to sign in or sign up before continuing.
  • D
    qemuDomainReboot: use fakeReboot=true only for acpi mode · e2b86f58
    Dmitry Andreev 提交于
    When acpi is used to reboot/shutdown qemu domain, qemu emits
    SHUTDOWN event. Libvirt uses fakeReboot variable in order to
    differentiate reboot or shutdown. fakeReboot value is reseted
    to false after domain restart/reset.
    
    When mode=agent is used to reboot qemu domain, qemu doesn't emit
    SHUTDOWN event and libvirt doesn't reset fakeReboot value to false.
    In this case next 'shutdown -h now' performs reboot. That's why
    we don't need to set fakeReboot=true for mode=agent.
    Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
    e2b86f58
qemu_driver.c 646.1 KB