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

Re: [Xen-devel] Mapping hvm guest pages in Dom0

  • To: Satya <satyakiran@xxxxxxxxx>
  • From: "pradeep singh rautela" <rautelap@xxxxxxxxx>
  • Date: Sat, 27 Sep 2008 03:55:24 +0530
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 26 Sep 2008 15:25:51 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=P30Vrj/mAYIf7+YUlLfI0KXr92ZClmGDJzFZhaxSdo0J+RMVmbtHupSv8/8d12bLQt TEes3T7+sha/BFr1ZFkf20Vi94patId9b8HDNliXnpnDHpmf2kmWfugsl8b4u4t4pCA2 E80re3mjl1KhQFDNmxkRIlxS2IAZ+Sk61CJIc=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On Sat, Sep 27, 2008 at 12:32 AM, Satya <satyakiran@xxxxxxxxx> wrote:
> hello,
> I would like to map (Read/Write) pages owned by a HVM guest from my Dom0
> Linux kernel module. I have access to the "machine frame numbers" of these
> pages.

Won't this make your HVM guest go boom?
After all you are changing the state of the pages *supposedly* owned
by a HVM domain.

> 1. What is the right interface to do this? kmap needs 'struct page' ptrs
> which I doubt exist for pages owned by a HVM guest. Is there a hypercall to
> do this then?

Do grant tables exist for HVM guests, I doubt it?
> 2. Do I need to modify the HVM behavior in any way for this? (e.g., load a
> driver in the guest that will setup grant tables?). I need to keep my guest
> "pure HVM".

pure HVM which knows that some pages are being used by the domain0
will essentially make them non pure I guess :).
BTW perhaps you can make sure that a HVM domain sees a region of
memory as shared with some other kernel. To do this you can write a
kernel module in the HVM domain( I hope it is linux ).

But this is all pure guess work, so please do not take my word. May be
you can think something better on similar lines. :)

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

Pradeep Singh Rautela

Xen-devel mailing list



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