From nobody Sat Apr 20 14:21:30 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1674480793; cv=none; d=zohomail.com; s=zohoarc; b=Q0KgPLFEUWqEgJvhESF2ViUrf6tWwmfTC3e3M3W93ULCjbgCdjIHFSbCOII19BRx2+Pqe4g5vLhXBT0V83yUlJz2HT602uF98r1Y+6oIAwmwa+DmuQce1uKVOo58njqSAuuywZMqS/HejOEkqaP8vqFOzpEaqTSeHG4t/WHGcDo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674480793; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=rJ+NTy4gErUqe3J/rKHXwISGJuTXa4/wfP/P8jVuQk8=; b=jfnmHkVSvs09G1i1etlDtvU0XmQqvPmAD3ix5CR/pLvG7AA2alqsRsPBDc4bPJg8JKptXd+NePEX+3+OYSLZh6d1oK0+V2OPttNn1mGntXzxB7fALdq1Y7xKGNv9KmYSrcGCicFFLvJpabSL2Qx27G6qNtQnlsYSQ2bj/xP+2qI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1674480793614709.8441005218417; Mon, 23 Jan 2023 05:33:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJww2-0001iw-UW; Mon, 23 Jan 2023 08:32:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwvO-0001WV-H6 for qemu-devel@nongnu.org; Mon, 23 Jan 2023 08:31:59 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJwui-00018y-Kr for qemu-devel@nongnu.org; Mon, 23 Jan 2023 08:31:22 -0500 Received: by mail-wm1-x333.google.com with SMTP id l41-20020a05600c1d2900b003daf986faaeso8561922wms.3 for ; Mon, 23 Jan 2023 05:30:58 -0800 (PST) Received: from bark.. (bzq-84-110-34-91.static-ip.bezeqint.net. [84.110.34.91]) by smtp.gmail.com with ESMTPSA id b16-20020adff910000000b002bdf8dd6a8bsm20379622wrr.80.2023.01.23.05.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 05:30:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rJ+NTy4gErUqe3J/rKHXwISGJuTXa4/wfP/P8jVuQk8=; b=gUcqb3Fwhd6L6g7IERSuIu/TgI492IHOy6HijKxFlOaWxw1aoKisPrO5dga5Ln/VUe Lq3Q6WBNeCYMCEvmbvqeTtQHQLjTwIYL9Qb0ggRIkENiliTxW8vzd9ZseSKa29w/THrp IhBmBySvzikG0WIpHhaJYS7LkpOznnpp1jarcvKGsBzPPMN1OdK6mM4+1OOjBwFKi0nN 1mpQivM/ANo4ZHyuCShjBIjY+8K0e4lVzP5WS1cJnFSdlplpoUlAvLvHRbMyHGGqCLsB 5IAriQOK2EMBJnUFlIWnzGOF2c5eMYbuphlCI8BtcQQ9AWWssWGvgM5jFE+toh9mQKV0 Sssg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rJ+NTy4gErUqe3J/rKHXwISGJuTXa4/wfP/P8jVuQk8=; b=NeIZc8h1X/x43dtmnpkIZGEzDoMZzc0eNlS+WZofJ6V65WxqMvrJisXgK5pUWjEria 9fTIu+jQqF09IDOdGFMzQifFfxw4ukAQLw7gC5fhM9a0ZwrtowDUrdZjGGL+f5q7mnOl gYmRRw08tAg8tsQ1f0Yp3Ty4sIi/TyGcImzneRCGCrH3YArSUH3GHrAY2rk/sHsXl8n/ vKLaAogNoU0PUCDCexWXEDdnjr58JSEWfrX1JqGXkAs0RDVqQOnYSxW3a5moOFRyWTVJ l9Ycu3Uev5TDYwXEAHgjQbTA3WQp288ZJ/IGgXrazkzPQBVJVsCooCFT7eMnozK2fnf9 kOtw== X-Gm-Message-State: AFqh2koC1IrLVm+/ujqwPmHU2KM3YRHjEHFK/KD8TVStM501KKxTNjZ2 eTNxicMiWMKi/p6tG65sbELv8j08HJJJjj7U X-Google-Smtp-Source: AMrXdXsbIOAaIN0JZumf0FpPypdUglr+dzsvOrQoZPpo+cn9URN3SJlVWATgezepA6GzzuVnHarEuA== X-Received: by 2002:a05:600c:4f08:b0:3db:9e3:3bf1 with SMTP id l8-20020a05600c4f0800b003db09e33bf1mr22844182wmq.31.1674480656115; Mon, 23 Jan 2023 05:30:56 -0800 (PST) From: Kfir Manor To: qemu-devel@nongnu.org, Konstantin Kostiuk , Michael Roth Cc: Yan Vugenfirer Subject: [PATCH v2] qga/linux: add usb support to guest-get-fsinfo Date: Mon, 23 Jan 2023 15:30:49 +0200 Message-Id: <20230123133049.1053505-1-kfir@daynix.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2a00:1450:4864:20::333; envelope-from=kfir@daynix.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1674480795047100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Kfir Manor Reviewed-by: Konstantin Kostiuk --- qga/commands-posix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index ebd33a643c..aab9d3bd50 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -880,7 +880,9 @@ static bool build_guest_fsinfo_for_pci_dev(char const *= syspath, g_str_equal(driver, "sym53c8xx") || g_str_equal(driver, "virtio-pci") || g_str_equal(driver, "ahci") || - g_str_equal(driver, "nvme"))) { + g_str_equal(driver, "nvme") || + g_str_equal(driver, "xhci_hcd") || + g_str_equal(driver, "ehci-pci"))) { break; } =20 @@ -977,6 +979,8 @@ static bool build_guest_fsinfo_for_pci_dev(char const *= syspath, } } else if (strcmp(driver, "nvme") =3D=3D 0) { disk->bus_type =3D GUEST_DISK_BUS_TYPE_NVME; + } else if (strcmp(driver, "ehci-pci") =3D=3D 0 || strcmp(driver, "xhci= _hcd") =3D=3D 0) { + disk->bus_type =3D GUEST_DISK_BUS_TYPE_USB; } else { g_debug("unknown driver '%s' (sysfs path '%s')", driver, syspath); goto cleanup; --=20 2.38.1