From patchwork Tue Oct 8 14:10:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Grytsov X-Patchwork-Id: 11179669 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 5DC4B13BD for ; Tue, 8 Oct 2019 14:12:02 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 3A5EF2070B for ; Tue, 8 Oct 2019 14:12:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G5JktpLd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A5EF2070B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iHqCB-0006tw-0k; Tue, 08 Oct 2019 14:10:35 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iHqC9-0006tr-8W for xen-devel@lists.xenproject.org; Tue, 08 Oct 2019 14:10:33 +0000 X-Inumbo-ID: 6333776a-e9d5-11e9-80e3-bc764e2007e4 Received: from mail-lj1-x242.google.com (unknown [2a00:1450:4864:20::242]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6333776a-e9d5-11e9-80e3-bc764e2007e4; Tue, 08 Oct 2019 14:10:32 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id m13so17667792ljj.11 for ; Tue, 08 Oct 2019 07:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=BFNvk6/uRsN/nLO6lYEdySTeJPvtIorsHo2OuKC6ocU=; b=G5JktpLdkueISUQoch2RqH8bpSoUxzCNLJgCv3/EPorO/qPWhLE4jgFzIKYVejMY9d 4DE+O0qct0XcmDUaDe/J3kXm98mu/Ki3FQRbHKdHBHou7OoSqz8MrvzMumov7wduTafN jC2a/QpHHbf9IUPvrDmHthe/RCTxJklTqFLTSgyRt50CVSJYAx/I8qWiXXE8ambCCbYX LUpYhk1QAB4kPJhSg41A8zVua0PJasTt4qXtACne3u8FRGvwA56B81/WHApGzlC5Uepi JQUCH0SdvgHgOy4+a9PvOjKEO5EUHtjqZB14AhTPw2yfTuK/ZQi/gU94q5kUMO27zjQm EeoQ== 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; bh=BFNvk6/uRsN/nLO6lYEdySTeJPvtIorsHo2OuKC6ocU=; b=pB49o6uvIvYUjPXc8GC+j7WVhri9NR8K4AX/nmChNQVUYOwcyxV2rJPp4H3eBtof5f S5sewLDF8wRxLtGycwyYlxyMiY/xRrrZSk6NDMRp2UuaWvQfe8QTrO/xVCcgeUnGXpZ+ q7U6IKpOmCTZjEHeAqyp0AHjEecBSLqvayXdTfHwC8gnEi636GwSLBzwizUaJpMc8B9N RfAN+6V6L5X6cKK8iovXRBjG+zs/MvGy0XsVVbFozRTxfY85XUEooRtLNG5YwYdj3gL7 jhdfc4ne5qNLvWqsdJZiDmmnffe1WFMRHHL4zJM9FF4VUxVZU1noGvl75Vl14EnnZYOt m51w== X-Gm-Message-State: APjAAAXvlqsHXNA0Vek/Ew9oLcDP4EKY5dZKS3nRlFWl8LGf3LLrIgx6 31dZWxJeOVQJs9kkwgFBHfUswaJio5c= X-Google-Smtp-Source: APXvYqzDKGkpCBRRdG3NiocRIEv2dgnEgnJRto7t0ONQdCF43HhFj0EwfFto47ggOjU7D4UTCkto2Q== X-Received: by 2002:a2e:9d44:: with SMTP id y4mr22940131ljj.115.1570543830523; Tue, 08 Oct 2019 07:10:30 -0700 (PDT) Received: from al1-pc.kyiv.epam.com (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id z20sm4937764ljk.63.2019.10.08.07.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 07:10:30 -0700 (PDT) From: Oleksandr Grytsov To: xen-devel@lists.xenproject.org Date: Tue, 8 Oct 2019 17:10:22 +0300 Message-Id: <20191008141024.10885-1-al1img@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Xen-devel] [PATCH v1 0/2] Remove backend xen store entry on domain destroy X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Oleksandr Grytsov , ian.jackson@eu.citrix.com, wl@xen.org MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Oleksandr Grytsov We have added VKBD device with user space PV backend. But libxl can't differentiate domain kind for this device. As result, it performs QEMU procedure for adding and removing VKB device with user space backend. To fix this issue, new device kind VINPUT is introduced. It is used as backend kind in case of user space VKBD backend. Another issue addresses in this patch series is error timeout on guest domain destroy in case using user space PV backends. We have a driver domain with user space backends (VDISPL, VSND, VKBD). When a guest domain destroyed, we see following error: "timed out while waiting for ... to be removed" xl expects that PV device backend entries is removed. xl devd removes these entries for specific devices only: VBD, VIF, QDISK and then deletes the guest domain from the list. The fix is to delete guest domain only after all devices are removed and performs generic device remove procedure for following device: VINPUT, VDISPL, VSND. Oleksandr Grytsov (2): libxl: introduce new backend type VINPUT libxl: add removing XS backend path for PV devices on domain destroy tools/libxl/libxl_device.c | 14 +++++--------- tools/libxl/libxl_types_internal.idl | 1 + tools/libxl/libxl_vkb.c | 29 ++++++++++++++++++---------- 3 files changed, 25 insertions(+), 19 deletions(-)