WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Satya <satyakiran@xxxxxxxxx>
Subject: Re: [Xen-devel] Mapping hvm guest pages in Dom0
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=PnTmpiPFzACoKtsjB52eSKPAaRI7lftxVjuqv51IBys=; b=Ef0eEa1QZZiHNw1zKy4QlXVezQsWxkrMJq6wFkISWclIGIp9yjiOIgZ4HdIjJDBBYU 6WTyXoY9IQq2dX2RW1Cskd0QSjYazdqJ39rfxRCqRT8RtkJlU3xLYQQXBz05zxOoq0Pb rMEXzkeEEgWCqbmJ+99Ri+/xjGFJyqlB42guY=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <acbcf3840809261202i693c21fawbe86ec75f8a995ba@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <acbcf3840809261202i693c21fawbe86ec75f8a995ba@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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,
    --Pradeep
>
> thanks,
> ./satya
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>



-- 
Pradeep Singh Rautela
http://eagain.wordpress.com
http://emptydomain.googlepages.com

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

<Prev in Thread] Current Thread [Next in Thread>