From patchwork Tue Nov 13 16:55:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Henrique Barboza X-Patchwork-Id: 10681135 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F53A1747 for ; Tue, 13 Nov 2018 17:16:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 311A02AFBB for ; Tue, 13 Nov 2018 17:16:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25A972B035; Tue, 13 Nov 2018 17:16:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C07D52AFF7 for ; Tue, 13 Nov 2018 17:16:58 +0000 (UTC) Received: from localhost ([::1]:55231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMcJ8-0008JS-2g for patchwork-qemu-devel@patchwork.kernel.org; Tue, 13 Nov 2018 12:16:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMcAC-0006qZ-Mm for qemu-devel@nongnu.org; Tue, 13 Nov 2018 12:07:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMbyn-0005u2-NM for qemu-devel@nongnu.org; Tue, 13 Nov 2018 11:55:59 -0500 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]:33129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMbyl-0005hp-Pm for qemu-devel@nongnu.org; Tue, 13 Nov 2018 11:55:57 -0500 Received: by mail-qk1-x743.google.com with SMTP id o89so20607640qko.0 for ; Tue, 13 Nov 2018 08:55:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MMX2Wn3GZqvYVoatd7YFlHBfYzvyTQ+0LAwMpHRvx0s=; b=iaSh+yEq1iVuUBFby5IBKe6beUfkFcuCo3podSmgQNtkD90tGTgFxCJ+Asmhad5HCL NbAiOH93OjVCvqcGjP3boGs4L++vezGPjEOIjEwxiuiaXcD5YGRksRbFiUEgw8r5eHoP b0ASOE3mVnHZOnUr7/0+YWmVwBpWkMiSmhvVum3pnuW1pwZbG2PkymDLFQFIQsYZ3F67 KVpy/MInax0att1pMqhD8kJhDqCoha2qpaSL7hWoRSmPHmIRR50QvBNZG+oimqTFVT9c CSBpudqgKEELB25IEji4ox2V2ClTtdfYx285ueZSwQ03ohFUSrNgTCrMALq6LLE3+Wrc J2Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MMX2Wn3GZqvYVoatd7YFlHBfYzvyTQ+0LAwMpHRvx0s=; b=OwOpvhGIpK1jxih4cJNkEVQFZjH8l/zmLJ0pJI10iFjMAlhLBawC367HtBFGfozzd5 gB7oacJRV/h9u1Qf5QYGqFAJLGHhTMSK9qVkQCsacFC5ZRoTyOIQDmFzVRCbfnzfweTI 0++O4Zfe0bUfE33d4hyRyzzoEoOvo/l8mpS8VhwBs019tEtUC4oNuuh9KqhRqR7KE9Cv 5qQBUCS1lcDcz1bOb543MXeWECRt6Xmn1jVc9xaGPmocr9M2GmtH4QQjoBh0ShWssTgu B9X183e1Kc6cga80eG2Dtt+v/xsdJp/DpSEFTUsP6jRzePHl+cCZGK5XpGNIZfqM8FCD OSRA== X-Gm-Message-State: AGRZ1gLErMSLYFDjct3q/gqM5YUjSTp8Asv5rtocpTMIs8lSkNvQKqrU G690tmEvETOCnQYcMqxS9f94nrynv+k= X-Google-Smtp-Source: AJdET5fKq87HMYukMDlEqcRl7Jae4EdW5TpNYMN3PA+HsebmrxFGrq5NvcyCQOd5r24MCSJRvJ1IYg== X-Received: by 2002:a0c:cc8c:: with SMTP id f12mr6113019qvl.102.1542128150353; Tue, 13 Nov 2018 08:55:50 -0800 (PST) Received: from localhost.localdomain ([2804:431:f700:6adb:6302:a3d9:4b90:26f1]) by smtp.gmail.com with ESMTPSA id l15sm10049959qtr.25.2018.11.13.08.55.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 08:55:49 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Date: Tue, 13 Nov 2018 14:55:39 -0200 Message-Id: <20181113165539.14376-1-danielhb413@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::743 Subject: [Qemu-devel] [PATCH v2 1/1] qga: update docs with systemd suspend support info X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Henrique Barboza , mdroth@linux.vnet.ibm.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Commit 067927d62e ("qga: systemd hibernate/suspend/hybrid-sleep support") failed to update qapi-schema.json after adding systemd hibernate/suspend/hybrid-sleep capabilities to guest-suspend-* QGA commands. Signed-off-by: Daniel Henrique Barboza --- qga/qapi-schema.json | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index c6725b3ec8..61f66fc461 100644 --- a/qga/qapi-schema.json +++ b/qga/qapi-schema.json @@ -532,12 +532,12 @@ # # Suspend guest to disk. # -# This command tries to execute the scripts provided by the pm-utils package. -# If it's not available, the suspend operation will be performed by manually -# writing to a sysfs file. +# This command attempts to suspend the guest using three strategies, in this +# order: # -# For the best results it's strongly recommended to have the pm-utils -# package installed in the guest. +# - systemd hibernate +# - pm-utils (via pm-hibernate) +# - manual write into sysfs # # This command does NOT return a response on success. There is a high chance # the command succeeded if the VM exits with a zero exit status or, when @@ -560,12 +560,12 @@ # # Suspend guest to ram. # -# This command tries to execute the scripts provided by the pm-utils package. -# If it's not available, the suspend operation will be performed by manually -# writing to a sysfs file. +# This command attempts to suspend the guest using three strategies, in this +# order: # -# For the best results it's strongly recommended to have the pm-utils -# package installed in the guest. +# - systemd suspend +# - pm-utils (via pm-suspend) +# - manual write into sysfs # # IMPORTANT: guest-suspend-ram requires QEMU to support the 'system_wakeup' # command. Thus, it's *required* to query QEMU for the presence of the @@ -592,7 +592,10 @@ # # Save guest state to disk and suspend to ram. # -# This command requires the pm-utils package to be installed in the guest. +# This command attempts to suspend the guest by executing, in this order: +# +# - systemd hybrid-sleep +# - pm-utils (via pm-suspend-hybrid) # # IMPORTANT: guest-suspend-hybrid requires QEMU to support the 'system_wakeup' # command. Thus, it's *required* to query QEMU for the presence of the