Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-06-22 Thread Xin Tong
On Fri, Jun 22, 2012 at 3:28 AM, 陳韋任 (Wei-Ren Chen) wrote: > Hi Xin Tong, > > O.K., after studying KVM a little bit, I just give you my 2 cents. :) > > On Fri, Jan 20, 2012 at 12:12:00AM -0500, Xin Tong wrote: >> I am wondering the possibilities of using the nested page table >> mechanism availab

Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-06-22 Thread Wei-Ren Chen
Hi Xin Tong, O.K., after studying KVM a little bit, I just give you my 2 cents. :) On Fri, Jan 20, 2012 at 12:12:00AM -0500, Xin Tong wrote: > I am wondering the possibilities of using the nested page table > mechanism available on the x86 processors to do page translation for > non-x86 operati

Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-05-28 Thread Wei-Ren Chen
Hi Xin Tong, On Fri, Jan 20, 2012 at 08:54:12AM -0500, Xin Tong wrote: > On Fri, Jan 20, 2012 at 3:23 AM, 陳韋任 wrote: > >> 1. The control of gCR3 and hCR3 needs kernel access. While they can > >> be set with a device module as what is done in kvm. Trapping into the > >> kernel every time gCR3 is

Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-01-31 Thread 陳韋任
On Fri, Jan 20, 2012 at 08:54:12AM -0500, Xin Tong wrote: > On Fri, Jan 20, 2012 at 3:23 AM, 陳韋任 wrote: > >> 1. The control of gCR3 and hCR3 needs kernel access. While they can > >> be set with a device module as what is done in kvm. Trapping into the > >> kernel every time gCR3 is reseted might

Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-01-20 Thread 陳韋任
> 1. The control of gCR3 and hCR3 needs kernel access. While they can > be set with a device module as what is done in kvm. Trapping into the > kernel every time gCR3 is reseted might be too expensive. Why the control of gCR3 needs kernel access? Isn't gCR3 just a field of the CPUX86State? QEMU

Re: [Qemu-devel] nested page table translation for non-x86 operating system

2012-01-20 Thread Xin Tong
On Fri, Jan 20, 2012 at 3:23 AM, 陳韋任 wrote: >> 1. The control of gCR3 and hCR3 needs kernel access. While they can >> be set with a device module as what is done in kvm. Trapping into the >> kernel every time gCR3 is reseted might be too expensive. > > Why the control of gCR3 needs kernel access

[Qemu-devel] nested page table translation for non-x86 operating system

2012-01-19 Thread Xin Tong
I am wondering the possibilities of using the nested page table mechanism available on the x86 processors to do page translation for non-x86 operating system emulation. So, when nested page is enabled, you can control the gCR3 and hCR3. The gCR3 can be used to point to the page table of the runnin