On Tue, Aug 23, 2011 at 04:21:05AM +0800, Xiao Guangrong wrote:
> On 08/23/2011 03:59 AM, Marcelo Tosatti wrote:
>
> >> + if (!vcpu->arch.mmu.direct_map && !mmu_is_nested(vcpu))
> >> + gpa = kvm_mmu_gva_to_gpa_write(vcpu, cr2, NULL);
> >
> > Why write?
> >
>
> Since the fault is caus
On 08/23/2011 03:59 AM, Marcelo Tosatti wrote:
>> +if (!vcpu->arch.mmu.direct_map && !mmu_is_nested(vcpu))
>> +gpa = kvm_mmu_gva_to_gpa_write(vcpu, cr2, NULL);
>
> Why write?
>
Since the fault is caused by page table written, and the 'gpa' can
be written after instruction is re
On Tue, Aug 16, 2011 at 02:42:07PM +0800, Xiao Guangrong wrote:
> If the emulation is caused by #PF and it is non-page_table writing
> instruction,
> it means the VM-EXIT is caused by shadow page protected, we can zap the shadow
> page and retry this instruction directly
>
> The idea is from Avi
If the emulation is caused by #PF and it is non-page_table writing instruction,
it means the VM-EXIT is caused by shadow page protected, we can zap the shadow
page and retry this instruction directly
The idea is from Avi
Signed-off-by: Xiao Guangrong
---
arch/x86/include/asm/kvm_emulate.h |