All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Fix arguments passed to SHADOW_PRINTK
Date: Thu, 11 Sep 2008 20:24:42 +0900	[thread overview]
Message-ID: <48C8FFFA.30706@lab.ntt.co.jp> (raw)
In-Reply-To: <C4EEB8F2.26F60%keir.fraser@eu.citrix.com>

Keir and Gianluca,

Keir Fraser wrote:
> On 11/9/08 11:44, "Yoshiaki Tamura" <tamura.yoshiaki@lab.ntt.co.jp> wrote:
> 
>> When I compiled xen-3.3-testing with DEBUG_TRACE_DUMP in xen/include/xen/lib.h
>> turned on, I got some errors at SHADOW_PRINTK.
>> The following patch will fix the arguments passed to SHADOW_PRINTK in
>> xen/arch/x86/mm/shadow/common.c and xen/arch/x86/mm/shadow/multi.c.
>>
>> Although I haven't tested, it is the same for xen-unstable.hg
> 
> First chunks of patch: If there is no longer a va to print, then don't
> manufacture one to print; just remove it entirely from the printk. Apart
> from anything else, using sh_map_domain_page() without
> sh_unmap_domain_page() will leak mappings. And the va printed will not be
> useful anyway.

Sorry, that was my mistake.

> Final chunk of patch: print regs->eip? That should work on both x86_64 and
> i386.

When I compiled xen-3.3-testing with DEBUG_TRACE_DUMP turned on,
I got the following errors. Would you please tell me how to work around?

multi.c: In function 'sh_page_fault__guest_2':
multi.c:3045: error: 'struct cpu_user_regs' has no member named 'rip'
multi.c: In function 'sh_page_fault__guest_3':
multi.c:3045: error: 'struct cpu_user_regs' has no member named 'rip'
make[6]: *** [guest_3.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [guest_2.o] Error 1
make[5]: *** [shadow/built_in.o] Error 2
make[4]: *** [mm/built_in.o] Error 2
make[3]: *** [/home/tamura/Developer/kemari-v1-devel.hg/xen/arch/x86/built_in.o] 
Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/home/tamura/Developer/kemari-v1-devel.hg/xen/xen] Error 2
make[1]: *** [install] Error 2
make: *** [install-xen] Error 2

> 
> Please fix and re-send.
> 
>  Thanks,
>  Keir
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 
> 


-- 
TAMURA, Yoshiaki

NTT Cyber Space Labs
OSS Computing Project
Kernel Group
E-mail: tamura.yoshiaki@lab.ntt.co.jp
TEL: +81-46-859-2771
FAX: +81-46-855-1152
Address: 1-1 Hikarinooka, Yokosuka
	 Kanagawa 239-0847 JAPAN

  reply	other threads:[~2008-09-11 11:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-11 10:44 [PATCH] Fix arguments passed to SHADOW_PRINTK Yoshiaki Tamura
2008-09-11 10:49 ` Gianluca Guida
2008-09-11 11:00 ` Keir Fraser
2008-09-11 11:24   ` Yoshiaki Tamura [this message]
2008-09-11 11:42     ` Gianluca Guida
2008-09-11 11:56       ` Yoshiaki Tamura

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48C8FFFA.30706@lab.ntt.co.jp \
    --to=tamura.yoshiaki@lab.ntt.co.jp \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.