From patchwork Tue Nov 13 16:09:08 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: 10681077 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 5D61F14BA for ; Tue, 13 Nov 2018 16:10:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D60C2AF10 for ; Tue, 13 Nov 2018 16:10:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 416072AF16; Tue, 13 Nov 2018 16:10:58 +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 D24F82AF11 for ; Tue, 13 Nov 2018 16:10:57 +0000 (UTC) Received: from localhost ([::1]:54684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMbHE-0005MW-Uc for patchwork-qemu-devel@patchwork.kernel.org; Tue, 13 Nov 2018 11:10:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMbFx-0004cY-Ns for qemu-devel@nongnu.org; Tue, 13 Nov 2018 11:09:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMbFp-0007l4-Rz for qemu-devel@nongnu.org; Tue, 13 Nov 2018 11:09:37 -0500 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]:40970) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMbFk-0007g4-Ek for qemu-devel@nongnu.org; Tue, 13 Nov 2018 11:09:26 -0500 Received: by mail-qk1-x741.google.com with SMTP id 189so20287394qkj.8 for ; Tue, 13 Nov 2018 08:09:19 -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=uDk+RbRdw4KZAY8VBeacK4KLBkPYKLaw8cWFSMWdQiY=; b=OAmfLeGqjUkotIqirJM+ClDhnFqTJQbYdhWG2ror6S5i8Gpmed1amBl70WzVLTzjpG OWzM8OJskEH3SlE51Cf8FB6pk8IjyeDW7KsZ9VN+9bQJkTuVwNrNurLU9vm9rJJcwEtx yvNSjLSW29JEZ8/2JXOHp6Vs4q1m5POGqQbikGxzjIMnGhGoVUCD5EpOmtiZk21aAmAk C6ZHFtdKT6zzaWYKbXfAXIJe55G/FvY9rWfcHkCoeZCI3CpaM5xXIgR6YVkwPW2ha2A4 zLa51J3TbE5lmp42kh+rL00F04nNrem2YlnzXIp+H6UYbIskH5av2vUJqOH1OqulPvBC 4Ajg== 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=uDk+RbRdw4KZAY8VBeacK4KLBkPYKLaw8cWFSMWdQiY=; b=rou/wOu7ZM/8FQKxx9d4i0ys8Wz20iTHJVP0lZNjAB1Ey7RVZEKriE7Ch35P7NzFnj 1Zg071qtE0DReGlydgo1hEjFcB4sHJGJX/v8M2eWeC9SxI5qUVG+4Ar/h/YoCjON/Mw6 EaiV4yQkpjYkSHJejhsGT09pdtVqPiydawRDQJ51+5v7jYuQkEK73K6sUZUTScEdbPJD ZRXAEjy3qyMQxaoHGG5CUQjqqvm0Wx7jweXjUkKgvFIXPfiGR6D4ieY5+LxC8UKfHjRe +Hz8fb7jKaEBuDokUoeqp6xpHiN5uO1Payf4HQkzcfm6hcu3+wgwmUYjCnVk+gH8i6Dk Z5LQ== X-Gm-Message-State: AGRZ1gLvszQW07C+9WJFJfX3qZghWcvMswCEGgl2mQdRFR6IV2fadojX q3IHfWlIgGRzaryKQYp4+1WlOb4YDoY= X-Google-Smtp-Source: AJdET5cOWZAHt7pRdCAz1cAJGt7+Q5EBih8F13lEqUpoDzcoU0SqqXOpDLVOJ0Yjm/0rcTIjjFWrWg== X-Received: by 2002:a37:9c57:: with SMTP id f84mr5369316qke.176.1542125359123; Tue, 13 Nov 2018 08:09:19 -0800 (PST) Received: from localhost.localdomain ([2804:431:f700:6adb:6302:a3d9:4b90:26f1]) by smtp.gmail.com with ESMTPSA id u90sm11580520qki.39.2018.11.13.08.09.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 08:09:18 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Date: Tue, 13 Nov 2018 14:09:08 -0200 Message-Id: <20181113160908.12706-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::741 Subject: [Qemu-devel] [PATCH 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 | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index c6725b3ec8..74b1bdbc76 100644 --- a/qga/qapi-schema.json +++ b/qga/qapi-schema.json @@ -532,12 +532,16 @@ # # 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 +# +# If the guest does not have systemd hibernate support, the scripts in pm-utils +# package are executed, in case pm-utils is available. Manual write in sysfs +# is a last resort. # # 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 +564,16 @@ # # 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: +# +# - systemd suspend +# - pm-utils (via pm-suspend) +# - manual write into sysfs # -# For the best results it's strongly recommended to have the pm-utils -# package installed in the guest. +# If the guest does not have systemd suspend support, the scripts in pm-utils +# package are executed, in case pm-utils is available. Manual write in sysfs +# is a last resort. # # 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 +600,14 @@ # # 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 using three strategies, in this +# order: +# +# - systemd hybrid-sleep +# - pm-utils (via pm-suspend-hybrid) +# +# If the guest does not have systemd hybrid-sleep support, the scripts in +# pm-utils package are executed, in case pm-utils is available. # # IMPORTANT: guest-suspend-hybrid requires QEMU to support the 'system_wakeup' # command. Thus, it's *required* to query QEMU for the presence of the