From patchwork Tue Oct 29 23:00:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 11218717 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3362613B1 for ; Tue, 29 Oct 2019 23:02:58 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 130D620874 for ; Tue, 29 Oct 2019 23:02:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 130D620874 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:34878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPaVs-0001jI-Kn for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 Oct 2019 19:02:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42999) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPaTc-0008KT-T5 for qemu-devel@nongnu.org; Tue, 29 Oct 2019 19:00:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPaTb-0003Uu-Py for qemu-devel@nongnu.org; Tue, 29 Oct 2019 19:00:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59422) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iPaTb-0003TN-JD for qemu-devel@nongnu.org; Tue, 29 Oct 2019 19:00:35 -0400 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C34ED8553F for ; Tue, 29 Oct 2019 23:00:34 +0000 (UTC) Received: by mail-qt1-f197.google.com with SMTP id 6so523842qtu.7 for ; Tue, 29 Oct 2019 16:00:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=F1hfahIKykEC1dF86on2fG9+aTlh1MBf7UtW/TDv/qU=; b=qM9F56aZESQxVvhkI4ULuPAwEbSGeKgZJs2Smuv0tTsCed9y+6F6KAqg6wHKQJ7sXQ 6CA+zrAhhMhl6L1B+4WRTFm3KPk3rr6d8rPFLlk5yGfVzNBoJefO5V2fxYXR04oC0ADj Z+J2asVtNci00ShJhgprxw6nhxUeBNv3Ogc90lMMQaGtUk6Sj4rVegUEgJoKW3nPMfG4 l4wJ04G4bumhg0K+807mQ4s0F2pEwY5uqWtAnbG0XpwKvo2s4ENR+BpLFSYV7vkHlGX1 qoWghxCl3PBrkJ/hbi/O1bBUwXXCn0kNnbWDUedkeq9uxKyNryxOMYlgU4M9mDoufd/G Z7+w== X-Gm-Message-State: APjAAAVSKihF0+NiXtIQQK6VibgWn1QZhBgK7HRU+XkGp06uIsHGoY/+ F3SvCdmKiKt397lcJbsDtgVVbwKH3zCQOqQ2PtiUexc9i6znjK+9rALJXXMXvp/vUU3F7vsGhGu CaUEETU6Wvh0l1V4= X-Received: by 2002:a05:620a:8d9:: with SMTP id z25mr8114175qkz.483.1572390033657; Tue, 29 Oct 2019 16:00:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqww9/VwAm9jG4ANdcpvAaAMcebpdrUQJHBE/pfwoy/s2AQV6dg89Kzcx4z7D4Bm27HrFLSaEg== X-Received: by 2002:a05:620a:8d9:: with SMTP id z25mr8114138qkz.483.1572390033310; Tue, 29 Oct 2019 16:00:33 -0700 (PDT) Received: from redhat.com (94.222.26.109.rev.sfr.net. [109.26.222.94]) by smtp.gmail.com with ESMTPSA id k17sm325117qkg.63.2019.10.29.16.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 16:00:32 -0700 (PDT) Date: Tue, 29 Oct 2019 19:00:28 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PULL 05/14] qapi: add unplug primary event Message-ID: <20191029225932.14585-6-mst@redhat.com> References: <20191029225932.14585-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191029225932.14585-1-mst@redhat.com> X-Mailer: git-send-email 2.22.0.678.g13338e74b8 X-Mutt-Fcc: =sent X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Juan Quintela , Markus Armbruster , "Dr. David Alan Gilbert" , Jens Freimann Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: Jens Freimann This event is emitted when we sent a request to unplug a failover primary device from the Guest OS and it includes the device id of the primary device. Signed-off-by: Jens Freimann Message-Id: <20191029114905.6856-6-jfreimann@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Acked-by: Markus Armbruster --- qapi/migration.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/qapi/migration.json b/qapi/migration.json index 82feb5bd39..e9e7a97c03 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -1448,3 +1448,22 @@ # Since: 3.0 ## { 'command': 'migrate-pause', 'allow-oob': true } + +## +# @UNPLUG_PRIMARY: +# +# Emitted from source side of a migration when migration state is +# WAIT_UNPLUG. Device was unplugged by guest operating system. +# Device resources in QEMU are kept on standby to be able to re-plug it in case +# of migration failure. +# +# @device-id: QEMU device id of the unplugged device +# +# Since: 4.2 +# +# Example: +# {"event": "UNPLUG_PRIMARY", "data": {"device-id": "hostdev0"} } +# +## +{ 'event': 'UNPLUG_PRIMARY', + 'data': { 'device-id': 'str' } }