From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUZ82-0008BT-UE for qemu-devel@nongnu.org; Wed, 16 May 2012 03:58:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUZ7u-0004WU-7C for qemu-devel@nongnu.org; Wed, 16 May 2012 03:58:38 -0400 Received: from smtpout3.laposte.net ([193.253.67.228]:15076 helo=smtpout.laposte.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUZ7u-0004WC-1C for qemu-devel@nongnu.org; Wed, 16 May 2012 03:58:30 -0400 Date: Wed, 16 May 2012 09:58:28 +0200 From: "nicolas.sauzede" Message-ID: <189253069.454583.1337155108168.JavaMail.www@wwinf8304> In-Reply-To: <4FB28591.4090709@suse.de> References: <1512121653.606644.1337094765947.JavaMail.www@wwinf8306> <4FB27400.3010908@suse.de> <27874590.608345.1337095907076.JavaMail.www@wwinf8306> <4FB28591.4090709@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Get current env within io_handler ? Reply-To: "nicolas.sauzede" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl > First, please don't top-post and please don't use HTML emails. Sorry about that. > Yes, there is work towards getting rid of implicit AREG0 env. This will > be leading towards removing the register-pinned AREG0. Will this AREG0 removal be optional/configurable if the patches hit the mai= nstream ? > So you should rather figure out why you want to tie emulation of devices > to the CPU requesting it. Well, for example, we have the issue where we need to know if the cpu that = performs a hardware io is in priviledged/secure more, because some HW devic= es implemented in TLM requires such special flags on certain register acces= ses. How can we know that access property, when called back into an "io_handler"= ? Also, I think about some specific IPs such as local timers and such, all se= en at the same address by all the smp cpu, then how can we know what cpu nu= mber originated the io transaction ? > Andreas > Thanks again, NS. Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net