From patchwork Tue Jun 11 10:23:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 803240 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:e87:b0:35b:5a80:51b4 with SMTP id dz7csp228148wrb; Tue, 11 Jun 2024 03:24:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXxj/P2fhHFFTNBPb+jPQoQ9utIVfcqHy5fqGXwWIfEPoae6aW2akuQNSq/uGtNbvqNwHpAOKqtnpQEUCvvohDR X-Google-Smtp-Source: AGHT+IGKZjS/tPWXaxccwd2ukUzbS3W71YgyTTYRIkhScBVmkD1nrcyRT9CU2EZeT2ZFa4kavj6P X-Received: by 2002:a05:6122:1493:b0:4ea:fe74:fe29 with SMTP id 71dfb90a1353d-4eb5621d047mr10358027e0c.3.1718101460687; Tue, 11 Jun 2024 03:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718101460; cv=none; d=google.com; s=arc-20160816; b=tt6hCfoSFOHe2/mLeRYAG70pCg81xcfMgqoja8vaPh7YVlFQZJ+CnOohYbL11mbFpD UuvDnGQQrzZub41W9qytcFLEiVGAnCKcmp2EOs9cF0qB+Kz2tP23BVXgAZ0ziOkHnziQ Z82vnzY7mPMkS3O/JIenOsY+7f2VHJO/RczGdiFF65paDTjAd5Xn0L4BO+h2P8B57tHv MAbhm3OVKdvb5E9R00wkSnfhd9Mn76iLNVnUFY5LJdTL6Jmh9Jo3euFJObop2GO131HI NgHoIhbVNIC1eaZCDRv0mjFbJLoFyzMKp5/RyStVPuYkybAbbuOzY23NnyAVor83MKEe 5vuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=Xpe02UaoiDO4a/WcwgPB6nbXqy4TUqut8B50lRTSb+o=; fh=FkQzJXIq+n2C9ByQZTbGAO3+M4QEVn9b2YEuIW+ksR8=; b=CKmcM6SwEl3nEjuK/zULJCyfE3LTcBnblOV+7bYOcSCY60hAsH4kaLiU8RT2RcTCK9 EwPkJKchErCsFB3pGmDy8LDbEIV1MNKWBZVY6LrRViQrATs/omg0RJWk5WTaUuKddlNl xhFrmMtxIcrpXv34jbve61/HBRBy8nszm3EgKeSKT9HD8imAwk9AtqGAGZCCJ8FU5hVY ZZGjdKnEDyVJwRNiuljDf1v4Qab1N8yIhmSouZZfDZpDSv0s3ElyYh6f360VgjhKbTBo gngMXmqT2ZXvUxiB+9QOZvuMLqAxNKiGx/BClenbyjiqEMF8BMnguwqFEaOPE2uBy8Gz 1wfA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vuw4/2NI"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-79554a509desi824399485a.149.2024.06.11.03.24.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Jun 2024 03:24:20 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vuw4/2NI"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGyen-0006PU-CR; Tue, 11 Jun 2024 06:23:13 -0400 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 1sGyem-0006P1-2j for qemu-devel@nongnu.org; Tue, 11 Jun 2024 06:23:12 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGyek-0000XL-6c for qemu-devel@nongnu.org; Tue, 11 Jun 2024 06:23:11 -0400 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-35f188e09a8so2271354f8f.2 for ; Tue, 11 Jun 2024 03:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718101388; x=1718706188; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Xpe02UaoiDO4a/WcwgPB6nbXqy4TUqut8B50lRTSb+o=; b=vuw4/2NIHWia3DF/C/YKOGfiFjb+J/IP9VGlxqQGaDlJn+khpz/nvJMPF35n9EpADF Fd9YpyFKA3nF0K6LdBlOta4MJx7z+h7uxQ1CJhBBNqaco/GS8RJixZh6j58A/XRMvLrP 83QQ8Ubk6WdtTeTlrAN3FSZWo1AEJ4GUsiqsaavOp/3moyt7MEl12S5KyNjcpLbd0w62 lSgC2a0Zzd5+7DPajIHzeV0Fz5OaxgdkY8sI3okzjO90IGyL9KrV7FF/cvxrKVqt0FIi DRdfYdETcEPsrERZPLfut0P//CdzKLZZMfsbcXmRQud0ntJUlRhg4Lr+CHqyPrXmp1pK nNCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718101388; x=1718706188; 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=Xpe02UaoiDO4a/WcwgPB6nbXqy4TUqut8B50lRTSb+o=; b=XnxTwX+jVBEHeQ0LRiZYDbzKR1DDjNePuyKBGkVeGbMPGI5sKHz8CTm0BZM67kK3+k Nie2d9utKtruY2NxjwbVVBq2yeE6BvHQykzYtVEuL7vE8eWgZCaOPPxvz6gFdT2UTy++ GtLLMRsGOKlydawcRZP/kmxIy+OQ38X+2VII8+qBeXR61oInmAzKeQDVi79y5rv5+Eho 0zDilcZ5Mp5S9p3HAZ14CfdBm8pLcTBen+mmhztSwGO5oM6otz0v3VcWDA7wH3YHX4Sc cXdfNWOvu4WHb8vy2WOZe50OPWt6xaDQK+P8o4YuD9h29GDeAEVtcSR2YE/yPyE9P1uf P5AA== X-Forwarded-Encrypted: i=1; AJvYcCUsfUw8lLKqlCzqS43U3s/ILq0RBc9w53lEpiYQoh+fgiBuL7gNqlFE7Fo9dJAW7h70+JxqbfBHm/bs2ZhrlOQwhu7AURw= X-Gm-Message-State: AOJu0YzZh6EoctqUa1hgI7YGH5trP22RNY8CXEMJlwXEjf73rx4Iu5j5 J4qr1z9IXK0YDX2ekplaAzIgoiO/xPE2QKCVngSXqci4pXBWpUT4j4tWMrb3kSc= X-Received: by 2002:a5d:6d01:0:b0:35f:18e6:845f with SMTP id ffacd0b85a97d-35f18e68979mr5687383f8f.40.1718101388519; Tue, 11 Jun 2024 03:23:08 -0700 (PDT) Received: from m1x-phil.lan (rsa59-h02-176-184-32-6.dsl.sta.abo.bbox.fr. [176.184.32.6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35f2598ac1esm4513148f8f.93.2024.06.11.03.23.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 11 Jun 2024 03:23:08 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , "Dr. David Alan Gilbert" , Markus Armbruster , Philippe =?unknown-8bit?q?Mathieu-Da?= =?unknown-8bit?q?ud=C3=A9?= Subject: [PATCH v2 0/3] hw/usb: Introduce x-query-usbhost QMP command Date: Tue, 11 Jun 2024 12:23:02 +0200 Message-ID: <20240611102305.60735-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Since v1: - Consider modules (Daniel) - Remove monitor_register_hmp Philippe Mathieu-Daudé (3): hw/usb: Remove unused 'host.h' header hw/usb: Introduce x-query-usbhost QMP command monitor: Remove monitor_register_hmp() qapi/machine.json | 18 +++++++++++++++ hw/usb/host-libusb.h | 16 ++++++++++++++ hw/usb/host.h | 44 ------------------------------------- include/hw/usb.h | 3 --- include/monitor/monitor.h | 2 -- hw/usb/bus-stub.c | 7 +++++- hw/usb/host-libusb-common.c | 31 ++++++++++++++++++++++++++ hw/usb/host-libusb.c | 43 ++++++++++++++++++++++++------------ monitor/hmp-target.c | 16 -------------- tests/qtest/qmp-cmd-test.c | 3 +++ hmp-commands-info.hx | 2 ++ hw/usb/meson.build | 1 + 12 files changed, 106 insertions(+), 80 deletions(-) create mode 100644 hw/usb/host-libusb.h delete mode 100644 hw/usb/host.h create mode 100644 hw/usb/host-libusb-common.c