direct-io.hg

changeset 13087:8348e3a1a31e

[XENOPROF] Fix buffer sharing with auto-translate guests.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
author kfraser@localhost.localdomain
date Tue Dec 19 11:00:05 2006 +0000 (2006-12-19)
parents b3cd9c4ac056
children 057f7c4dbed1
files xen/common/xenoprof.c
line diff
     1.1 --- a/xen/common/xenoprof.c	Tue Dec 19 10:53:17 2006 +0000
     1.2 +++ b/xen/common/xenoprof.c	Tue Dec 19 11:00:05 2006 +0000
     1.3 @@ -384,7 +384,7 @@ static int add_passive_list(XEN_GUEST_HA
     1.4      d->xenoprof->domain_type = XENOPROF_DOMAIN_PASSIVE;
     1.5      passive.nbuf = d->xenoprof->nbuf;
     1.6      passive.bufsize = d->xenoprof->bufsize;
     1.7 -    if ( !shadow_mode_translate(d) )
     1.8 +    if ( !shadow_mode_translate(current->domain) )
     1.9          passive.buf_gmaddr = __pa(d->xenoprof->rawbuf);
    1.10      else
    1.11          xenoprof_shared_gmfn_with_guest(