xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Why does xc_map_foreign_range() refuse to map pfns below 1M from a domU
@ 2013-12-03 15:06 Razvan Cojocaru
  2013-12-03 15:51 ` Ian Campbell
  0 siblings, 1 reply; 27+ messages in thread
From: Razvan Cojocaru @ 2013-12-03 15:06 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

Hello,

here's the setup: a Windows HVM domU and a Linux PV domU. The Linux
domU wants to map pages from the Windows domU. No XSM involved.

The Linux domU is perfectly able to map (using xc_map_foreign_range())
pages from the Windows domU, except for pages below 1M. For pages
below 1M, it returns "invalid argument". The same code, trying to map
the exact same pages, does succeed, however, if the application trying
to map those pages runs from dom0.

Why is this happening, and can anything be done about it so that the
Linux domU becomes able to map those pages from the HVM Windows domU?


Thanks,
Razvan

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Why does xc_map_foreign_range() refuse to map pfns below 1M from a domU
@ 2013-12-03 16:18 Razvan Cojocaru
  0 siblings, 0 replies; 27+ messages in thread
From: Razvan Cojocaru @ 2013-12-03 16:18 UTC (permalink / raw)
  Cc: xen-devel@lists.xen.org

> OK, so XSM is involved but you are 101% certain that it is not
> preventing the mappings?

Yes, I really am :)

> AFAIK the foreign mapping privilege should already allow this. You have
> just uncovered a bug somewhere. I'm afraid I don't know where, it might
> be in your code, in libxc, in the privcmd ioctl driver or in the
> hypervisor.
>
> You probably need to instrument things up down the call stack to find
> out where these attempts are getting rejected.

Right. Thanks!

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2014-07-08 14:54 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-03 15:06 Why does xc_map_foreign_range() refuse to map pfns below 1M from a domU Razvan Cojocaru
2013-12-03 15:51 ` Ian Campbell
2013-12-03 15:59   ` Razvan Cojocaru
2013-12-03 16:09     ` Ian Campbell
2013-12-03 17:36       ` Tomasz Wroblewski
2013-12-03 18:59         ` Razvan Cojocaru
2013-12-03 19:07         ` Konrad Rzeszutek Wilk
2013-12-04 10:24           ` Tomasz Wroblewski
2013-12-04 10:31             ` Jan Beulich
2013-12-04 10:39               ` Ian Campbell
2013-12-04 10:42                 ` Jan Beulich
2013-12-04 10:45                   ` Ian Campbell
2013-12-04 10:54                     ` Jan Beulich
2013-12-04 11:04                       ` Ian Campbell
2013-12-04 11:23                         ` Tomasz Wroblewski
2013-12-04 11:36                           ` Jan Beulich
2013-12-04 12:01                             ` Tomasz Wroblewski
2013-12-04 12:14                               ` Jan Beulich
2013-12-04 12:23                                 ` Ian Campbell
2013-12-04 12:39                                   ` Jan Beulich
2013-12-04 16:40                             ` Konrad Rzeszutek Wilk
2013-12-04 17:16                               ` Tomasz Wroblewski
2014-07-08 14:54                                 ` Mihai Donțu
2013-12-04 11:42             ` Mihai Donțu
2013-12-04 14:19               ` Tomasz Wroblewski
2013-12-04 16:15                 ` Mihai Donțu
  -- strict thread matches above, loose matches on Subject: below --
2013-12-03 16:18 Razvan Cojocaru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).