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

Re:Re: [Xen-devel] can dom0 modify Shadow PT of HVM domU?



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

 


Rackspace

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