From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZQj-0002dP-J5 for qemu-devel@nongnu.org; Mon, 03 Sep 2012 12:23:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8ZQf-000268-EP for qemu-devel@nongnu.org; Mon, 03 Sep 2012 12:23:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZQf-000263-5V for qemu-devel@nongnu.org; Mon, 03 Sep 2012 12:23:13 -0400 Message-ID: <5044D96C.3000406@redhat.com> Date: Mon, 03 Sep 2012 18:23:08 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1346640974-30974-1-git-send-email-mmogilvi_qemu@miniinfo.net> <1346640974-30974-6-git-send-email-mmogilvi_qemu@miniinfo.net> <50446D11.5050904@suse.de> <5044C10D.7050600@redhat.com> <87fw6z5d0e.fsf@elfo.mitica> <5044D243.3050506@redhat.com> <5044D2A7.7000609@siemens.com> <5044D36E.3060505@redhat.com> <5044D494.3070304@siemens.com> <5044D78D.1060803@redhat.com> In-Reply-To: <5044D78D.1060803@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 5/5] i8259: fix dynamically masking slave IRQs with IMR register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Jan Kiszka , "quintela@redhat.com" , Matthew Ogilvie , =?UTF-8?B?QW5kcmVhcyBGw6Q=?= =?UTF-8?B?cmJlcg==?= , "qemu-devel@nongnu.org" Il 03/09/2012 18:15, Avi Kivity ha scritto: >> > The values above are what every user of the PIC cascaded on our targets >> > must program to use them. So We will find them in the state once any >> > relevant guest code was able to run (e.g. the BIOS). >> > > Suppose the bios has not run yet? Then you transmit the subsection. BTW this also means that simply checking against eclr|icw3 is wrong; the right test is: * against elcr if !s->master * against elcr|icw3 if s->master This makes precomputing the value more appealing. Similarly, perhaps this: if (s->special_fully_nested_mode && s->master) { mask &= ~(1 << 2); } should be changed to if (s->special_fully_nested_mode && s->master) { mask &= ~s->icw3; } ? Paolo