From patchwork Tue Oct 23 11:23:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= X-Patchwork-Id: 10653081 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 2973414BD for ; Tue, 23 Oct 2018 11:25:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 191F82933C for ; Tue, 23 Oct 2018 11:25:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DA1D28D0E; Tue, 23 Oct 2018 11:25:17 +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.9 required=2.0 tests=BAYES_00,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 A84B72933C for ; Tue, 23 Oct 2018 11:25:16 +0000 (UTC) Received: from localhost ([::1]:40282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEuoF-00038l-Nz for patchwork-qemu-devel@patchwork.kernel.org; Tue, 23 Oct 2018 07:25:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEumi-0001qV-3o for qemu-devel@nongnu.org; Tue, 23 Oct 2018 07:23:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEumc-0007dZ-B6 for qemu-devel@nongnu.org; Tue, 23 Oct 2018 07:23:39 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:35666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEuma-0007W1-Ki for qemu-devel@nongnu.org; Tue, 23 Oct 2018 07:23:33 -0400 Received: by mail-wr1-f65.google.com with SMTP id w5-v6so1273741wrt.2 for ; Tue, 23 Oct 2018 04:23:26 -0700 (PDT) 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=BQT2a//vcgI9YrTEE/spN41IVBBAAsMDT9LqHYYYIRA=; b=PiR7uII8KtFNaZF+aYjfE0Bn9p8sjrbzLpflWYMCb7vWUnYjayUuT/m2NhI6dB8o4S GUFt+h3Y0HBPBUh/rOGwbhjVhNyBFOPGpSqc/Yg21nGfnAaSAQcqrlqRpd7NALYF+ats H1H0okcIJeUl4B5Agz9G5wTlmDIQLAbDumZdVxz5nXUqlhVPLK8FkVBWhbz1QydgaT7X Ek+bFPyc+r/1sWnttaYs3s0QmDA4HgNrvUY9SFxTLwy9FsqddKXQWwsUEg87d4DZGLyP hZFR2ygOze7WHGhCfGpO74IJnJJy1c1140yRqFlBEZ6DvCi+ZdlkBx+VxzFkbuQyPF36 5VPQ== X-Gm-Message-State: AGRZ1gIOyuHTRxTKSP/Vs+6rWRpxKJxaSFsKWgeJ4gNQQGG24VCsrpCB Sul5Kf50i4LRs+Gowk3TdvoI8eP/Ya8= X-Google-Smtp-Source: AJdET5f2lcYOnD8F+8R0hevGaFhnSN4JtaJTK/GG8011d2YwQVAFUdR5jD+hMrv71tAsK5XXRHV+Dg== X-Received: by 2002:a5d:4086:: with SMTP id o6-v6mr18653612wrp.133.1540293805408; Tue, 23 Oct 2018 04:23:25 -0700 (PDT) Received: from localhost.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id g8-v6sm1498990wmf.45.2018.10.23.04.23.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 04:23:24 -0700 (PDT) From: =?utf-8?b?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= To: qemu-devel@nongnu.org Date: Tue, 23 Oct 2018 13:23:09 +0200 Message-Id: X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.221.65 Subject: [Qemu-devel] [PATCH v5 00/14] qga: report serial number and disk node 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: Michael Roth , Olga Krishtal , =?utf-8?b?VG9tw6HFoSBHb2xlbWJpb3Zz?= =?utf-8?b?a8O9?= , Sameeh Jubran , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Note that PCI controller reporting on Windows was and still is broken. Unfortunately I don't know how to fix it at the momemnt. See commit message and code comment. If anyone has environment where the original code works let me know. CCing author of the code In case I missed something obvious. v5: - return -1 in PCI info I have cherry-picked three commits from Sameeh Jubran and Michael Roth: https://github.com/mdroth/qemu/commit/89f145d7e90d721dbc7c9d0082e564bad7e88247 https://github.com/mdroth/qemu/commit/d5f5f7e7dc265a9e62e5f4c2ee342ab7e56cca53 https://github.com/mdroth/qemu/commit/201db36b56d7d1ba5ff720eedcb3b62b75306fde - remove == TRUE from if-conditions - separate Linux and Windows changes so that the Linux part can be pushed independently; the relevant commits are ordered first. - fixed several typos v4: - split changes into more patches - fixed UNC for physical drive to use device namespace - renamed g_debug_err() to debug_error() - fixed build without libudev v3: - fix typos - add configure test for libudev - change order of patches fixing PCI controller info and build fix to avoid exposing broken code - split reporting of serial number and device node into two separate patches v2: - fix checkpatch error Michael Roth (1): *additonal fixup for NULL pci_controller field Sameeh Jubran (2): qga-win: prevent crash when executing fsinfo command qga-win: fsinfo: pci-info: allow partial info Tomáš Golembiovský (11): configure: add test for libudev qga: linux: report disk serial number qga: linux: return disk device in guest-get-fsinfo build: rename CONFIG_QGA_NTDDDISK to CONFIG_QGA_NTDDSCSI qga-win: add debugging information qga-win: refactor disk properties (bus) qga-win: report disk serial number qga-win: refactor disk info qga-win: handle multi-disk volumes qga-win: return disk device in guest-get-fsinfo qga-win: demystify namespace stripping configure | 24 +++- dtc | 2 +- qga/Makefile.objs | 1 + qga/commands-posix.c | 37 +++++- qga/commands-win32.c | 269 +++++++++++++++++++++++++++++++++++-------- qga/qapi-schema.json | 5 +- 6 files changed, 287 insertions(+), 51 deletions(-)