I modified the memory area by vmap the protected physical page to another writable virtual address region.
 
So, solved~~
 

machi1271
 
From: Razvan Cojocaru
Date: 2014-10-17 16:01
To: machi1271; xen-devel
Subject: Re: [Xen-devel] Modify cr0 at dom0
On 10/17/2014 10:14 AM, machi1271 wrote:
> I'v tried the way to modify CR0 by writing to it directly. But I got the
> following error:
>         (XEN) traps.c:1768:d0 _Attempt to change unmodifiable CR0 flags.
 
I think you're only allowed to modify _some_ CR0 flags by Xen (CR0.TS
and maybe others). You'd have to look at the Xen source code to see
which ones.
 
Hope that helps, maybe someone with more experience doing what you need
to do can chime in.
 
 
Razvan