Re: [PATCH 1/4] KVM: MMU: fix permission_fault()
From: Paolo Bonzini
Date: Wed Apr 06 2016 - 04:17:51 EST
On 06/04/2016 05:27, Xiao Guangrong wrote:
>
> I tested it and it is failed:
>
> test pte.p pte.user pde.p pde.user pde.a pde.pse pkru.wd pkey=1 user
> write efer.nx cr4.pke: FAIL: error code 27 expected 7
> Dump mapping: address: 0x123400000000
> ------L4: 2ebe007
> ------L3: 2ebf007
> ------L2: 8000000020000a5
>
> So PFEC.PKEY is set even if the ordinary check failed (caused by pde.rw
> = 0), the kvm code is
> right. :)
Cool, thanks very much. I'll fix both QEMU and kvm-unit-tests.
Paolo