From: Markus Armbruster Subject: Re: [PATCH] testdev: adjust for ISA irq changes Date: Mon, 30 May 2011 17:34:53 +0200 Message-ID: References: <1306673851-23152-1-git-send-email-avi@redhat.com> <4DE260D3.4090507@web.de> <4DE261FF.20002@redhat.com> <4DE26484.8060804@web.de> <4DE2659F.1010706@redhat.com> <4DE267F0.5070908@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Marcelo Tosatti , kvm@vger.kernel.org To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50672 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753325Ab1E3Pe4 (ORCPT ); Mon, 30 May 2011 11:34:56 -0400 In-Reply-To: <4DE267F0.5070908@web.de> (Jan Kiszka's message of "Sun, 29 May 2011 17:36:16 +0200") Sender: kvm-owner@vger.kernel.org List-ID: Jan Kiszka writes: > On 2011-05-29 17:26, Avi Kivity wrote: >> On 05/29/2011 06:21 PM, Jan Kiszka wrote: [...] >>> We also need a better interface to discover and track legacy IRQ routes >>> for device assignment. Markus is currently collecting requirements for >>> qdev enhancements, and I think generic IRQ manipulation and discovery >>> belongs there. >> >> Possibly. But note that attempting to shoehorn everything into >> bus/device model may not work. Motherboard devices, especially, often >> bypass the bus/device relationship, just because everything is available >> to them on the motherboard, and because hardware designers didn't go to >> software engineering schools but instead do what's necessary to get >> things working. We have to be prepared for exceptions. > > Yes, the IRQ tree should probably be independent of the qdev tree. I was > thinking of qdev as the infrastructure that allows to build and maintain > that tree and to associate IRQ pins with qdev devices. The bus/device model limits the connections between devices to a tree, which can't model real world interrupt wirings. We obviously need to generalize there.