Received: from eggs.gnu.org ([208.118.235.92]:46368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv246-0006pq-Hz for qemu-devel@nongnu.org; Tue, 15 Jan 2013 03:40:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tv244-00045v-2R for qemu-devel@nongnu.org; Tue, 15 Jan 2013 03:40:14 -0500 Received: from nm10.bullet.mail.bf1.yahoo.com ([98.139.212.169]:42415) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Tv243-00045Q-Rg for qemu-devel@nongnu.org; Tue, 15 Jan 2013 03:40:11 -0500 Message-ID: <1358239210.90323.YahooMailClassic@web161602.mail.bf1.yahoo.com> Date: Tue, 15 Jan 2013 00:40:10 -0800 (PST) From: Shijesta Victor In-Reply-To: <50F50592.8090305@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="406169123-931802182-1358239210=:90323" Subject: [Qemu-devel] IS_USER(s) in target-arm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Qemu developers --406169123-931802182-1358239210=:90323 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I am trying to use QEMU to print the virtual and physical addresses of all = memory accesses for target-arm. I can see the addresses being computed, but= they pass IS_USER(s) as an index to routines like gen_ld8s etc, Can you pl= ease explain what this does? Any help is appreciated; thanks in advance! regards, =0Ashijesta --- On Tue, 15/1/13, Wenchao Xia wrote: From: Wenchao Xia Subject: Re: [Qemu-devel] [PATCH V3 02/11] block: add bdrv_get_filename() f= unction To: "Luiz Capitulino" Cc: aliguori@us.ibm.com, phrdina@redhat.com, stefanha@gmail.com, qemu-devel= @nongnu.org, armbru@redhat.com, pbonzini@redhat.com Date: Tuesday, 15 January, 2013, 13:00 =E4=BA=8E 2013-1-15 1:08, Luiz Capitulino =E5=86=99=E9=81=93: > On Mon, 14 Jan 2013 15:09:38 +0800 > Wenchao Xia wrote: > >>=C2=A0 =C2=A0 This function will simply return the uri or filename used >> to open the image. >> >> Reviewed-by: Eric Blake >> Signed-off-by: Wenchao Xia >> --- >>=C2=A0=C2=A0=C2=A0block.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0=C2=A0|=C2=A0 =C2=A0 5 +++++ >>=C2=A0=C2=A0=C2=A0include/block/block.h |=C2=A0 =C2=A0 1 + >>=C2=A0=C2=A0=C2=A02 files changed, 6 insertions(+), 0 deletions(-) >> >> diff --git a/block.c b/block.c >> index 4e28c55..5f95da5 100644 >> --- a/block.c >> +++ b/block.c >> @@ -2967,6 +2967,11 @@ BlockStatsList *qmp_query_blockstats(Error **errp= ) >>=C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0return head; >>=C2=A0=C2=A0=C2=A0} >> >> +const char *bdrv_get_filename(BlockDriverState *bs) >> +{ > > bs can be const. > OK. --=20 Best Regards Wenchao Xia --406169123-931802182-1358239210=:90323 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I am trying to use QEMU to print the virtual = and physical addresses of all memory accesses for target-arm. I can see the= addresses being computed, but they pass IS_USER(s) as an index to routines= like gen_ld8s etc, Can you please explain what this does?

Any help is appreciated; thanks in advance!

regards,
=0Ashijes= ta

--- On Tue, 15/1/13, Wenchao Xia <xiawenc@linux.vnet.ibm= .com> wrote:

From: Wenchao Xia &= lt;xiawenc@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH V3 02= /11] block: add bdrv_get_filename() function
To: "Luiz Capitulino" <l= capitulino@redhat.com>
Cc: aliguori@us.ibm.com, phrdina@redhat.com, s= tefanha@gmail.com, qemu-devel@nongnu.org, armbru@redhat.com, pbonzini@redha= t.com
Date: Tuesday, 15 January, 2013, 13:00

=E4=BA=8E 2013-1-15 1:08, Luiz Capitulino =E5=86=99=E9=81=93:
> = On Mon, 14 Jan 2013 15:09:38 +0800
> Wenchao Xia <xiawenc@linux.vnet.ibm.com> wrote:
>
>>&nb= sp;   This function will simply return the uri or filename used
>= ;> to open the image.
>>
>> Reviewed-by: Eric Blake <e= blake@redhat.com>
>> Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
>> ---
&= gt;>   block.c            &= nbsp;  |    5 +++++
>>   includ= e/block/block.h |    1 +
>>   2 files cha= nged, 6 insertions(+), 0 deletions(-)
>>
>> diff --git a/= block.c b/block.c
>> index 4e28c55..5f95da5 100644
>> ---= a/block.c
>> +++ b/block.c
>> @@ -2967,6 +2967,11 @@ Blo= ckStatsList *qmp_query_blockstats(Error **errp)
>>    &n= bsp;  return head;
>>   }
>>
>> +const char *= bdrv_get_filename(BlockDriverState *bs)
>> +{
>
> bs c= an be const.
>
OK.


--
Best Regards

Wenchao X= ia


--406169123-931802182-1358239210=:90323--