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:Re: [Xen-devel] can dom0 modify Shadow PT of HVM domU?

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>
Subject: Re:Re: [Xen-devel] can dom0 modify Shadow PT of HVM domU?
From: "Wu Bingzheng" <wubingzheng@xxxxxxx>
Date: Fri, 28 Aug 2009 09:21:41 +0800 (CST)
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 27 Aug 2009 18:22:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C6BAF00E.12F8E%keir.fraser@xxxxxxxxxxxxx>
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: <C6BAF00E.12F8E%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks very much. I will try that.

Wu


email:wubingzheng@xxxxxxx在2009-08-26,"Keir Fraser" <keir.fraser@xxxxxxxxxxxxx> 写道:
>On 26/08/2009 11:30, "Wu Bingzheng" <wubingzheng@xxxxxxx> wrote:
>
>>> I see.  That seems like a pretty convoluted way of doing it.  Why don't
>>> you just inject #GP (or whatever) straight into the guest from your dom0
>>> hypercall?
>> 
>> I think vmx_inject_hw_exception() can't be called under dom0's context,
>> because it calls __vmread() to read VMCS.
>
>You can do vmx_vmcs_enter(v) at the very start of the function (before any
>vmread or vmwrite) and vmx_vmcs_exit(v) at the very end. If you make this
>change then it will be safe to call the function from dom0.
>
> -- Keir
>
>
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-devel


没有广告的终身免费邮箱,www.yeah.net
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel