Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 11660D5B175 for ; Mon, 15 Dec 2025 14:41:21 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1187118.1508535 (Exim 4.92) (envelope-from ) id 1vV9l5-00028Q-0U; Mon, 15 Dec 2025 14:41:07 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1187118.1508535; Mon, 15 Dec 2025 14:41:06 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vV9l4-00028J-Sx; Mon, 15 Dec 2025 14:41:06 +0000 Received: by outflank-mailman (input) for mailman id 1187118; Mon, 15 Dec 2025 14:41:05 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vV9l3-00027r-CL for xen-devel@lists.xenproject.org; Mon, 15 Dec 2025 14:41:05 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1vV9l1-00B90L-38; Mon, 15 Dec 2025 14:41:04 +0000 Received: from [2a01:cb15:80df:da00:8c91:1441:8140:73df] (helo=l14) by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vV9l1-00Cvvu-2w; Mon, 15 Dec 2025 14:41:04 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date; bh=JejpsEBmLp12AlNzg72HBm8/yAdsIEbrYfmd9RT0urk=; b=Mz69207VEgClo/HFb+b8/puazJ ND355deS5bM8Xgcd/EyXaiDDLLurj7hc8KL+P/jtH+ACW92w2J7ShhBI0TdOAUsGZxaAmW085UwQH YzGiCI5WLJAzRXezsxgMPABOKQ8D1Ul6pmDes1wVMKVhWNj/Co/sCQHDlmx2yPbfTfUg=; Date: Mon, 15 Dec 2025 15:41:02 +0100 From: Anthony PERARD To: Jan Beulich Cc: Anthony PERARD , Juergen Gross , xen-devel@lists.xenproject.org Subject: Re: [XEN PATCH] libxl: Fix device_add QMP calls with QEMU 9.2 and newer Message-ID: References: <20251215135124.11410-1-anthony@xenproject.org> <92e6ecac-7a5f-4831-8116-0c34856f1175@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92e6ecac-7a5f-4831-8116-0c34856f1175@suse.com> On Mon, Dec 15, 2025 at 03:11:53PM +0100, Jan Beulich wrote: > On 15.12.2025 14:51, Anthony PERARD wrote: > > From: Anthony PERARD > > > > QEMU used to ignore JSON types and do conversion string <-> integer > > automatically for the command "device_add", but that was removed in > > QEMU 9.2 (428d1789df91 ("docs/about: Belatedly document tightening of > > QMP device_add checking")). > > And older qemu accepts integers as well? As the QEMU document explains about the removed feature is that they should. We already have two users of `device_add` which use integers for some arguments. And just to be sure, I've just tested with QEMU 8.0, the patch works fine. Cheers, -- Anthony PERARD