From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG3dn-0005Kn-5R for qemu-devel@nongnu.org; Wed, 31 May 2017 09:26:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG3dl-00014s-V9 for qemu-devel@nongnu.org; Wed, 31 May 2017 09:26:23 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:33373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dG3dl-00014e-I2 for qemu-devel@nongnu.org; Wed, 31 May 2017 09:26:21 -0400 Received: by mail-lf0-x242.google.com with SMTP id m18so1417630lfj.0 for ; Wed, 31 May 2017 06:26:21 -0700 (PDT) MIME-Version: 1.0 References: <20170509173559.31598-1-marcandre.lureau@redhat.com> <20170509173559.31598-15-marcandre.lureau@redhat.com> <871srmqq46.fsf@dusky.pond.sub.org> <87efv588ir.fsf@dusky.pond.sub.org> In-Reply-To: <87efv588ir.fsf@dusky.pond.sub.org> From: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Date: Wed, 31 May 2017 13:26:09 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 14/17] acpi: fix s3/s4 disabled type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org On Wed, May 31, 2017 at 5:23 PM Markus Armbruster wrote= : > Marc-Andr=C3=A9 Lureau writes: > > > On Thu, May 18, 2017 at 4:58 PM Markus Armbruster > wrote: > > > >> Marc-Andr=C3=A9 Lureau writes: > >> > >> > Use a more specific bool type. > >> > > >> > Signed-off-by: Marc-Andr=C3=A9 Lureau > >> > >> Why doesn't this run afoul backward compatibility? To answer the > >> question, we need to enumerate affected external interfaces. > >> > >> > > Right, this will break if we have users such as: > > > > -global PIIX4_PM.disable_s3=3D2 > > > > With this change, it will now error with: > > > > qemu-system-x86_64: can't apply global PIIX4_PM.disable_s3=3D2: Invalid > > parameter type for 'disable_s3', expected: boolean > > > > Acceptable? otherwise, I drop the patch > > Quick grep through libvirt... aha, src/qemu_command.c: > > if (def->pm.s3) { > const char *pm_object =3D "PIIX4_PM"; > > if (qemuDomainIsQ35(def) && > virQEMUCapsGet(qemuCaps, QEMU_CAPS_ICH9_DISABLE_S3)) { > pm_object =3D "ICH9-LPC"; > } else if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_PIIX_DISABLE_S3)) = { > virReportError(VIR_ERR_CONFIG_UNSUPPORTED, > "%s", _("setting ACPI S3 not supported")); > return -1; > } > > virCommandAddArg(cmd, "-global"); > virCommandAddArgFormat(cmd, "%s.disable_s3=3D%d", > pm_object, def->pm.s3 =3D=3D > VIR_TRISTATE_BOOL_NO); > } > > We need to keep at least disable_s3=3D0 and disable_s3=3D1 working. Let'= s > drop the patch from this series. > Ah crap, I thought 0 and 1 where acceptable bool values, it's not the case.= . --=20 Marc-Andr=C3=A9 Lureau