Re: [PATCH 08/13] KVM: MMU: fask check whether page is writable

Avi Kivity
2012-03-29T15:49:29Z

On 03/29/2012 11:25 AM, Xiao Guangrong wrote:
> Using PTE_LIST_WRITE_PROTECT bit in rmap store the write-protect status to
> avoid unnecessary shadow page walking

Does kvm_set_pte_rmapp() need adjustment?

> Also if no shadow page is indirect, the page is write-free
>
>
> + if (!vcpu->kvm->arch.indirect_shadow_pages)
> + return 0;
> +
Best in its own little patch.

--
error compiling committee.c: too many arguments to function