Revision 5d6c37fb

b/monitor.c
1722 1722

  
1723 1723
    actual = qemu_balloon_status();
1724 1724
    if (kvm_enabled() && !kvm_has_sync_mmu())
1725
        monitor_printf(mon, "Using KVM without synchronous MMU, "
1726
                       "ballooning disabled\n");
1725
        qemu_error_new(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon");
1727 1726
    else if (actual == 0)
1728
        monitor_printf(mon, "Ballooning not activated in VM\n");
1727
        qemu_error_new(QERR_DEVICE_NOT_ACTIVE, "balloon");
1729 1728
    else
1730 1729
        *ret_data = QOBJECT(qint_from_int((int)(actual >> 20)));
1731 1730
}

Also available in: Unified diff