Re: [PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-09 Thread Paolo Bonzini
Il 08/09/2013 11:04, Gleb Natapov ha scritto: > On Thu, Sep 05, 2013 at 02:21:53PM +0200, Paolo Bonzini wrote: >> Page tables in a read-only memory slot will currently cause a triple >> fault when running with shadow paging, because the page walker uses >> gfn_to_hva and it fails on such a slot.

Re: [PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-09 Thread Paolo Bonzini
Il 08/09/2013 11:04, Gleb Natapov ha scritto: On Thu, Sep 05, 2013 at 02:21:53PM +0200, Paolo Bonzini wrote: Page tables in a read-only memory slot will currently cause a triple fault when running with shadow paging, because the page walker uses gfn_to_hva and it fails on such a slot.

Re: [PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-08 Thread Gleb Natapov
On Thu, Sep 05, 2013 at 02:21:53PM +0200, Paolo Bonzini wrote: > Page tables in a read-only memory slot will currently cause a triple > fault when running with shadow paging, because the page walker uses > gfn_to_hva and it fails on such a slot. > > TianoCore uses such a page table. The idea is

Re: [PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-08 Thread Gleb Natapov
On Thu, Sep 05, 2013 at 02:21:53PM +0200, Paolo Bonzini wrote: Page tables in a read-only memory slot will currently cause a triple fault when running with shadow paging, because the page walker uses gfn_to_hva and it fails on such a slot. TianoCore uses such a page table. The idea is that,

Re: [PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-05 Thread Xiao Guangrong
On 09/05/2013 08:21 PM, Paolo Bonzini wrote: > Page tables in a read-only memory slot will currently cause a triple > fault when running with shadow paging, because the page walker uses > gfn_to_hva and it fails on such a slot. > > TianoCore uses such a page table. The idea is that, on real

[PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-05 Thread Paolo Bonzini
Page tables in a read-only memory slot will currently cause a triple fault when running with shadow paging, because the page walker uses gfn_to_hva and it fails on such a slot. TianoCore uses such a page table. The idea is that, on real hardware, the firmware can already run in 64-bit flat mode

[PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-05 Thread Paolo Bonzini
Page tables in a read-only memory slot will currently cause a triple fault when running with shadow paging, because the page walker uses gfn_to_hva and it fails on such a slot. TianoCore uses such a page table. The idea is that, on real hardware, the firmware can already run in 64-bit flat mode

Re: [PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-05 Thread Xiao Guangrong
On 09/05/2013 08:21 PM, Paolo Bonzini wrote: Page tables in a read-only memory slot will currently cause a triple fault when running with shadow paging, because the page walker uses gfn_to_hva and it fails on such a slot. TianoCore uses such a page table. The idea is that, on real hardware,