Received: from eggs.gnu.org ([2001:4830:134:3::10]:44749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcsvU-0005FY-Le for qemu-devel@nongnu.org; Tue, 31 Mar 2015 05:57:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcsvR-0001rC-8J for qemu-devel@nongnu.org; Tue, 31 Mar 2015 05:57:40 -0400 From: Markus Armbruster References: <1425615506-1829-1-git-send-email-david@gibson.dropbear.id.au> <1425615506-1829-3-git-send-email-david@gibson.dropbear.id.au> <87mw2vvsao.fsf@blackfin.pond.sub.org> <87384mvq1y.fsf@blackfin.pond.sub.org> <20150331000524.GN9908@voom.fritz.box> Date: Tue, 31 Mar 2015 11:57:28 +0200 In-Reply-To: <20150331000524.GN9908@voom.fritz.box> (David Gibson's message of "Tue, 31 Mar 2015 11:05:24 +1100") Message-ID: <87k2xxa3qv.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 2/6] Remove monitor.c dependency on CONFIG_I8259 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: agraf@suse.de, mst@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, blauwirbel@gmail.com, michael@walle.cc, qemu-ppc@nongnu.org, andreas.faerber@web.de David Gibson writes: > On Mon, Mar 30, 2015 at 10:37:45AM +0200, Markus Armbruster wrote: [...] >> This adds "info irq" and "info pic" to the targets that didn't have them >> before, implemented by i8259.c's hmp_info_pic() and hmp_info_irq(). >> They do nothing unless the machine has an "isa-i8259" device. >> >> Cases: >> >> 1. If the machine has one, and it's the only interrupt controller, the >> commands work as advertized. >> >> 2. If the machine doesn't have one, the commands are empty promises. >> >> 3. If the machine has one, but it's not the only interrupt controller, >> the commands confidently claim the i8259 is all there is. >> Misinformation. >> >> Cases 2 and 3 are common, case 1 is rare. >> >> We can: >> >> A. Fix the commands to cover all interrupt controllers. >> >> B. Fix them to warn the user about missing interrupt controllers. >> >> We can approximate this by warning always, because it's almost never >> the only interrupt controller anyway :) >> >> C. Rip 'em both out and be done with it. >> >> D. Do nothing. >> >> E. Provide them as is on all targets. >> >> Spread the badness fairly. >> >> I vote for C or B. A seems not worthwhile. > > I'd love to do C, if we can get confirmation that no-one's really > using the existing HMP commands. That would make a bunch of things > simpler. I gave it a shot, let's see how people react. [...]