From patchwork Fri Oct 19 05:20:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10648663 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 A83CA112B for ; Fri, 19 Oct 2018 05:21:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94F9D28928 for ; Fri, 19 Oct 2018 05:21:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8571F28B3C; Fri, 19 Oct 2018 05:21: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 41ECC28928 for ; Fri, 19 Oct 2018 05:21:59 +0000 (UTC) Received: from localhost ([::1]:47049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNEU-0004nj-F1 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 19 Oct 2018 01:21:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNDC-0003il-LS for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDND6-00004u-R9 for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:37 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:43325) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDND2-0008PQ-MW for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:31 -0400 Received: by mail-pl1-x642.google.com with SMTP id 30-v6so15335066plb.10 for ; Thu, 18 Oct 2018 22:20:25 -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=bWj28PPpFjlST+w2m9SZbflaRmqqaiDjyL5JiX2/QQ0=; b=it51gGrlo3Ca/xYYPhVe0Hrw0gI4qTwhxwbL5fYEiitpERc1SbU61DJjMxzZt8ZueZ FTmauYDHiW+2nAgcXvKBMbF36P91HIIy/7dEQYKZKZ3oAoDmoNS0f8yWyeaRla84X5+I CIwp7HPV/EBUrv+82PeAybYvS6nxZnVbVIfBHVDZ0OVSaxVlfoFJr5UczhkOzya166fi SpQNGf3ySb2E5HYEQTLICY5HNnMQ7HJ/Ao1xifjbooeyKrOuGjsZ5187ckbDKbTf47OE y8QmuW2gDUWCFVBRB78JHVQPZ3WJ5maUZlsfPhFr+vkTPBjnSjDYvzNi/kGLrTyhPtW4 r4Pg== 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=bWj28PPpFjlST+w2m9SZbflaRmqqaiDjyL5JiX2/QQ0=; b=EzQpFZcB7L4NmfZOYZp+f2PIke4d9dfmJ0XavzG8f7EgqkhzKeokyYMqkvR9S+Ddc+ MSuiFdlF//67ZX55OjoqA6ubmcrptX+uqprTMxBxJ1P6+meIjwuMGSE9fgXbpFwrlbK/ ghWQsMbeI2nz4B03dDLWw/DYZ+SdUcd48PHDSNs/9EM3Y928SL6OWJF3zQEReLBZSgrf qfN6H1/Q9TUlsf2pA4g/jWQexiBCSugYnbbdGa3riEkp5B8xyA/FaRB2vO5AkATVJr/R QDxO3lRadGyg6NaMLJ+kWKy7XrfZuOswdDr75tQmxGSdS6a1sy9mIBUr+EZUhLO8lLey xm5g== X-Gm-Message-State: ABuFfoj7GwPSCRMeI0eWSK5EoletR1Ke9dcmT0SUd5brPWiGy67S9b2Y JT6C5TlHpLWjI9WLeYh/rNg= X-Google-Smtp-Source: ACcGV62JyEmVadawhr/JntDtrbnKVwi7H4YNJlUV3nKDgVNaovWVK/8Yu+ipuW0NAb9UtwPlQlkXGg== X-Received: by 2002:a17:902:368:: with SMTP id 95-v6mr33027552pld.319.1539926424508; Thu, 18 Oct 2018 22:20:24 -0700 (PDT) Received: from localhost.localdomain.localdomain ([103.65.40.100]) by smtp.gmail.com with ESMTPSA id p1-v6sm25075191pff.128.2018.10.18.22.20.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 22:20:23 -0700 (PDT) From: Li Qiang To: alex.williamson@redhat.com Date: Thu, 18 Oct 2018 22:20:05 -0700 Message-Id: <1539926412-21831-1-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::642 Subject: [Qemu-devel] [PATCH 0/7] vfio: some trivial fixes 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: Li Qiang , philmd@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch set contains some trivial issue such as QOMConvetion, typo and resources leak in vfio. Li Qiang (7): vfio-pci: make "vfio-pci-nohotplug" as MACRO vfio: ap-device: make it more QOMConventional vfio: drop TYPE_FOO MACRO in VMStateDescription vfio: paltform: fix a typo vfio: platform: cleanup the notifier in error path vfio: platform: free timer in error path vfio: platform: destory mutex in error path hw/s390x/ap-device.c | 2 +- hw/vfio/amd-xgbe.c | 2 +- hw/vfio/ap.c | 12 ++++++------ hw/vfio/calxeda-xgmac.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/pci.c | 6 ++++-- hw/vfio/platform.c | 12 ++++++++---- include/hw/s390x/ap-device.h | 4 ++-- 8 files changed, 24 insertions(+), 18 deletions(-) Reviewed-by: Philippe Mathieu-Daudé