* map_domain_va and map problem with address mapped.
[not found] <E1IsHX4-0005um-3j@host-192-168-0-1-bcn-london>
@ 2007-11-14 14:05 ` Paradox
2007-12-03 4:13 ` Mark Williamson
0 siblings, 1 reply; 2+ messages in thread
From: Paradox @ 2007-11-14 14:05 UTC (permalink / raw)
To: xen-devel
Hi
I have some problem about access a guest location memory using
map_domain_va function. My situation is next:
I have a simple program running in domU, I retrieve a guest virtual
address for a struct value and I pause the domain (when I pause the domU
the interested program still run...).
So I call map_domain_va function that call map_domain_va_pae. It seems
that everything works properly because I obtain an address (PT walk
don't fails...), but If I try to access this address I find a "strange"
value.
For example:
domU guest address: 0xbfd38838 a location that contains an int, for
example 10.
Address mapped returned by map_domain_va: 0xb7fac838
If I access the pointer returned above I obtain: 0xbfd38858 (very
similar to domU guest address...). Perhaps I did not understand
something, but I should not obtain 10?
Tnx in advance.
Best Regards
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: map_domain_va and map problem with address mapped.
2007-11-14 14:05 ` map_domain_va and map problem with address mapped Paradox
@ 2007-12-03 4:13 ` Mark Williamson
0 siblings, 0 replies; 2+ messages in thread
From: Mark Williamson @ 2007-12-03 4:13 UTC (permalink / raw)
To: xen-devel; +Cc: Paradox
> I have some problem about access a guest location memory using
> map_domain_va function. My situation is next:
>
> I have a simple program running in domU, I retrieve a guest virtual
> address for a struct value and I pause the domain (when I pause the domU
> the interested program still run...).
>
> So I call map_domain_va function that call map_domain_va_pae. It seems
> that everything works properly because I obtain an address (PT walk
> don't fails...), but If I try to access this address I find a "strange"
> value.
>
> For example:
>
> domU guest address: 0xbfd38838 a location that contains an int, for
> example 10.
>
> Address mapped returned by map_domain_va: 0xb7fac838
>
> If I access the pointer returned above I obtain: 0xbfd38858 (very
> similar to domU guest address...). Perhaps I did not understand
> something, but I should not obtain 10?
Yeah, I agree you should get 10, and what you're doing sounds right. It seems
strange.
Can you post some relevant snippets of your code (both in the domU and dom0)
and maybe the problem will become apparent when we can all have a look at it?
Cheers,
Mark
--
Dave: Just a question. What use is a unicyle with no seat? And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-03 4:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1IsHX4-0005um-3j@host-192-168-0-1-bcn-london>
2007-11-14 14:05 ` map_domain_va and map problem with address mapped Paradox
2007-12-03 4:13 ` Mark Williamson
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.