[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Tools: Make xen-access test compile in 32 bits mode


  • To: "Keir Fraser" <keir.xen@xxxxxxxxx>
  • From: "Andres Lagar-Cavilla" <andres@xxxxxxxxxxxxxxxx>
  • Date: Thu, 9 Feb 2012 06:43:35 -0800
  • Cc: ian.jackson@xxxxxxxxxx, andres@xxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, ian.campbell@xxxxxxxxxx
  • Delivery-date: Thu, 09 Feb 2012 14:44:05 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=lagarcavilla.org; h=message-id :in-reply-to:references:date:subject:from:to:cc:reply-to :mime-version:content-type:content-transfer-encoding; q=dns; s= lagarcavilla.org; b=q+O1Rk52ykeUfIJd8ktgrowlamJcym3bAL4wh2nl/G8X /QloGf1UL1rD2+jXdvtKvwV7jDYVJ9n+ypQZFlSgqHFWkROABwAAYF/ylc2EdyRb JUcMfP/DssN0celH9qd46x9/Wj9XTJcfDCq/3Xu9G0NHh8jmkct4wr6hr6hZWQg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

> On 08/02/2012 20:53, "Andres Lagar-Cavilla" <andres@xxxxxxxxxxxxxxxx>
> wrote:
>
>>  tools/tests/Makefile                |   2 --
>>  tools/tests/xen-access/xen-access.c |  12 +++++++-----
>>  2 files changed, 7 insertions(+), 7 deletions(-)
>>
>>
>> Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
>
> Please use the proper format macros in inttypes.h rather than casting. I
> fixed this up in this case, and have applied the resulting patch.
Ok, thanks!
Andres

>
>  -- Keir
>
>> diff -r 78ff0c8a944f -r 5c7986918883 tools/tests/Makefile
>> --- a/tools/tests/Makefile
>> +++ b/tools/tests/Makefile
>> @@ -11,9 +11,7 @@ ifeq ($(XEN_TARGET_ARCH),__fixme__)
>>  SUBDIRS-y += regression
>>  endif
>>  SUBDIRS-y += x86_emulator
>> -ifneq ($(XEN_TARGET_ARCH),x86_32)
>>  SUBDIRS-y += xen-access
>> -endif
>>
>>  .PHONY: all clean install distclean
>>  all clean distclean: %: subdirs-%
>> diff -r 78ff0c8a944f -r 5c7986918883 tools/tests/xen-access/xen-access.c
>> --- a/tools/tests/xen-access/xen-access.c
>> +++ b/tools/tests/xen-access/xen-access.c
>> @@ -600,13 +600,13 @@ int main(int argc, char *argv[])
>>              case MEM_EVENT_REASON_VIOLATION:
>>                  rc = xc_hvm_get_mem_access(xch, domain_id, req.gfn,
>> &access);
>>
>> -                printf("PAGE ACCESS: %c%c%c for GFN %lx (offset %06lx)
>> gla
>> %016lx (vcpu %d)\n",
>> +                printf("PAGE ACCESS: %c%c%c for GFN %llx (offset
>> %06llx) gla
>> %016llx (vcpu %d)\n",
>>                          req.access_r ? 'r' : '-',
>>                          req.access_w ? 'w' : '-',
>>                          req.access_x ? 'x' : '-',
>> -                        req.gfn,
>> -                        req.offset,
>> -                        req.gla,
>> +                        (unsigned long long) req.gfn,
>> +                        (unsigned long long) req.offset,
>> +                        (unsigned long long) req.gla,
>>                          req.vcpu_id);
>>
>>                  if ( default_access != after_first_access )
>> @@ -617,7 +617,9 @@ int main(int argc, char *argv[])
>>                  rsp.p2mt = req.p2mt;
>>                  break;
>>              case MEM_EVENT_REASON_INT3:
>> -                printf("INT3: rip=%016lx, gfn=%lx (vcpu %d)\n",
>> req.gla,
>> req.gfn,
>> +                printf("INT3: rip=%016llx, gfn=%llx (vcpu %d)\n",
>> +                        (unsigned long long) req.gla,
>> +                        (unsigned long long) req.gfn,
>>                          req.vcpu_id);
>>
>>                  /* Reinject */
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>
>
>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.